@Generated(value="jsii-pacmak/1.30.0 (build adae23f)", date="2021-06-30T10:01:38.395Z") @Stability(value=Experimental) public class StringParameter extends Resource implements IStringParameter, IParameter
| Modifier and Type | Class and Description |
|---|---|
static class |
StringParameter.Builder
(experimental) A fluent builder for
StringParameter. |
software.amazon.jsii.JsiiObject.InitializationModeIStringParameter.Jsii$Default, IStringParameter.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
StringParameter(software.constructs.Construct scope,
String id,
StringParameterProps props) |
protected |
StringParameter(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
StringParameter(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
static IStringParameter |
fromSecureStringParameterAttributes(software.constructs.Construct scope,
String id,
SecureStringParameterAttributes attrs)
(experimental) Imports a secure string parameter from the SSM parameter store.
|
static IStringParameter |
fromStringParameterAttributes(software.constructs.Construct scope,
String id,
StringParameterAttributes attrs)
(experimental) Imports an external string parameter with name and optional version.
|
static IStringParameter |
fromStringParameterName(software.constructs.Construct scope,
String id,
String stringParameterName)
(experimental) Imports an external string parameter by name.
|
IKey |
getEncryptionKey()
(experimental) The encryption key that is used to encrypt this parameter.
|
String |
getParameterArn()
(experimental) The ARN of the SSM Parameter resource.
|
String |
getParameterName()
(experimental) The name of the SSM Parameter resource.
|
String |
getParameterType()
(experimental) The type of the SSM Parameter resource.
|
String |
getStringValue()
(experimental) The parameter value.
|
Grant |
grantRead(IGrantable grantee)
(experimental) Grants read (DescribeParameter, GetParameter, GetParameterHistory) permissions on the SSM Parameter.
|
Grant |
grantWrite(IGrantable grantee)
(experimental) Grants write (PutParameter) permissions on the SSM Parameter.
|
static String |
valueForSecureStringParameter(software.constructs.Construct scope,
String parameterName,
Number version)
(experimental) Returns a token that will resolve (during deployment).
|
static String |
valueForStringParameter(software.constructs.Construct scope,
String parameterName)
(experimental) Returns a token that will resolve (during deployment) to the string value of an SSM string parameter.
|
static String |
valueForStringParameter(software.constructs.Construct scope,
String parameterName,
Number version)
(experimental) Returns a token that will resolve (during deployment) to the string value of an SSM string parameter.
|
static String |
valueForTypedStringParameter(software.constructs.Construct scope,
String parameterName)
(experimental) Returns a token that will resolve (during deployment) to the string value of an SSM string parameter.
|
static String |
valueForTypedStringParameter(software.constructs.Construct scope,
String parameterName,
ParameterType type)
(experimental) Returns a token that will resolve (during deployment) to the string value of an SSM string parameter.
|
static String |
valueForTypedStringParameter(software.constructs.Construct scope,
String parameterName,
ParameterType type,
Number version)
(experimental) Returns a token that will resolve (during deployment) to the string value of an SSM string parameter.
|
static String |
valueFromLookup(software.constructs.Construct scope,
String parameterName)
(experimental) Reads the value of an SSM parameter during synthesis through an environmental context provider.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResourcejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected StringParameter(software.amazon.jsii.JsiiObjectRef objRef)
protected StringParameter(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public StringParameter(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
StringParameterProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Experimental) @NotNull public static IStringParameter fromSecureStringParameterAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull SecureStringParameterAttributes attrs)
scope - This parameter is required.id - This parameter is required.attrs - This parameter is required.@Stability(value=Experimental) @NotNull public static IStringParameter fromStringParameterAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull StringParameterAttributes attrs)
scope - This parameter is required.id - This parameter is required.attrs - This parameter is required.@Stability(value=Experimental) @NotNull public static IStringParameter fromStringParameterName(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String stringParameterName)
scope - This parameter is required.id - This parameter is required.stringParameterName - This parameter is required.@Stability(value=Experimental) @NotNull public static String valueForSecureStringParameter(@NotNull software.constructs.Construct scope, @NotNull String parameterName, @NotNull Number version)
scope - Some scope within a stack. This parameter is required.parameterName - The name of the SSM parameter. This parameter is required.version - The parameter version (required for secure strings). This parameter is required.@Stability(value=Experimental) @NotNull public static String valueForStringParameter(@NotNull software.constructs.Construct scope, @NotNull String parameterName, @Nullable Number version)
scope - Some scope within a stack. This parameter is required.parameterName - The name of the SSM parameter. This parameter is required.version - The parameter version (recommended in order to ensure that the value won't change during deployment).@Stability(value=Experimental) @NotNull public static String valueForStringParameter(@NotNull software.constructs.Construct scope, @NotNull String parameterName)
scope - Some scope within a stack. This parameter is required.parameterName - The name of the SSM parameter. This parameter is required.@Stability(value=Experimental) @NotNull public static String valueForTypedStringParameter(@NotNull software.constructs.Construct scope, @NotNull String parameterName, @Nullable ParameterType type, @Nullable Number version)
scope - Some scope within a stack. This parameter is required.parameterName - The name of the SSM parameter. This parameter is required.type - The type of the SSM parameter.version - The parameter version (recommended in order to ensure that the value won't change during deployment).@Stability(value=Experimental) @NotNull public static String valueForTypedStringParameter(@NotNull software.constructs.Construct scope, @NotNull String parameterName, @Nullable ParameterType type)
scope - Some scope within a stack. This parameter is required.parameterName - The name of the SSM parameter. This parameter is required.type - The type of the SSM parameter.@Stability(value=Experimental) @NotNull public static String valueForTypedStringParameter(@NotNull software.constructs.Construct scope, @NotNull String parameterName)
scope - Some scope within a stack. This parameter is required.parameterName - The name of the SSM parameter. This parameter is required.@Stability(value=Experimental) @NotNull public static String valueFromLookup(@NotNull software.constructs.Construct scope, @NotNull String parameterName)
Requires that the stack this scope is defined in will have explicit account/region information. Otherwise, it will fail during synthesis.
scope - This parameter is required.parameterName - This parameter is required.@Stability(value=Experimental) @NotNull public Grant grantRead(@NotNull IGrantable grantee)
grantRead in interface IParametergrantee - This parameter is required.@Stability(value=Experimental) @NotNull public Grant grantWrite(@NotNull IGrantable grantee)
grantWrite in interface IParametergrantee - This parameter is required.@Stability(value=Experimental) @NotNull public String getParameterArn()
getParameterArn in interface IParameter@Stability(value=Experimental) @NotNull public String getParameterName()
getParameterName in interface IParameter@Stability(value=Experimental) @NotNull public String getParameterType()
getParameterType in interface IParameter@Stability(value=Experimental) @NotNull public String getStringValue()
Value must not nest another parameter. Do not use {{}} in the value.
getStringValue in interface IStringParameter@Stability(value=Experimental) @Nullable public IKey getEncryptionKey()
Copyright © 2021. All rights reserved.