Class: AWSCDK::ECS::CfnCluster::ClusterConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ECS::CfnCluster::ClusterConfigurationProperty
- Defined in:
- ecs/cfn_cluster.rb
Overview
The execute command and managed storage configuration for the cluster.
Instance Attribute Summary collapse
-
#execute_command_configuration ⇒ AWSCDK::IResolvable, ...
readonly
The details of the execute command configuration.
-
#managed_storage_configuration ⇒ AWSCDK::IResolvable, ...
readonly
The details of the managed storage configuration.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(execute_command_configuration: nil, managed_storage_configuration: nil) ⇒ ClusterConfigurationProperty
constructor
A new instance of ClusterConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(execute_command_configuration: nil, managed_storage_configuration: nil) ⇒ ClusterConfigurationProperty
Returns a new instance of ClusterConfigurationProperty.
713 714 715 716 717 718 |
# File 'ecs/cfn_cluster.rb', line 713 def initialize(execute_command_configuration: nil, managed_storage_configuration: nil) @execute_command_configuration = execute_command_configuration.is_a?(Hash) ? ::AWSCDK::ECS::CfnCluster::ExecuteCommandConfigurationProperty.new(**execute_command_configuration.transform_keys(&:to_sym)) : execute_command_configuration Jsii::Type.check_type(@execute_command_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19lY3MuQ2ZuQ2x1c3Rlci5FeGVjdXRlQ29tbWFuZENvbmZpZ3VyYXRpb25Qcm9wZXJ0eSJ9XX19")), "executeCommandConfiguration") unless @execute_command_configuration.nil? @managed_storage_configuration = managed_storage_configuration.is_a?(Hash) ? ::AWSCDK::ECS::CfnCluster::ManagedStorageConfigurationProperty.new(**managed_storage_configuration.transform_keys(&:to_sym)) : managed_storage_configuration Jsii::Type.check_type(@managed_storage_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19lY3MuQ2ZuQ2x1c3Rlci5NYW5hZ2VkU3RvcmFnZUNvbmZpZ3VyYXRpb25Qcm9wZXJ0eSJ9XX19")), "managedStorageConfiguration") unless @managed_storage_configuration.nil? end |
Instance Attribute Details
#execute_command_configuration ⇒ AWSCDK::IResolvable, ... (readonly)
The details of the execute command configuration.
724 725 726 |
# File 'ecs/cfn_cluster.rb', line 724 def execute_command_configuration @execute_command_configuration end |
#managed_storage_configuration ⇒ AWSCDK::IResolvable, ... (readonly)
The details of the managed storage configuration.
729 730 731 |
# File 'ecs/cfn_cluster.rb', line 729 def managed_storage_configuration @managed_storage_configuration end |
Class Method Details
.jsii_properties ⇒ Object
731 732 733 734 735 736 |
# File 'ecs/cfn_cluster.rb', line 731 def self.jsii_properties { :execute_command_configuration => "executeCommandConfiguration", :managed_storage_configuration => "managedStorageConfiguration", } end |
Instance Method Details
#to_jsii ⇒ Object
738 739 740 741 742 743 744 745 |
# File 'ecs/cfn_cluster.rb', line 738 def to_jsii result = {} result.merge!({ "executeCommandConfiguration" => @execute_command_configuration, "managedStorageConfiguration" => @managed_storage_configuration, }) result.compact end |