public static interface IStringParameter.Jsii$Default extends IStringParameter, IParameter.Jsii$Default
IStringParameter
.IStringParameter.Jsii$Default, IStringParameter.Jsii$Proxy
Modifier and Type | Method and Description |
---|---|
default void |
applyRemovalPolicy(RemovalPolicy policy)
Apply the given removal policy to this resource.
|
default ResourceEnvironment |
getEnv()
The environment this resource belongs to.
|
default ConstructNode |
getNode()
The construct tree node for this construct.
|
default java.lang.String |
getParameterArn()
The ARN of the SSM Parameter resource.
|
default java.lang.String |
getParameterName()
The name of the SSM Parameter resource.
|
default java.lang.String |
getParameterType()
The type of the SSM Parameter resource.
|
default Stack |
getStack()
The stack in which this resource is defined.
|
default java.lang.String |
getStringValue()
The parameter value.
|
default Grant |
grantRead(IGrantable grantee)
Grants read (DescribeParameter, GetParameter, GetParameterHistory) permissions on the SSM Parameter.
|
default Grant |
grantWrite(IGrantable grantee)
Grants write (PutParameter) permissions on the SSM Parameter.
|
default ConstructNode getNode()
getNode
in interface IConstruct
getNode
in interface IConstruct.Jsii$Default
getNode
in interface IParameter.Jsii$Default
getNode
in interface IResource.Jsii$Default
default ResourceEnvironment getEnv()
For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
getEnv
in interface IParameter.Jsii$Default
getEnv
in interface IResource
getEnv
in interface IResource.Jsii$Default
default Stack getStack()
getStack
in interface IParameter.Jsii$Default
getStack
in interface IResource
getStack
in interface IResource.Jsii$Default
default java.lang.String getParameterArn()
getParameterArn
in interface IParameter
getParameterArn
in interface IParameter.Jsii$Default
default java.lang.String getParameterName()
getParameterName
in interface IParameter
getParameterName
in interface IParameter.Jsii$Default
default java.lang.String getParameterType()
getParameterType
in interface IParameter
getParameterType
in interface IParameter.Jsii$Default
default java.lang.String getStringValue()
Value must not nest another parameter. Do not use {{}} in the value.
getStringValue
in interface IStringParameter
default void applyRemovalPolicy(RemovalPolicy policy)
The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you've removed it from the CDK application or because you've made a change that requires the resource to be replaced.
The resource can be deleted (RemovalPolicy.DESTROY
), or left in your AWS
account for data recovery and cleanup later (RemovalPolicy.RETAIN
).
applyRemovalPolicy
in interface IParameter.Jsii$Default
applyRemovalPolicy
in interface IResource
applyRemovalPolicy
in interface IResource.Jsii$Default
policy
- This parameter is required.default Grant grantRead(IGrantable grantee)
grantRead
in interface IParameter
grantRead
in interface IParameter.Jsii$Default
grantee
- the role to be granted read-only access to the parameter. This parameter is required.default Grant grantWrite(IGrantable grantee)
grantWrite
in interface IParameter
grantWrite
in interface IParameter.Jsii$Default
grantee
- the role to be granted write access to the parameter. This parameter is required.