@Generated(value="jsii-pacmak/0.20.6 (build 17f281e)", date="2019-11-19T17:18:01.076Z") @Stability(value=Stable) public class CfnResource extends CfnRefElement
Modifier and Type | Class and Description |
---|---|
static class |
CfnResource.Builder
A fluent builder for
CfnResource . |
Modifier | Constructor and Description |
---|---|
|
CfnResource(Construct scope,
String id,
CfnResourceProps props)
Creates a resource construct.
|
protected |
CfnResource(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnResource(software.amazon.jsii.JsiiObjectRef objRef) |
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.
|
Reference |
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) |
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
getNode, isConstruct, prepare, synthesize, validate
jsiiAsyncCall, jsiiCall, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticGet, jsiiStaticSet
protected CfnResource(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnResource(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable) public CfnResource(Construct scope, String id, CfnResourceProps props)
scope
- This parameter is required.id
- This parameter is required.props
- This parameter is required.@Stability(value=Stable) public static Boolean isCfnResource(IConstruct construct)
construct
- This parameter is required.@Stability(value=Stable) public void addDeletionOverride(String path)
path
- The path of the value to delete. This parameter is required.@Stability(value=Stable) public void addDependsOn(CfnResource resource)
resource
- This parameter is required.@Stability(value=Stable) public void addOverride(String path, Object value)
path
- - The path of the property, you can use dot notation to override values in complex types. This parameter is required.value
- - The value. This parameter is required.@Stability(value=Stable) public void addPropertyDeletionOverride(String propertyPath)
propertyPath
- The path to the property. This parameter is required.@Stability(value=Stable) public void addPropertyOverride(String propertyPath, Object value)
propertyPath
- The path of the property. This parameter is required.value
- The value. This parameter is required.@Stability(value=Stable) public void applyRemovalPolicy(RemovalPolicy policy, RemovalPolicyOptions options)
policy
- options
- @Stability(value=Stable) public void applyRemovalPolicy(RemovalPolicy policy)
policy
- @Stability(value=Stable) public void applyRemovalPolicy()
@Stability(value=Stable) public Reference getAtt(String attributeName)
attributeName
- The name of the attribute. This parameter is required.@Stability(value=Stable) protected Map<String,Object> renderProperties(Map<String,Object> props)
props
- This parameter is required.@Stability(value=Stable) public String toString()
@Stability(value=Stable) protected void validateProperties(Object _properties)
_properties
- This parameter is required.@Stability(value=Stable) public ICfnResourceOptions getCfnOptions()
@Stability(value=Stable) public String getCfnResourceType()
Copyright © 2019. All rights reserved.