Class StringListParameter
Creates a new StringList SSM Parameter.
Inherited Members
Namespace: Amazon.CDK.AWS.SSM
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class StringListParameter : Resource, IStringListParameter, IParameter, IResource
Syntax (vb)
Public Class StringListParameter
Inherits Resource
Implements IStringListParameter, IParameter, IResource
Remarks
Resource: AWS::SSM::Parameter
ExampleMetadata: infused
Examples
StringListParameter.ValueForTypedListParameter(this, "/My/Public/Parameter", ParameterValueType.AWS_EC2_IMAGE_ID);
Synopsis
Constructors
StringListParameter(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
StringListParameter(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
StringListParameter(Construct, String, IStringListParameterProps) |
Properties
EncryptionKey | The encryption key that is used to encrypt this parameter. |
ParameterArn | The ARN of the SSM Parameter resource. |
ParameterName | The name of the SSM Parameter resource. |
ParameterType | The type of the SSM Parameter resource. |
StringListValue | The parameter value. |
Methods
FromListParameterAttributes(Construct, String, IListParameterAttributes) | Imports an external string list parameter with name and optional version. |
FromStringListParameterName(Construct, String, String) | Imports an external parameter of type string list. |
GrantRead(IGrantable) | Grants read (DescribeParameter, GetParameters, GetParameter, GetParameterHistory) permissions on the SSM Parameter. |
GrantWrite(IGrantable) | Grants write (PutParameter) permissions on the SSM Parameter. |
ValueForTypedListParameter(Construct, String, Nullable<ParameterValueType>, Nullable<Double>) | Returns a token that will resolve (during deployment) to the list value of an SSM StringList parameter. |
Constructors
StringListParameter(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected StringListParameter(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
StringListParameter(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected StringListParameter(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
StringListParameter(Construct, String, IStringListParameterProps)
public StringListParameter(Construct scope, string id, IStringListParameterProps props)
Parameters
- scope Constructs.Construct
- id System.String
- props IStringListParameterProps
Properties
EncryptionKey
The encryption key that is used to encrypt this parameter.
public virtual IKey EncryptionKey { get; }
Property Value
Remarks
Default: - default master key
ParameterArn
The ARN of the SSM Parameter resource.
public virtual string ParameterArn { get; }
Property Value
System.String
ParameterName
The name of the SSM Parameter resource.
public virtual string ParameterName { get; }
Property Value
System.String
ParameterType
The type of the SSM Parameter resource.
public virtual string ParameterType { get; }
Property Value
System.String
StringListValue
The parameter value.
public virtual string[] StringListValue { get; }
Property Value
System.String[]
Remarks
Value must not nest another parameter. Do not use {{}} in the value. Values in the array
cannot contain commas (,
).
Methods
FromListParameterAttributes(Construct, String, IListParameterAttributes)
Imports an external string list parameter with name and optional version.
public static IStringListParameter FromListParameterAttributes(Construct scope, string id, IListParameterAttributes attrs)
Parameters
- scope Constructs.Construct
- id System.String
- attrs IListParameterAttributes
Returns
FromStringListParameterName(Construct, String, String)
Imports an external parameter of type string list.
public static IStringListParameter FromStringListParameterName(Construct scope, string id, string stringListParameterName)
Parameters
- scope Constructs.Construct
- id System.String
- stringListParameterName System.String
Returns
Remarks
Returns a token and should not be parsed.
GrantRead(IGrantable)
Grants read (DescribeParameter, GetParameters, GetParameter, GetParameterHistory) permissions on the SSM Parameter.
public virtual Grant GrantRead(IGrantable grantee)
Parameters
- grantee IGrantable
Returns
GrantWrite(IGrantable)
Grants write (PutParameter) permissions on the SSM Parameter.
public virtual Grant GrantWrite(IGrantable grantee)
Parameters
- grantee IGrantable
Returns
ValueForTypedListParameter(Construct, String, Nullable<ParameterValueType>, Nullable<Double>)
Returns a token that will resolve (during deployment) to the list value of an SSM StringList parameter.
public static string[] ValueForTypedListParameter(Construct scope, string parameterName, Nullable<ParameterValueType> type = null, Nullable<double> version = null)
Parameters
- scope Constructs.Construct
Some scope within a stack.
- parameterName System.String
The name of the SSM parameter.
- type System.Nullable<ParameterValueType>
the type of the SSM list parameter.
- version System.Nullable<System.Double>
The parameter version (recommended in order to ensure that the value won't change during deployment).
Returns
System.String[]