@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-07T23:47:01.635Z") @Stability(value=Experimental) public class ExposedSecret extends software.amazon.jsii.JsiiObject
Example:
import software.amazon.awscdk.core.*;
JobDefinition.Builder.create(this, "job-def")
.container(JobDefinitionContainer.builder()
.image(EcrImage.fromRegistry("docker/whalesay"))
.logConfiguration(LogConfiguration.builder()
.logDriver(LogDriver.AWSLOGS)
.options(Map.of("awslogs-region", "us-east-1"))
.secretOptions(List.of(ExposedSecret.fromParametersStore("xyz", StringParameter.fromStringParameterName(this, "parameter", "xyz"))))
.build())
.build())
.build();
| Modifier | Constructor and Description |
|---|---|
protected |
ExposedSecret(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
ExposedSecret(software.amazon.jsii.JsiiObjectRef objRef) |
|
ExposedSecret(String optionName,
String secretArn) |
| Modifier and Type | Method and Description |
|---|---|
static ExposedSecret |
fromParametersStore(String optionName,
IParameter parameter)
(experimental) User Parameters Store Parameter.
|
static ExposedSecret |
fromSecretsManager(String optionName,
ISecret secret)
(experimental) Use Secrets Manager Secret.
|
String |
getOptionName()
(experimental) Name of the option.
|
String |
getSecretArn()
(experimental) ARN of the secret option.
|
void |
setOptionName(String value)
(experimental) Name of the option.
|
void |
setSecretArn(String value)
(experimental) ARN of the secret option.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected ExposedSecret(software.amazon.jsii.JsiiObjectRef objRef)
protected ExposedSecret(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental) @NotNull public static ExposedSecret fromParametersStore(@NotNull String optionName, @NotNull IParameter parameter)
optionName - - The name of the option. This parameter is required.parameter - - A parameter from parameters store. This parameter is required.@Stability(value=Experimental) @NotNull public static ExposedSecret fromSecretsManager(@NotNull String optionName, @NotNull ISecret secret)
optionName - - The name of the option. This parameter is required.secret - - A secret from secrets manager. This parameter is required.@Stability(value=Experimental) @NotNull public String getOptionName()
@Stability(value=Experimental)
public void setOptionName(@NotNull
String value)
@Stability(value=Experimental) @NotNull public String getSecretArn()
@Stability(value=Experimental)
public void setSecretArn(@NotNull
String value)
Copyright © 2022. All rights reserved.