@Generated(value="jsii-pacmak/0.14.3 (build 1b1062d)", date="2019-08-14T08:10:20.272Z") @Stability(value=Stable) public class CfnResource extends CfnRefElement
| Modifier | Constructor and Description |
|---|---|
|
CfnResource(Construct scope,
String id,
CfnResourceProps props)
Creates a resource construct.
|
protected |
CfnResource(software.amazon.jsii.JsiiObject.InitializationMode mode) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDeletionOverride(String path)
Syntactic sugar for `addOverride(path, undefined)`.
|
void |
addDependsOn(CfnResource resource)
Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned.
|
void |
addOverride(String path,
Object value)
Adds an override to the synthesized CloudFormation resource.
|
void |
addPropertyDeletionOverride(String propertyPath)
Adds an override that deletes the value of a property from the resource definition.
|
void |
addPropertyOverride(String propertyPath,
Object value)
Adds an override to a resource property.
|
void |
applyRemovalPolicy()
Sets the deletion policy of the resource based on the removal policy specified.
|
void |
applyRemovalPolicy(RemovalPolicy policy)
Sets the deletion policy of the resource based on the removal policy specified.
|
void |
applyRemovalPolicy(RemovalPolicy policy,
RemovalPolicyOptions options)
Sets the deletion policy of the resource based on the removal policy specified.
|
IResolvable |
getAtt(String attributeName)
Returns a token for an runtime attribute of this resource.
|
ICfnResourceOptions |
getCfnOptions()
Options for this resource, such as condition, update policy etc.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getCfnResourceType()
AWS resource type.
|
protected Map<String,Object> |
getUpdatedProperites()
Return properties modified after initiation.
|
static Boolean |
isCfnResource(IConstruct construct)
Check whether the given construct is a CfnResource.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
String |
toString()
Returns a string representation of this construct.
|
protected void |
validateProperties(Object _properties) |
getRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId, preparegetNode, isConstruct, synthesize, validatejsiiAsyncCall, jsiiCall, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticGet, jsiiStaticSetprotected CfnResource(software.amazon.jsii.JsiiObject.InitializationMode mode)
@Stability(value=Stable) public CfnResource(Construct scope, String id, CfnResourceProps props)
@Stability(value=Stable) public static Boolean isCfnResource(IConstruct construct)
@Stability(value=Stable) public void addDeletionOverride(String path)
path - The path of the value to delete.@Stability(value=Stable) public void addDependsOn(CfnResource resource)
@Stability(value=Stable) public void addOverride(String path, @Nullable Object value)
path - The path of the property, you can use dot notation to override values in complex types.value - The value.@Stability(value=Stable) public void addPropertyDeletionOverride(String propertyPath)
propertyPath - The path to the property.@Stability(value=Stable) public void addPropertyOverride(String propertyPath, @Nullable Object value)
propertyPath - The path of the property.value - The value.@Stability(value=Stable) public void applyRemovalPolicy(@Nullable RemovalPolicy policy, @Nullable RemovalPolicyOptions options)
@Stability(value=Stable) public void applyRemovalPolicy(@Nullable RemovalPolicy policy)
@Stability(value=Stable) public void applyRemovalPolicy()
@Stability(value=Stable) public IResolvable getAtt(String attributeName)
attributeName - The name of the attribute.@Stability(value=Stable) protected Map<String,Object> renderProperties(Map<String,Object> props)
@Stability(value=Stable) public String toString()
@Stability(value=Stable) protected void validateProperties(@Nullable Object _properties)
@Stability(value=Stable) public ICfnResourceOptions getCfnOptions()
@Stability(value=Stable) public String getCfnResourceType()
Copyright © 2019. All rights reserved.