Class: AWSCDK::ECS::CfnDaemonTaskDefinition::RepositoryCredentialsProperty

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

Overview

The repository credentials for private registry authentication.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(credentials_parameter: nil) ⇒ RepositoryCredentialsProperty

Returns a new instance of RepositoryCredentialsProperty.

Parameters:

  • credentials_parameter (String, nil) (defaults to: nil)

    The Amazon Resource Name (ARN) of the secret containing the private repository credentials.



1763
1764
1765
1766
# File 'ecs/cfn_daemon_task_definition.rb', line 1763

def initialize(credentials_parameter: nil)
  @credentials_parameter = credentials_parameter
  Jsii::Type.check_type(@credentials_parameter, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "credentialsParameter") unless @credentials_parameter.nil?
end

Instance Attribute Details

#credentials_parameterString? (readonly)

The Amazon Resource Name (ARN) of the secret containing the private repository credentials.

When you use the Amazon ECS API, CLI, or AWS SDK, if the secret exists in the same Region as the task that you're launching then you can use either the full ARN or the name of the secret. When you use the AWS Management Console, you must specify the full ARN of the secret.



1774
1775
1776
# File 'ecs/cfn_daemon_task_definition.rb', line 1774

def credentials_parameter
  @credentials_parameter
end

Class Method Details

.jsii_propertiesObject



1776
1777
1778
1779
1780
# File 'ecs/cfn_daemon_task_definition.rb', line 1776

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

Instance Method Details

#to_jsiiObject



1782
1783
1784
1785
1786
1787
1788
# File 'ecs/cfn_daemon_task_definition.rb', line 1782

def to_jsii
  result = {}
  result.merge!({
    "credentialsParameter" => @credentials_parameter,
  })
  result.compact
end