Class: AWSCDK::ECS::CfnClusterCapacityProviderAssociationsProps

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

Overview

Properties for defining a CfnClusterCapacityProviderAssociations.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cluster:, default_capacity_provider_strategy:, capacity_providers: nil) ⇒ CfnClusterCapacityProviderAssociationsProps

Returns a new instance of CfnClusterCapacityProviderAssociationsProps.

Parameters:



12
13
14
15
16
17
18
19
# File 'ecs/cfn_cluster_capacity_provider_associations_props.rb', line 12

def initialize(cluster:, default_capacity_provider_strategy:, capacity_providers: nil)
  @cluster = cluster
  Jsii::Type.check_type(@cluster, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoic3RyaW5nIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19lY3MuSUNsdXN0ZXJSZWYifV19fQ==")), "cluster")
  @default_capacity_provider_strategy = default_capacity_provider_strategy
  Jsii::Type.check_type(@default_capacity_provider_strategy, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWNzLkNmbkNsdXN0ZXJDYXBhY2l0eVByb3ZpZGVyQXNzb2NpYXRpb25zLkNhcGFjaXR5UHJvdmlkZXJTdHJhdGVneVByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "defaultCapacityProviderStrategy")
  @capacity_providers = capacity_providers
  Jsii::Type.check_type(@capacity_providers, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InVuaW9uIjp7InR5cGVzIjpbeyJwcmltaXRpdmUiOiJzdHJpbmcifSx7ImZxbiI6ImF3cy1jZGstbGliLmludGVyZmFjZXMuYXdzX2Vjcy5JQ2FwYWNpdHlQcm92aWRlclJlZiJ9XX19LCJraW5kIjoiYXJyYXkifX0=")), "capacityProviders") unless @capacity_providers.nil?
end

Instance Attribute Details

#capacity_providersArray<String, AWSCDK::Interfaces::AWSECS::ICapacityProviderRef>? (readonly)

The capacity providers to associate with the cluster.



35
36
37
# File 'ecs/cfn_cluster_capacity_provider_associations_props.rb', line 35

def capacity_providers
  @capacity_providers
end

#clusterString, AWSCDK::Interfaces::AWSECS::IClusterRef (readonly)

The cluster the capacity provider association is the target of.



25
26
27
# File 'ecs/cfn_cluster_capacity_provider_associations_props.rb', line 25

def cluster
  @cluster
end

#default_capacity_provider_strategyAWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::ECS::CfnClusterCapacityProviderAssociations::CapacityProviderStrategyProperty> (readonly)

The default capacity provider strategy to associate with the cluster.



30
31
32
# File 'ecs/cfn_cluster_capacity_provider_associations_props.rb', line 30

def default_capacity_provider_strategy
  @default_capacity_provider_strategy
end

Class Method Details

.jsii_propertiesObject



37
38
39
40
41
42
43
# File 'ecs/cfn_cluster_capacity_provider_associations_props.rb', line 37

def self.jsii_properties
  {
    :cluster => "cluster",
    :default_capacity_provider_strategy => "defaultCapacityProviderStrategy",
    :capacity_providers => "capacityProviders",
  }
end

Instance Method Details

#to_jsiiObject



45
46
47
48
49
50
51
52
53
# File 'ecs/cfn_cluster_capacity_provider_associations_props.rb', line 45

def to_jsii
  result = {}
  result.merge!({
    "cluster" => @cluster,
    "defaultCapacityProviderStrategy" => @default_capacity_provider_strategy,
    "capacityProviders" => @capacity_providers,
  })
  result.compact
end