Class: AWSCDK::ECS::RepositoryImageProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
ecs/repository_image_props.rb

Overview

The properties for an image hosted in a public or private repository.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(credentials: nil) ⇒ RepositoryImageProps

Returns a new instance of RepositoryImageProps.

Parameters:

  • credentials (AWSCDK::SecretsManager::ISecret, nil) (defaults to: nil)

    The secret to expose to the container that contains the credentials for the image repository.



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

#credentialsAWSCDK::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_propertiesObject



20
21
22
23
24
# File 'ecs/repository_image_props.rb', line 20

def self.jsii_properties
  {
    :credentials => "credentials",
  }
end

Instance Method Details

#to_jsiiObject



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