Class CfnJobDefinition.SecretProperty
An object that represents the secret to expose to your container.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.Batch
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class SecretProperty : Object, CfnJobDefinition.ISecretProperty
Syntax (vb)
Public Class SecretProperty
Inherits Object
Implements CfnJobDefinition.ISecretProperty
Remarks
Secrets can be exposed to a container in the following ways:
For more information, see Specifying sensitive data in the AWS Batch User Guide .
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Batch;
var secretProperty = new SecretProperty {
Name = "name",
ValueFrom = "valueFrom"
};
Synopsis
Constructors
Secret |
Properties
Name | The name of the secret. |
Value |
The secret to expose to the container. |
Constructors
SecretProperty()
public SecretProperty()
Properties
Name
The name of the secret.
public string Name { get; set; }
Property Value
System.
Remarks
ValueFrom
The secret to expose to the container.
public string ValueFrom { get; set; }
Property Value
System.
Remarks
The supported values are either the full Amazon Resource Name (ARN) of the AWS Secrets Manager secret or the full ARN of the parameter in the AWS Systems Manager Parameter Store.
If the AWS Systems Manager Parameter Store parameter exists in the same Region as the job you're launching, then you can use either the full Amazon Resource Name (ARN) or name of the parameter. If the parameter exists in a different Region, then the full ARN must be specified.