Class: AWSCDK::ECS::CfnTaskDefinition::RepositoryCredentialsProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
ecs/cfn_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.



2882
2883
2884
2885
# File 'ecs/cfn_task_definition.rb', line 2882

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, AWS 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.



2893
2894
2895
# File 'ecs/cfn_task_definition.rb', line 2893

def credentials_parameter
  @credentials_parameter
end

Class Method Details

.jsii_propertiesObject



2895
2896
2897
2898
2899
# File 'ecs/cfn_task_definition.rb', line 2895

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

Instance Method Details

#to_jsiiObject



2901
2902
2903
2904
2905
2906
2907
# File 'ecs/cfn_task_definition.rb', line 2901

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