Class CfnParameter
- All Implemented Interfaces:
IInspectable,ITaggable,IParameterRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
AWS::SSM::Parameter resource creates an SSM parameter in AWS Systems Manager Parameter Store.
To create an SSM parameter, you must have the AWS Identity and Access Management ( IAM ) permissions
ssm:PutParameterandssm:AddTagsToResource. On stack creation, AWS CloudFormation adds the following three tags to the parameter:aws:cloudformation:stack-name,aws:cloudformation:logical-id, andaws:cloudformation:stack-id, in addition to any custom tags you specify.To add, update, or remove tags during stack update, you must have IAM permissions for both
ssm:AddTagsToResourceandssm:RemoveTagsFromResource. For more information, see Managing access using policies in the AWS Systems Manager User Guide .
For information about valid values for parameters, see About requirements and constraints for parameter names in the AWS Systems Manager User Guide and PutParameter in the AWS Systems Manager API Reference .
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ssm.*;
CfnParameter cfnParameter = CfnParameter.Builder.create(this, "MyCfnParameter")
.type("type")
.value("value")
// the properties below are optional
.allowedPattern("allowedPattern")
.dataType("dataType")
.description("description")
.name("name")
.policies("policies")
.tags(Map.of(
"tagsKey", "tags"))
.tier("tier")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.ssm.IParameterRef
IParameterRef.Jsii$Default, IParameterRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnParameter(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnParameter(software.amazon.jsii.JsiiObjectRef objRef) CfnParameter(software.constructs.Construct scope, String id, CfnParameterProps props) -
Method Summary
Modifier and TypeMethodDescriptionA regular expression used to validate the parameter value.Returns the type of the parameter.Returns the value of the parameter.The data type of the parameter, such astextoraws:ec2:image.Information about the parameter.getName()The name of the parameter.A reference to a Parameter resource.Information about the policies assigned to a parameter.getTags()Tag Manager which manages the tags for this resource.Optional metadata that you assign to a resource in the form of an arbitrary set of tags (key-value pairs).getTier()The parameter tier.getType()The type of parameter.getValue()The parameter value.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetAllowedPattern(String value) A regular expression used to validate the parameter value.voidsetDataType(String value) The data type of the parameter, such astextoraws:ec2:image.voidsetDescription(String value) Information about the parameter.voidThe name of the parameter.voidsetPolicies(String value) Information about the policies assigned to a parameter.voidsetTagsRaw(Map<String, String> value) Optional metadata that you assign to a resource in the form of an arbitrary set of tags (key-value pairs).voidThe parameter tier.voidThe type of parameter.voidThe parameter value.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnParameter
protected CfnParameter(software.amazon.jsii.JsiiObjectRef objRef) -
CfnParameter
protected CfnParameter(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnParameter
@Stability(Stable) public CfnParameter(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnParameterProps props) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrType
Returns the type of the parameter.Valid values are
StringorStringList. -
getAttrValue
Returns the value of the parameter. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getParameterRef
A reference to a Parameter resource.- Specified by:
getParameterRefin interfaceIParameterRef
-
getTags
Tag Manager which manages the tags for this resource. -
getType
The type of parameter. -
setType
The type of parameter. -
getValue
The parameter value. -
setValue
The parameter value. -
getAllowedPattern
A regular expression used to validate the parameter value. -
setAllowedPattern
A regular expression used to validate the parameter value. -
getDataType
The data type of the parameter, such astextoraws:ec2:image. -
setDataType
The data type of the parameter, such astextoraws:ec2:image. -
getDescription
Information about the parameter. -
setDescription
Information about the parameter. -
getName
The name of the parameter. -
setName
The name of the parameter. -
getPolicies
Information about the policies assigned to a parameter. -
setPolicies
Information about the policies assigned to a parameter. -
getTagsRaw
Optional metadata that you assign to a resource in the form of an arbitrary set of tags (key-value pairs). -
setTagsRaw
Optional metadata that you assign to a resource in the form of an arbitrary set of tags (key-value pairs). -
getTier
The parameter tier. -
setTier
The parameter tier.
-