Class ExposedSecret
(experimental) Exposed secret for log configuration.
Inheritance
Namespace: Amazon.CDK.AWS.Batch
Assembly: Amazon.CDK.AWS.Batch.dll
Syntax (csharp)
public class ExposedSecret : DeputyBase
Syntax (vb)
Public Class ExposedSecret
Inherits DeputyBase
Remarks
Stability: Experimental
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.SSM;
new JobDefinition(this, "job-def", new JobDefinitionProps {
Container = new JobDefinitionContainer {
Image = EcrImage.FromRegistry("docker/whalesay"),
LogConfiguration = new LogConfiguration {
LogDriver = LogDriver.AWSLOGS,
Options = new Dictionary<string, string> { { "awslogs-region", "us-east-1" } },
SecretOptions = new [] { ExposedSecret.FromParametersStore("xyz", StringParameter.FromStringParameterName(this, "parameter", "xyz")) }
}
}
});
Synopsis
Constructors
ExposedSecret(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
ExposedSecret(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
ExposedSecret(String, String) |
Properties
OptionName | (experimental) Name of the option. |
SecretArn | (experimental) ARN of the secret option. |
Methods
FromParametersStore(String, IParameter) | (experimental) User Parameters Store Parameter. |
FromSecretsManager(String, ISecret) | (experimental) Use Secrets Manager Secret. |
Constructors
ExposedSecret(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected ExposedSecret(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
ExposedSecret(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected ExposedSecret(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
ExposedSecret(String, String)
public ExposedSecret(string optionName, string secretArn)
Parameters
- optionName System.String
- secretArn System.String
Remarks
Stability: Experimental
Properties
OptionName
(experimental) Name of the option.
public virtual string OptionName { get; set; }
Property Value
System.String
Remarks
Stability: Experimental
SecretArn
(experimental) ARN of the secret option.
public virtual string SecretArn { get; set; }
Property Value
System.String
Remarks
Stability: Experimental
Methods
FromParametersStore(String, IParameter)
(experimental) User Parameters Store Parameter.
public static ExposedSecret FromParametersStore(string optionName, IParameter parameter)
Parameters
- optionName System.String
- The name of the option.
- parameter IParameter
- A parameter from parameters store.
Returns
Remarks
Stability: Experimental
FromSecretsManager(String, ISecret)
(experimental) Use Secrets Manager Secret.
public static ExposedSecret FromSecretsManager(string optionName, ISecret secret)
Parameters
- optionName System.String
- The name of the option.
- secret ISecret
- A secret from secrets manager.
Returns
Remarks
Stability: Experimental