@Generated(value="jsii-pacmak/1.14.1 (build 828de8a)", date="2020-11-24T22:29:47.733Z") @Stability(value=Stable) public abstract class Secret extends software.amazon.jsii.JsiiObject
Modifier | Constructor and Description |
---|---|
protected |
Secret() |
protected |
Secret(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Secret(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
static Secret |
fromSecretsManager(ISecret secret)
Creates a environment variable value from a secret stored in AWS Secrets Manager.
|
static Secret |
fromSecretsManager(ISecret secret,
String field)
Creates a environment variable value from a secret stored in AWS Secrets Manager.
|
static Secret |
fromSsmParameter(IParameter parameter)
Creates an environment variable value from a parameter stored in AWS Systems Manager Parameter Store.
|
abstract String |
getArn()
The ARN of the secret.
|
abstract Boolean |
getHasField()
Whether this secret uses a specific JSON field.
|
abstract Grant |
grantRead(IGrantable grantee)
Grants reading the secret to a principal.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
protected Secret(software.amazon.jsii.JsiiObjectRef objRef)
protected Secret(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable) protected Secret()
@Stability(value=Stable) @NotNull public static Secret fromSecretsManager(@NotNull ISecret secret, @Nullable String field)
secret
- the secret stored in AWS Secrets Manager. This parameter is required.field
- the name of the field with the value that you want to set as the environment variable value.@Stability(value=Stable) @NotNull public static Secret fromSecretsManager(@NotNull ISecret secret)
secret
- the secret stored in AWS Secrets Manager. This parameter is required.@Stability(value=Stable) @NotNull public static Secret fromSsmParameter(@NotNull IParameter parameter)
parameter
- This parameter is required.@Stability(value=Stable) @NotNull public abstract Grant grantRead(@NotNull IGrantable grantee)
grantee
- This parameter is required.@Stability(value=Stable) @NotNull public abstract String getArn()
@Stability(value=Stable) @Nullable public abstract Boolean getHasField()
Copyright © 2020. All rights reserved.