Class: AWSCDK::ECS::CfnClusterCapacityProviderAssociationsProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ECS::CfnClusterCapacityProviderAssociationsProps
- Defined in:
- ecs/cfn_cluster_capacity_provider_associations_props.rb
Overview
Properties for defining a CfnClusterCapacityProviderAssociations.
Instance Attribute Summary collapse
-
#capacity_providers ⇒ Array<String, AWSCDK::Interfaces::AWSECS::ICapacityProviderRef>?
readonly
The capacity providers to associate with the cluster.
-
#cluster ⇒ String, AWSCDK::Interfaces::AWSECS::IClusterRef
readonly
The cluster the capacity provider association is the target of.
-
#default_capacity_provider_strategy ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::ECS::CfnClusterCapacityProviderAssociations::CapacityProviderStrategyProperty>
readonly
The default capacity provider strategy to associate with the cluster.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(cluster:, default_capacity_provider_strategy:, capacity_providers: nil) ⇒ CfnClusterCapacityProviderAssociationsProps
constructor
A new instance of CfnClusterCapacityProviderAssociationsProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(cluster:, default_capacity_provider_strategy:, capacity_providers: nil) ⇒ CfnClusterCapacityProviderAssociationsProps
Returns a new instance of CfnClusterCapacityProviderAssociationsProps.
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_providers ⇒ Array<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 |
#cluster ⇒ String, 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_strategy ⇒ AWSCDK::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_properties ⇒ Object
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_jsii ⇒ Object
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 |