Class: AWSCDK::ECS::CfnExpressGatewayService::SecretProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ECS::CfnExpressGatewayService::SecretProperty
- Defined in:
- ecs/cfn_express_gateway_service.rb
Overview
An object representing the secret to expose to your container.
Secrets can be exposed to a container in the following ways:
- To inject sensitive data into your containers as environment variables, use the
secretscontainer definition parameter. - To reference sensitive information in the log configuration of a container, use the
secret_optionscontainer definition parameter.
For more information, see Specifying sensitive data in the Amazon Elastic Container Service Developer Guide .
Instance Attribute Summary collapse
-
#name ⇒ String
readonly
The name of the secret.
-
#value_from ⇒ String
readonly
The secret to expose to the container.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, value_from:) ⇒ SecretProperty
constructor
A new instance of SecretProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, value_from:) ⇒ SecretProperty
Returns a new instance of SecretProperty.
1562 1563 1564 1565 1566 1567 |
# File 'ecs/cfn_express_gateway_service.rb', line 1562 def initialize(name:, value_from:) @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @value_from = value_from Jsii::Type.check_type(@value_from, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "valueFrom") end |
Instance Attribute Details
#name ⇒ String (readonly)
The name of the secret.
1573 1574 1575 |
# File 'ecs/cfn_express_gateway_service.rb', line 1573 def name @name end |
#value_from ⇒ String (readonly)
The secret to expose to the container.
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.
1584 1585 1586 |
# File 'ecs/cfn_express_gateway_service.rb', line 1584 def value_from @value_from end |
Class Method Details
.jsii_properties ⇒ Object
1586 1587 1588 1589 1590 1591 |
# File 'ecs/cfn_express_gateway_service.rb', line 1586 def self.jsii_properties { :name => "name", :value_from => "valueFrom", } end |
Instance Method Details
#to_jsii ⇒ Object
1593 1594 1595 1596 1597 1598 1599 1600 |
# File 'ecs/cfn_express_gateway_service.rb', line 1593 def to_jsii result = {} result.merge!({ "name" => @name, "valueFrom" => @value_from, }) result.compact end |