Class: AWSCDK::Batch::CfnJobDefinition::ImagePullSecretProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
batch/cfn_job_definition.rb

Overview

References a Kubernetes secret resource.

This name of the secret must start and end with an alphanumeric character, is required to be lowercase, can include periods (.) and hyphens (-), and can't contain more than 253 characters.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name: nil) ⇒ ImagePullSecretProperty

Returns a new instance of ImagePullSecretProperty.

Parameters:

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

    Provides a unique identifier for the ImagePullSecret .



2230
2231
2232
2233
# File 'batch/cfn_job_definition.rb', line 2230

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

Instance Attribute Details

#nameString? (readonly)

Provides a unique identifier for the ImagePullSecret .

This object is required when EksPodProperties$imagePullSecrets is used.



2241
2242
2243
# File 'batch/cfn_job_definition.rb', line 2241

def name
  @name
end

Class Method Details

.jsii_propertiesObject



2243
2244
2245
2246
2247
# File 'batch/cfn_job_definition.rb', line 2243

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

Instance Method Details

#to_jsiiObject



2249
2250
2251
2252
2253
2254
2255
# File 'batch/cfn_job_definition.rb', line 2249

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