Class: AWSCDK::Interfaces::AWSECS::CapacityProviderReference

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
interfaces/awsecs/capacity_provider_reference.rb

Overview

A reference to a CapacityProvider resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(capacity_provider_name:) ⇒ CapacityProviderReference

Returns a new instance of CapacityProviderReference.

Parameters:

  • capacity_provider_name (String)

    The Name of the CapacityProvider resource.



8
9
10
11
# File 'interfaces/awsecs/capacity_provider_reference.rb', line 8

def initialize(capacity_provider_name:)
  @capacity_provider_name = capacity_provider_name
  Jsii::Type.check_type(@capacity_provider_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "capacityProviderName")
end

Instance Attribute Details

#capacity_provider_nameString (readonly)

The Name of the CapacityProvider resource.

Returns:

  • (String)


16
17
18
# File 'interfaces/awsecs/capacity_provider_reference.rb', line 16

def capacity_provider_name
  @capacity_provider_name
end

Class Method Details

.jsii_propertiesObject



18
19
20
21
22
# File 'interfaces/awsecs/capacity_provider_reference.rb', line 18

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

Instance Method Details

#to_jsiiObject



24
25
26
27
28
29
30
# File 'interfaces/awsecs/capacity_provider_reference.rb', line 24

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