Class: AWSCDK::ECS::RepositoryImageProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ECS::RepositoryImageProps
- Defined in:
- ecs/repository_image_props.rb
Overview
The properties for an image hosted in a public or private repository.
Instance Attribute Summary collapse
-
#credentials ⇒ AWSCDK::SecretsManager::ISecret?
readonly
The secret to expose to the container that contains the credentials for the image repository.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(credentials: nil) ⇒ RepositoryImageProps
constructor
A new instance of RepositoryImageProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(credentials: nil) ⇒ RepositoryImageProps
Returns a new instance of RepositoryImageProps.
8 9 10 11 |
# File 'ecs/repository_image_props.rb', line 8 def initialize(credentials: nil) @credentials = credentials Jsii::Type.check_type(@credentials, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc2VjcmV0c21hbmFnZXIuSVNlY3JldCJ9")), "credentials") unless @credentials.nil? end |
Instance Attribute Details
#credentials ⇒ AWSCDK::SecretsManager::ISecret? (readonly)
The secret to expose to the container that contains the credentials for the image repository.
The supported value is the full ARN of an AWS Secrets Manager secret.
18 19 20 |
# File 'ecs/repository_image_props.rb', line 18 def credentials @credentials end |
Class Method Details
.jsii_properties ⇒ Object
20 21 22 23 24 |
# File 'ecs/repository_image_props.rb', line 20 def self.jsii_properties { :credentials => "credentials", } end |
Instance Method Details
#to_jsii ⇒ Object
26 27 28 29 30 31 32 |
# File 'ecs/repository_image_props.rb', line 26 def to_jsii result = {} result.merge!({ "credentials" => @credentials, }) result.compact end |