Show / Hide Table of Contents

Class CfnTaskDefinitionPropsMixin.SecretProperty

An object representing the secret to expose to your container.

Inheritance
object
CfnTaskDefinitionPropsMixin.SecretProperty
Implements
CfnTaskDefinitionPropsMixin.ISecretProperty
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.CfnPropertyMixins.AWS.ECS
Assembly: Amazon.CDK.CfnPropertyMixins.dll
Syntax (csharp)
public class CfnTaskDefinitionPropsMixin.SecretProperty : CfnTaskDefinitionPropsMixin.ISecretProperty
Syntax (vb)
Public Class CfnTaskDefinitionPropsMixin.SecretProperty Implements CfnTaskDefinitionPropsMixin.ISecretProperty
Remarks

Secrets can be exposed to a container in the following ways:

    For more information, see Specifying sensitive data in the Amazon Elastic Container Service Developer Guide .

    See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-secret.html

    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.CfnPropertyMixins.AWS.ECS;
    
                 var secretProperty = new SecretProperty {
                     Name = "name",
                     ValueFrom = "valueFrom"
                 };

    Synopsis

    Constructors

    SecretProperty()

    An object representing the secret to expose to your container.

    Properties

    Name

    The name of the secret.

    ValueFrom

    The secret to expose to the container.

    Constructors

    SecretProperty()

    An object representing the secret to expose to your container.

    public SecretProperty()
    Remarks

    Secrets can be exposed to a container in the following ways:

      For more information, see Specifying sensitive data in the Amazon Elastic Container Service Developer Guide .

      See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-secret.html

      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.CfnPropertyMixins.AWS.ECS;
      
                   var secretProperty = new SecretProperty {
                       Name = "name",
                       ValueFrom = "valueFrom"
                   };

      Properties

      Name

      The name of the secret.

      public string? Name { get; set; }
      Property Value

      string

      Remarks

      See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-secret.html#cfn-ecs-taskdefinition-secret-name

      ValueFrom

      The secret to expose to the container.

      public string? ValueFrom { get; set; }
      Property Value

      string

      Remarks

      The supported values are either the full ARN of the AWS Secrets Manager secret or the full ARN of the parameter in the SSM Parameter Store.

      For information about the require AWS Identity and Access Management permissions, see Required IAM permissions for Amazon ECS secrets (for Secrets Manager) or Required IAM permissions for Amazon ECS secrets (for Systems Manager Parameter store) in the Amazon Elastic Container Service Developer Guide .

      If the SSM Parameter Store parameter exists in the same Region as the task you're launching, then you can use either the full ARN or name of the parameter. If the parameter exists in a different Region, then the full ARN must be specified.
      

      See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-secret.html#cfn-ecs-taskdefinition-secret-valuefrom

      Implements

      CfnTaskDefinitionPropsMixin.ISecretProperty
      Back to top Generated by DocFX