@Generated(value="jsii-pacmak/1.29.0 (build 41df200)", date="2021-06-02T09:55:17.262Z") @Stability(value=Experimental) 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)
(experimental) Creates a environment variable value from a secret stored in AWS Secrets Manager.
|
static Secret |
fromSecretsManager(ISecret secret,
String field)
(experimental) Creates a environment variable value from a secret stored in AWS Secrets Manager.
|
static Secret |
fromSsmParameter(IParameter parameter)
(experimental) Creates an environment variable value from a parameter stored in AWS Systems Manager Parameter Store.
|
abstract String |
getArn()
(experimental) The ARN of the secret.
|
abstract Boolean |
getHasField()
(experimental) Whether this secret uses a specific JSON field.
|
abstract Grant |
grantRead(IGrantable grantee)
(experimental) Grants reading the secret to a principal.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected Secret(software.amazon.jsii.JsiiObjectRef objRef)
protected Secret(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental) protected Secret()
@Stability(value=Experimental) @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=Experimental) @NotNull public static Secret fromSecretsManager(@NotNull ISecret secret)
secret - the secret stored in AWS Secrets Manager. This parameter is required.@Stability(value=Experimental) @NotNull public static Secret fromSsmParameter(@NotNull IParameter parameter)
parameter - This parameter is required.@Stability(value=Experimental) @NotNull public abstract Grant grantRead(@NotNull IGrantable grantee)
grantee - This parameter is required.@Stability(value=Experimental) @NotNull public abstract String getArn()
@Stability(value=Experimental) @Nullable public abstract Boolean getHasField()
Copyright © 2021. All rights reserved.