AWS Systems Manager Construct Library
This module is part of the AWS Cloud Development Kit project.
Using existing SSM Parameters in your CDK app
You can reference existing SSM Parameter Store values that you want to use in your CDK app by using ssm.StringParameter.fromStringParameterAttributes:
const parameterVersion = Token.asNumber({ Ref: 'MyParameter' });
// Retrieve the latest value of the non-secret parameter
// with name "/My/String/Parameter".
const stringValue = ssm.StringParameter.fromStringParameterAttributes(this, 'MyValue', {
parameterName: '/My/Public/Parameter',
// 'version' can be specified but is optional.
}).stringValue;
const stringValueVersionFromToken = ssm.StringParameter.fromStringParameterAttributes(this, 'MyValueVersionFromToken', {
parameterName: '/My/Public/Parameter',
// parameter version from token
version: parameterVersion,
}).stringValue;
// Retrieve a specific version of the secret (SecureString) parameter.
// 'version' is always required.
const secretValue = ssm.StringParameter.fromSecureStringParameterAttributes(this, 'MySecureValue', {
parameterName: '/My/Secret/Parameter',
version: 5,
});
const secretValueVersionFromToken = ssm.StringParameter.fromSecureStringParameterAttributes(this, 'MySecureValueVersionFromToken', {
parameterName: '/My/Secret/Parameter',
// parameter version from token
version: parameterVersion,
});
parameter_version = Token.as_number({"Ref": "MyParameter"})
# Retrieve the latest value of the non-secret parameter
# with name "/My/String/Parameter".
string_value = ssm.StringParameter.from_string_parameter_attributes(self, "MyValue",
parameter_name="/My/Public/Parameter"
).string_value
string_value_version_from_token = ssm.StringParameter.from_string_parameter_attributes(self, "MyValueVersionFromToken",
parameter_name="/My/Public/Parameter",
# parameter version from token
version=parameter_version
).string_value
# Retrieve a specific version of the secret (SecureString) parameter.
# 'version' is always required.
secret_value = ssm.StringParameter.from_secure_string_parameter_attributes(self, "MySecureValue",
parameter_name="/My/Secret/Parameter",
version=5
)
secret_value_version_from_token = ssm.StringParameter.from_secure_string_parameter_attributes(self, "MySecureValueVersionFromToken",
parameter_name="/My/Secret/Parameter",
# parameter version from token
version=parameter_version
)
Number parameterVersion = Token.asNumber(Map.of("Ref", "MyParameter"));
// Retrieve the latest value of the non-secret parameter
// with name "/My/String/Parameter".
String stringValue = StringParameter.fromStringParameterAttributes(this, "MyValue", StringParameterAttributes.builder()
.parameterName("/My/Public/Parameter")
.build()).getStringValue();
String stringValueVersionFromToken = StringParameter.fromStringParameterAttributes(this, "MyValueVersionFromToken", StringParameterAttributes.builder()
.parameterName("/My/Public/Parameter")
// parameter version from token
.version(parameterVersion)
.build()).getStringValue();
// Retrieve a specific version of the secret (SecureString) parameter.
// 'version' is always required.
IStringParameter secretValue = StringParameter.fromSecureStringParameterAttributes(this, "MySecureValue", SecureStringParameterAttributes.builder()
.parameterName("/My/Secret/Parameter")
.version(5)
.build());
IStringParameter secretValueVersionFromToken = StringParameter.fromSecureStringParameterAttributes(this, "MySecureValueVersionFromToken", SecureStringParameterAttributes.builder()
.parameterName("/My/Secret/Parameter")
// parameter version from token
.version(parameterVersion)
.build());
var parameterVersion = Token.AsNumber(new Dictionary<string, string> { { "Ref", "MyParameter" } });
// Retrieve the latest value of the non-secret parameter
// with name "/My/String/Parameter".
var stringValue = StringParameter.FromStringParameterAttributes(this, "MyValue", new StringParameterAttributes {
ParameterName = "/My/Public/Parameter"
}).StringValue;
var stringValueVersionFromToken = StringParameter.FromStringParameterAttributes(this, "MyValueVersionFromToken", new StringParameterAttributes {
ParameterName = "/My/Public/Parameter",
// parameter version from token
Version = parameterVersion
}).StringValue;
// Retrieve a specific version of the secret (SecureString) parameter.
// 'version' is always required.
var secretValue = StringParameter.FromSecureStringParameterAttributes(this, "MySecureValue", new SecureStringParameterAttributes {
ParameterName = "/My/Secret/Parameter",
Version = 5
});
var secretValueVersionFromToken = StringParameter.FromSecureStringParameterAttributes(this, "MySecureValueVersionFromToken", new SecureStringParameterAttributes {
ParameterName = "/My/Secret/Parameter",
// parameter version from token
Version = parameterVersion
});
parameterVersion := awscdk.Token_AsNumber(map[string]*string{
"Ref": jsii.String("MyParameter"),
})
// Retrieve the latest value of the non-secret parameter
// with name "/My/String/Parameter".
stringValue := ssm.StringParameter_FromStringParameterAttributes(this, jsii.String("MyValue"), &StringParameterAttributes{
ParameterName: jsii.String("/My/Public/Parameter"),
}).StringValue
stringValueVersionFromToken := ssm.StringParameter_FromStringParameterAttributes(this, jsii.String("MyValueVersionFromToken"), &StringParameterAttributes{
ParameterName: jsii.String("/My/Public/Parameter"),
// parameter version from token
Version: parameterVersion,
}).StringValue
// Retrieve a specific version of the secret (SecureString) parameter.
// 'version' is always required.
secretValue := ssm.StringParameter_FromSecureStringParameterAttributes(this, jsii.String("MySecureValue"), &SecureStringParameterAttributes{
ParameterName: jsii.String("/My/Secret/Parameter"),
Version: jsii.Number(5),
})
secretValueVersionFromToken := ssm.StringParameter_FromSecureStringParameterAttributes(this, jsii.String("MySecureValueVersionFromToken"), &SecureStringParameterAttributes{
ParameterName: jsii.String("/My/Secret/Parameter"),
// parameter version from token
Version: parameterVersion,
})
You can also reference an existing SSM Parameter Store value that matches an AWS specific parameter type:
ssm.StringParameter.valueForTypedStringParameterV2(this, '/My/Public/Parameter', ssm.ParameterValueType.AWS_EC2_IMAGE_ID);
ssm.StringParameter.value_for_typed_string_parameter_v2(self, "/My/Public/Parameter", ssm.ParameterValueType.AWS_EC2_IMAGE_ID)
StringParameter.valueForTypedStringParameterV2(this, "/My/Public/Parameter", ParameterValueType.AWS_EC2_IMAGE_ID);
StringParameter.ValueForTypedStringParameterV2(this, "/My/Public/Parameter", ParameterValueType.AWS_EC2_IMAGE_ID);
ssm.StringParameter_ValueForTypedStringParameterV2(this, jsii.String("/My/Public/Parameter"), ssm.ParameterValueType_AWS_EC2_IMAGE_ID)
To do the same for a SSM Parameter Store value that is stored as a list:
ssm.StringListParameter.valueForTypedListParameter(this, '/My/Public/Parameter', ssm.ParameterValueType.AWS_EC2_IMAGE_ID);
ssm.StringListParameter.value_for_typed_list_parameter(self, "/My/Public/Parameter", ssm.ParameterValueType.AWS_EC2_IMAGE_ID)
StringListParameter.valueForTypedListParameter(this, "/My/Public/Parameter", ParameterValueType.AWS_EC2_IMAGE_ID);
StringListParameter.ValueForTypedListParameter(this, "/My/Public/Parameter", ParameterValueType.AWS_EC2_IMAGE_ID);
ssm.StringListParameter_ValueForTypedListParameter(this, jsii.String("/My/Public/Parameter"), ssm.ParameterValueType_AWS_EC2_IMAGE_ID)
Lookup existing parameters
You can also use an existing parameter by looking up the parameter from the AWS environment. This method uses AWS API calls to lookup the value from SSM during synthesis.
const stringValue = ssm.StringParameter.valueFromLookup(this, '/My/Public/Parameter');
string_value = ssm.StringParameter.value_from_lookup(self, "/My/Public/Parameter")
String stringValue = StringParameter.valueFromLookup(this, "/My/Public/Parameter");
var stringValue = StringParameter.ValueFromLookup(this, "/My/Public/Parameter");
stringValue := ssm.StringParameter_ValueFromLookup(this, jsii.String("/My/Public/Parameter"))
The result of the StringParameter.valueFromLookup() operation will be written to a file called cdk.context.json. You must commit this file to source control so that the lookup values are available in non-privileged environments such as CI build steps, and to ensure your template builds are repeatable.
To customize the cache key, use the additionalCacheKey property of the options parameter. This allows you to have multiple lookups with the same parameters cache their values separately. This can be useful if you want to scope the context variable to a construct (ie, using additionalCacheKey: this.node.path), so that if the value in the cache needs to be updated, it does not need to be updated for all constructs at the same time.
const stringValue = ssm.StringParameter.valueFromLookup(this, '/My/Public/Parameter', undefined, { additionalCacheKey: this.node.path });
string_value = ssm.StringParameter.value_from_lookup(self, "/My/Public/Parameter", undefined, additional_cache_key=self.node.path)
String stringValue = StringParameter.valueFromLookup(this, "/My/Public/Parameter", undefined, StringParameterLookupOptions.builder().additionalCacheKey(this.node.getPath()).build());
var stringValue = StringParameter.ValueFromLookup(this, "/My/Public/Parameter", undefined, new StringParameterLookupOptions { AdditionalCacheKey = Node.Path });
stringValue := ssm.StringParameter_ValueFromLookup(this, jsii.String("/My/Public/Parameter"), undefined, &StringParameterLookupOptions{
AdditionalCacheKey: this.Node.Path,
})
When using valueFromLookup an initial value of 'dummy-value-for-${parameterName}' (dummy-value-for-/My/Public/Parameter in the above example) is returned prior to the lookup being performed. This can lead to errors if you are using this value in places that require a certain format. For example if you have stored the ARN for a SNS topic in a SSM Parameter which you want to lookup and provide to Topic.fromTopicArn()
const arnLookup = ssm.StringParameter.valueFromLookup(this, '/my/topic/arn');
sns.Topic.fromTopicArn(this, 'Topic', arnLookup);
arn_lookup = ssm.StringParameter.value_from_lookup(self, "/my/topic/arn")
sns.Topic.from_topic_arn(self, "Topic", arn_lookup)
String arnLookup = StringParameter.valueFromLookup(this, "/my/topic/arn");
Topic.fromTopicArn(this, "Topic", arnLookup);
var arnLookup = StringParameter.ValueFromLookup(this, "/my/topic/arn");
Topic.FromTopicArn(this, "Topic", arnLookup);
arnLookup := ssm.StringParameter_ValueFromLookup(this, jsii.String("/my/topic/arn"))
sns.Topic_FromTopicArn(this, jsii.String("Topic"), arnLookup)
Initially arnLookup will be equal to dummy-value-for-/my/topic/arn which will cause Topic.fromTopicArn to throw an error indicating that the value is not in arn format.
For these use cases you need to handle the dummy-value in your code. For example:
const arnLookup = ssm.StringParameter.valueFromLookup(this, '/my/topic/arn');
let arnLookupValue: string;
if (arnLookup.includes('dummy-value')) {
arnLookupValue = this.formatArn({
service: 'sns',
resource: 'topic',
resourceName: arnLookup,
});
} else {
arnLookupValue = arnLookup;
}
sns.Topic.fromTopicArn(this, 'Topic', arnLookupValue);
arn_lookup = ssm.StringParameter.value_from_lookup(self, "/my/topic/arn")
# arn_lookup_value: str
if arn_lookup.includes("dummy-value"):
arn_lookup_value = self.format_arn(
service="sns",
resource="topic",
resource_name=arn_lookup
)
else:
arn_lookup_value = arn_lookup
sns.Topic.from_topic_arn(self, "Topic", arn_lookup_value)
String arnLookup = StringParameter.valueFromLookup(this, "/my/topic/arn");
String arnLookupValue;
if (arnLookup.includes("dummy-value")) {
arnLookupValue = this.formatArn(ArnComponents.builder()
.service("sns")
.resource("topic")
.resourceName(arnLookup)
.build());
} else {
arnLookupValue = arnLookup;
}
Topic.fromTopicArn(this, "Topic", arnLookupValue);
var arnLookup = StringParameter.ValueFromLookup(this, "/my/topic/arn");
string arnLookupValue;
if (arnLookup.Includes("dummy-value"))
{
arnLookupValue = FormatArn(new ArnComponents {
Service = "sns",
Resource = "topic",
ResourceName = arnLookup
});
}
else
{
arnLookupValue = arnLookup;
}
Topic.FromTopicArn(this, "Topic", arnLookupValue);
arnLookup := ssm.StringParameter_ValueFromLookup(this, jsii.String("/my/topic/arn"))
var arnLookupValue string
if arnLookup.includes(jsii.String("dummy-value")) {
arnLookupValue = this.FormatArn(&ArnComponents{
Service: jsii.String("sns"),
Resource: jsii.String("topic"),
ResourceName: arnLookup,
})
} else {
arnLookupValue = arnLookup
}
sns.Topic_FromTopicArn(this, jsii.String("Topic"), arnLookupValue)
Alternatively, if the property supports tokens you can convert the parameter value into a token to be resolved after the lookup has been completed.
const arnLookup = ssm.StringParameter.valueFromLookup(this, '/my/role/arn');
iam.Role.fromRoleArn(this, 'role', Lazy.string({ produce: () => arnLookup }));
arn_lookup = ssm.StringParameter.value_from_lookup(self, "/my/role/arn")
iam.Role.from_role_arn(self, "role", Lazy.string({"produce": () => arnLookup}))
String arnLookup = StringParameter.valueFromLookup(this, "/my/role/arn");
Role.fromRoleArn(this, "role", Lazy.string(Map.of("produce", () => arnLookup)));
var arnLookup = StringParameter.ValueFromLookup(this, "/my/role/arn");
Role.FromRoleArn(this, "role", Lazy.String(new Dictionary<string, produce> { { "produce", () => arnLookup } }));
arnLookup := ssm.StringParameter_ValueFromLookup(this, jsii.String("/my/role/arn"))
iam.Role_FromRoleArn(this, jsii.String("role"), awscdk.Lazy_String(map[string]produce{
"produce": () => arnLookup,
}))
cross-account SSM Parameters sharing
AWS Systems Manager (SSM) Parameter Store supports cross-account sharing of parameters using the AWS Resource Access Manager (AWS RAM) service. In a multi-account environment, this feature enables accounts (referred to as "consuming accounts") to access and retrieve parameter values that are shared by other accounts (referred to as "sharing accounts"). To reference and use a shared SSM parameter in a consuming account, the fromStringParameterArn() method can be employed.
The fromStringParameterArn() method provides a way for consuming accounts to create an instance of the StringParameter class from the Amazon Resource Name (ARN) of a shared SSM parameter. This allows the consuming account to retrieve and utilize the parameter value, even though the parameter itself is owned and managed by a different sharing account.
const sharingParameterArn = 'arn:aws:ssm:us-east-1:1234567890:parameter/dummyName';
const sharedParam = ssm.StringParameter.fromStringParameterArn(this, 'SharedParam', sharingParameterArn);
// the value can be accessed via sharedParam.stringValue
sharing_parameter_arn = "arn:aws:ssm:us-east-1:1234567890:parameter/dummyName"
shared_param = ssm.StringParameter.from_string_parameter_arn(self, "SharedParam", sharing_parameter_arn)
String sharingParameterArn = "arn:aws:ssm:us-east-1:1234567890:parameter/dummyName";
IStringParameter sharedParam = StringParameter.fromStringParameterArn(this, "SharedParam", sharingParameterArn);
var sharingParameterArn = "arn:aws:ssm:us-east-1:1234567890:parameter/dummyName";
var sharedParam = StringParameter.FromStringParameterArn(this, "SharedParam", sharingParameterArn);
sharingParameterArn := "arn:aws:ssm:us-east-1:1234567890:parameter/dummyName"
sharedParam := ssm.StringParameter_FromStringParameterArn(this, jsii.String("SharedParam"), sharingParameterArn)
Things to note:
The account that owns the AWS Systems Manager (SSM) parameter and wants to share it with other accounts (referred to as the "sharing account") must create the parameter in the advanced tier. This is a prerequisite for sharing SSM parameters across accounts.
After creating the parameter in the advanced tier, the sharing account needs to set up a resource share using AWS Resource Access Manager (RAM). This resource share will specify the SSM parameter(s) to be shared and the accounts (referred to as "consuming accounts") with which the parameter(s) should be shared.
Once the resource share is created by the sharing account, the consuming account(s) will receive an invitation to join the resource share. For the consuming account(s) to access and use the shared SSM parameter(s), they must accept the resource share invitation from the sharing account.
The AWS Systems Manager Parameter Store parameter being referenced must be located in the same AWS region as the AWS CDK stack that is consuming or using the parameter.
In summary, the process involves three main steps:
The sharing account creates the SSM parameter(s) in the advanced tier.
The sharing account creates a resource share using AWS RAM, specifying the SSM parameter(s) and the consuming account(s).
The consuming account(s) accept the resource share invitation to gain access to the shared SSM parameter(s).
This cross-account sharing mechanism allows for centralized management and distribution of configuration data (stored as SSM parameters) across multiple AWS accounts within an organization or between different organizations.
Read Working with shared parameters for more details.
Creating new SSM Parameters in your CDK app
You can create either ssm.StringParameter or ssm.StringListParameters in a CDK app. These are public (not secret) values. Parameters of type SecureString cannot be created directly from a CDK application; if you want to provision secrets automatically, use Secrets Manager Secrets (see the aws-cdk-lib/aws-secretsmanager package).
new ssm.StringParameter(this, 'Parameter', {
allowedPattern: '.*',
description: 'The value Foo',
parameterName: 'FooParameter',
stringValue: 'Foo',
tier: ssm.ParameterTier.ADVANCED,
});
ssm.StringParameter(self, "Parameter",
allowed_pattern=".*",
description="The value Foo",
parameter_name="FooParameter",
string_value="Foo",
tier=ssm.ParameterTier.ADVANCED
)
StringParameter.Builder.create(this, "Parameter")
.allowedPattern(".*")
.description("The value Foo")
.parameterName("FooParameter")
.stringValue("Foo")
.tier(ParameterTier.ADVANCED)
.build();
new StringParameter(this, "Parameter", new StringParameterProps {
AllowedPattern = ".*",
Description = "The value Foo",
ParameterName = "FooParameter",
StringValue = "Foo",
Tier = ParameterTier.ADVANCED
});
ssm.NewStringParameter(this, jsii.String("Parameter"), &StringParameterProps{
AllowedPattern: jsii.String(".*"),
Description: jsii.String("The value Foo"),
ParameterName: jsii.String("FooParameter"),
StringValue: jsii.String("Foo"),
Tier: ssm.ParameterTier_ADVANCED,
})
// Create a new SSM Parameter holding a String
const param = new ssm.StringParameter(this, 'StringParameter', {
// description: 'Some user-friendly description',
// name: 'ParameterName',
stringValue: 'Initial parameter value',
// allowedPattern: '.*',
});
// Grant read access to some Role
declare const role: iam.IRole;
param.grantRead(role);
// Create a new SSM Parameter holding a StringList
const listParameter = new ssm.StringListParameter(this, 'StringListParameter', {
// description: 'Some user-friendly description',
// name: 'ParameterName',
stringListValue: ['Initial parameter value A', 'Initial parameter value B'],
// allowedPattern: '.*',
});
# Grant read access to some Role
# role: iam.IRole
# Create a new SSM Parameter holding a String
param = ssm.StringParameter(self, "StringParameter",
# description: 'Some user-friendly description',
# name: 'ParameterName',
string_value="Initial parameter value"
)
param.grant_read(role)
# Create a new SSM Parameter holding a StringList
list_parameter = ssm.StringListParameter(self, "StringListParameter",
# description: 'Some user-friendly description',
# name: 'ParameterName',
string_list_value=["Initial parameter value A", "Initial parameter value B"]
)
// Grant read access to some Role
IRole role;
// Create a new SSM Parameter holding a String
StringParameter param = StringParameter.Builder.create(this, "StringParameter")
// description: 'Some user-friendly description',
// name: 'ParameterName',
.stringValue("Initial parameter value")
.build();
param.grantRead(role);
// Create a new SSM Parameter holding a StringList
StringListParameter listParameter = StringListParameter.Builder.create(this, "StringListParameter")
// description: 'Some user-friendly description',
// name: 'ParameterName',
.stringListValue(List.of("Initial parameter value A", "Initial parameter value B"))
.build();
// Grant read access to some Role
IRole role;
// Create a new SSM Parameter holding a String
var param = new StringParameter(this, "StringParameter", new StringParameterProps {
// description: 'Some user-friendly description',
// name: 'ParameterName',
StringValue = "Initial parameter value"
});
param.GrantRead(role);
// Create a new SSM Parameter holding a StringList
var listParameter = new StringListParameter(this, "StringListParameter", new StringListParameterProps {
// description: 'Some user-friendly description',
// name: 'ParameterName',
StringListValue = new [] { "Initial parameter value A", "Initial parameter value B" }
});
// Grant read access to some Role
var role IRole
// Create a new SSM Parameter holding a String
param := ssm.NewStringParameter(this, jsii.String("StringParameter"), &StringParameterProps{
// description: 'Some user-friendly description',
// name: 'ParameterName',
StringValue: jsii.String("Initial parameter value"),
})
param.grantRead(role)
// Create a new SSM Parameter holding a StringList
listParameter := ssm.NewStringListParameter(this, jsii.String("StringListParameter"), &StringListParameterProps{
// description: 'Some user-friendly description',
// name: 'ParameterName',
StringListValue: []*string{
jsii.String("Initial parameter value A"),
jsii.String("Initial parameter value B"),
},
})
When specifying an allowedPattern, the values provided as string literals are validated against the pattern and an exception is raised if a value provided does not comply.
Using Tokens in parameter name
When using CDK Tokens in parameter name, you need to explicitly set the simpleName property. Setting simpleName to an incorrect boolean value may result in unexpected behaviours, such as having duplicate '/' in the parameter ARN or missing a '/' in the parameter ARN.
simpleName is used to indicates whether the parameter name is a simple name. A parameter name without any '/' is considered a simple name, thus you should set simpleName to true. If the parameter name includes '/', set simpleName to false.
import * as lambda from 'aws-cdk-lib/aws-lambda';
const simpleParameter = new ssm.StringParameter(this, 'StringParameter', {
// the parameter name doesn't contain any '/'
parameterName: 'parameter',
stringValue: 'SOME_VALUE',
simpleName: true, // set `simpleName` to true
});
declare const func: lambda.IFunction;
const nonSimpleParameter = new ssm.StringParameter(this, 'StringParameter', {
// the parameter name contains '/'
parameterName: `/${func.functionName}/my/app/param`,
stringValue: 'SOME_VALUE',
simpleName: false, // set `simpleName` to false
});
import aws_cdk.aws_lambda as lambda_
# func: lambda.IFunction
simple_parameter = ssm.StringParameter(self, "StringParameter",
# the parameter name doesn't contain any '/'
parameter_name="parameter",
string_value="SOME_VALUE",
simple_name=True
)
non_simple_parameter = ssm.StringParameter(self, "StringParameter",
# the parameter name contains '/'
parameter_name=f"/{func.functionName}/my/app/param",
string_value="SOME_VALUE",
simple_name=False
)
import software.amazon.awscdk.services.lambda.*;
IFunction func;
StringParameter simpleParameter = StringParameter.Builder.create(this, "StringParameter")
// the parameter name doesn't contain any '/'
.parameterName("parameter")
.stringValue("SOME_VALUE")
.simpleName(true)
.build();
StringParameter nonSimpleParameter = StringParameter.Builder.create(this, "StringParameter")
// the parameter name contains '/'
.parameterName(String.format("/%s/my/app/param", func.getFunctionName()))
.stringValue("SOME_VALUE")
.simpleName(false)
.build();
using Amazon.CDK.AWS.Lambda;
IFunction func;
var simpleParameter = new StringParameter(this, "StringParameter", new StringParameterProps {
// the parameter name doesn't contain any '/'
ParameterName = "parameter",
StringValue = "SOME_VALUE",
SimpleName = true
});
var nonSimpleParameter = new StringParameter(this, "StringParameter", new StringParameterProps {
// the parameter name contains '/'
ParameterName = $"/{func.functionName}/my/app/param",
StringValue = "SOME_VALUE",
SimpleName = false
});
import lambda "github.com/aws/aws-cdk-go/awscdk"
var func IFunction
simpleParameter := ssm.NewStringParameter(this, jsii.String("StringParameter"), &StringParameterProps{
// the parameter name doesn't contain any '/'
ParameterName: jsii.String("parameter"),
StringValue: jsii.String("SOME_VALUE"),
SimpleName: jsii.Boolean(true),
})
nonSimpleParameter := ssm.NewStringParameter(this, jsii.String("StringParameter"), &StringParameterProps{
// the parameter name contains '/'
ParameterName: fmt.Sprintf("/%v/my/app/param", func.FunctionName),
StringValue: jsii.String("SOME_VALUE"),
SimpleName: jsii.Boolean(false),
})
Types
Constructs (L2)
StringListParameterConstruct (L2)
Creates a new StringList SSM Parameter.StringParameterConstruct (L2)
Creates a new String SSM Parameter.
Constructs (L1)
CfnAssociationConstruct (L1)
TheAWS::SSM::Associationresource creates a State Manager association for your managed instances.CfnCloudConnectorConstruct (L1)
Resource Type definition for AWS::SSM::CloudConnector.CfnConstruct (L1)Default Host Management Configuration
Resource Type definition for AWS::SSM::DefaultHostManagementConfiguration.CfnDocumentConstruct (L1)
TheAWS::SSM::Documentresource creates a Systems Manager (SSM) document in AWS Systems Manager .CfnMaintenanceWindowConstruct (L1)
TheAWS::SSM::MaintenanceWindowresource represents general information about a maintenance window for AWS Systems Manager .CfnMaintenanceWindowTargetConstruct (L1)
TheAWS::SSM::MaintenanceWindowTargetresource registers a target with a maintenance window for AWS Systems Manager .CfnMaintenanceWindowTaskConstruct (L1)
TheAWS::SSM::MaintenanceWindowTaskresource defines information about a task for an AWS Systems Manager maintenance window.CfnOpsItemConstruct (L1)
Resource schema for AWS::SSM::OpsItem.CfnParameterConstruct (L1)
TheAWS::SSM::Parameterresource creates an SSM parameter in AWS Systems Manager Parameter Store.CfnPatchBaselineConstruct (L1)
TheAWS::SSM::PatchBaselineresource defines the basic information for an AWS Systems Manager patch baseline.CfnResourceDataSyncConstruct (L1)
TheAWS::SSM::ResourceDataSyncresource creates, updates, or deletes a resource data sync for AWS Systems Manager .CfnResourcePolicyConstruct (L1)
Creates or updates a Systems Manager resource policy.CfnServiceSettingConstruct (L1)
Resource Type definition for AWS::SSM::ServiceSetting.
Structs
CfnAssociation.StructInstance Association Output Location Property InstanceAssociationOutputLocationis a property of the AWS::SSM::Association resource that specifies an Amazon S3 bucket where you want to store the results of this association request.CfnAssociation.StructS3OutputLocationProperty S3OutputLocationis a property of the AWS::SSM::Association resource that specifies an Amazon S3 bucket where you want to store the results of this association request.CfnAssociation.TargetPropertyStructTargetis a property of the AWS::SSM::Association resource that specifies the targets for an SSM document in Systems Manager . You can target all instances in an AWS account by specifying theInstanceIdskey with a value of*. To view a JSON and a YAML example that targets all instances, see the example "Create an association for all managed instances in an AWS account " later in this page.CfnAssociationPropsStruct
Properties for defining aCfnAssociation.CfnCloudConnector.StructAzureConfigurationProperty
Configuration for connecting to Azure.CfnCloudConnector.StructAzureSubscriptionProperty
An Azure subscription with its ID and optional display name.CfnCloudConnector.StructCloud Connector Configuration Property
The configuration for the cloud connector.CfnCloudConnector.StructConfigurationTargetsProperty
The targets for the cloud connector.CfnCloudConnector.StructGcpConfigurationProperty
Configuration for connecting to Google Cloud.CfnCloudConnector.StructGcpConfigurationTargetsProperty
The targets for the cloud connector.CfnCloudConnector.StructGcpProjectProperty
A GCP project with its ID and optional display name.CfnCloudConnectorPropsStruct
Properties for defining aCfnCloudConnector.CfnStructDefault Host Management Configuration Props
Properties for defining aCfnDefaultHostManagementConfiguration.CfnDocument.StructAttachmentsSourceProperty
Identifying information about a document attachment, including the file name and a key-value pair that identifies the location of an attachment to a document.CfnDocument.StructDocumentRequiresProperty
An SSM document required by the current document.CfnDocumentPropsStruct
Properties for defining aCfnDocument.CfnMaintenanceWindowPropsStruct
Properties for defining aCfnMaintenanceWindow.CfnMaintenanceWindowTarget.StructTargetsProperty
TheTargetsproperty type specifies adding a target to a maintenance window target in AWS Systems Manager .CfnMaintenanceWindowTargetPropsStruct
Properties for defining aCfnMaintenanceWindowTarget.CfnMaintenanceWindowTask.StructCloudWatchOutputConfigProperty
Configuration options for sending command output to Amazon CloudWatch Logs.CfnMaintenanceWindowTask.StructLoggingInfoProperty
>LoggingInfohas been deprecated.CfnMaintenanceWindowTask.StructMaintenance Window Automation Parameters Property
TheMaintenanceWindowAutomationParametersproperty type specifies the parameters for anAUTOMATIONtask type for a maintenance window task in AWS Systems Manager .CfnMaintenanceWindowTask.StructMaintenance Window Lambda Parameters Property
TheMaintenanceWindowLambdaParametersproperty type specifies the parameters for aLAMBDAtask type for a maintenance window task in AWS Systems Manager .CfnMaintenanceWindowTask.StructMaintenance Window Run Command Parameters Property
TheMaintenanceWindowRunCommandParametersproperty type specifies the parameters for aRUN_COMMANDtask type for a maintenance window task in AWS Systems Manager .CfnMaintenanceWindowTask.StructMaintenance Window Step Functions Parameters Property
TheMaintenanceWindowStepFunctionsParametersproperty type specifies the parameters for the execution of aSTEP_FUNCTIONStask in a Systems Manager maintenance window.CfnMaintenanceWindowTask.StructNotificationConfigProperty
TheNotificationConfigproperty type specifies configurations for sending notifications for a maintenance window task in AWS Systems Manager .CfnMaintenanceWindowTask.StructTargetProperty
TheTargetproperty type specifies targets (either instances or window target IDs).CfnMaintenanceWindowTask.StructTaskInvocationParametersProperty
TheTaskInvocationParametersproperty type specifies the task execution parameters for a maintenance window task in AWS Systems Manager .CfnMaintenanceWindowTaskPropsStruct
Properties for defining aCfnMaintenanceWindowTask.CfnOpsItemPropsStruct
Properties for defining aCfnOpsItem.CfnParameterPropsStruct
Properties for defining aCfnParameter.CfnPatchBaseline.StructPatchFilterGroupProperty
ThePatchFilterGroupproperty type specifies a set of patch filters for an AWS Systems Manager patch baseline, typically used for approval rules for a Systems Manager patch baseline.CfnPatchBaseline.StructPatchFilterProperty
ThePatchFilterproperty type defines a patch filter for an AWS Systems Manager patch baseline.CfnPatchBaseline.StructPatchSourceProperty PatchSourceis the property type for theSourcesresource of the AWS::SSM::PatchBaseline resource.CfnPatchBaseline.StructRuleGroupProperty
TheRuleGroupproperty type specifies a set of rules that define the approval rules for an AWS Systems Manager patch baseline.CfnPatchBaseline.RulePropertyStruct
TheRuleproperty type specifies an approval rule for a Systems Manager patch baseline.CfnPatchBaselinePropsStruct
Properties for defining aCfnPatchBaseline.CfnResourceDataSync.StructAwsOrganizationsSourceProperty
Information about theAwsOrganizationsSourceresource data sync source.CfnResourceDataSync.StructS3DestinationProperty
Information about the target S3 bucket for the resource data sync.CfnResourceDataSync.StructSyncSourceProperty
Information about the source of the data included in the resource data sync.CfnResourceDataSyncPropsStruct
Properties for defining aCfnResourceDataSync.CfnResourcePolicyPropsStruct
Properties for defining aCfnResourcePolicy.CfnServiceSettingPropsStruct
Properties for defining aCfnServiceSetting.CommonStringParameterAttributesStruct
Common attributes for string parameters.ListParameterAttributesStruct
Attributes for parameters of string list type.ParameterOptionsStruct
Properties needed to create a new SSM Parameter.SecureStringParameterAttributesStruct
Attributes for secure string parameters.StringListParameterPropsStruct
Properties needed to create a StringList SSM Parameter.StringParameterAttributesStruct
Attributes for parameters of various types of string.StringParameterLookupOptionsStruct
Additional properties for looking up an existing StringParameter.StringParameterPropsStruct
Properties needed to create a String SSM parameter.
Interfaces
IParameterInterface
An SSM Parameter reference.IStringListParameterInterface
A StringList SSM Parameter.IStringParameterInterface
A String SSM Parameter.
Enums
ParameterDataTypeEnum
SSM parameter data type.ParameterTierEnum
SSM parameter tier.ParameterTypeEnum
SSM parameter type.ParameterValueTypeEnum
The type of CFN SSM Parameter.