Class: AWSCDK::MediaLive::CfnClusterProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::MediaLive::CfnClusterProps
- Defined in:
- media_live/cfn_cluster_props.rb
Overview
Properties for defining a CfnCluster.
Instance Attribute Summary collapse
-
#cluster_type ⇒ String?
readonly
The hardware type for the cluster.
-
#instance_role_arn ⇒ String?
readonly
The IAM role your nodes will use.
-
#name ⇒ String?
readonly
The user-specified name of the Cluster to be created.
-
#network_settings ⇒ AWSCDK::IResolvable, ...
readonly
On premises settings which will have the interface network mappings and default Output logical interface.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
A collection of key-value pairs.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(cluster_type: nil, instance_role_arn: nil, name: nil, network_settings: nil, tags: nil) ⇒ CfnClusterProps
constructor
A new instance of CfnClusterProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(cluster_type: nil, instance_role_arn: nil, name: nil, network_settings: nil, tags: nil) ⇒ CfnClusterProps
Returns a new instance of CfnClusterProps.
14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'media_live/cfn_cluster_props.rb', line 14 def initialize(cluster_type: nil, instance_role_arn: nil, name: nil, network_settings: nil, tags: nil) @cluster_type = cluster_type Jsii::Type.check_type(@cluster_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "clusterType") unless @cluster_type.nil? @instance_role_arn = instance_role_arn Jsii::Type.check_type(@instance_role_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "instanceRoleArn") unless @instance_role_arn.nil? @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.nil? @network_settings = network_settings.is_a?(Hash) ? ::AWSCDK::MediaLive::CfnCluster::ClusterNetworkSettingsProperty.new(**network_settings.transform_keys(&:to_sym)) : network_settings Jsii::Type.check_type(@network_settings, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19tZWRpYWxpdmUuQ2ZuQ2x1c3Rlci5DbHVzdGVyTmV0d29ya1NldHRpbmdzUHJvcGVydHkifV19fQ==")), "networkSettings") unless @network_settings.nil? @tags = .is_a?(Array) ? .map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil? end |
Instance Attribute Details
#cluster_type ⇒ String? (readonly)
The hardware type for the cluster.
31 32 33 |
# File 'media_live/cfn_cluster_props.rb', line 31 def cluster_type @cluster_type end |
#instance_role_arn ⇒ String? (readonly)
The IAM role your nodes will use.
36 37 38 |
# File 'media_live/cfn_cluster_props.rb', line 36 def instance_role_arn @instance_role_arn end |
#name ⇒ String? (readonly)
The user-specified name of the Cluster to be created.
41 42 43 |
# File 'media_live/cfn_cluster_props.rb', line 41 def name @name end |
#network_settings ⇒ AWSCDK::IResolvable, ... (readonly)
On premises settings which will have the interface network mappings and default Output logical interface.
46 47 48 |
# File 'media_live/cfn_cluster_props.rb', line 46 def network_settings @network_settings end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
A collection of key-value pairs.
51 52 53 |
# File 'media_live/cfn_cluster_props.rb', line 51 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
53 54 55 56 57 58 59 60 61 |
# File 'media_live/cfn_cluster_props.rb', line 53 def self.jsii_properties { :cluster_type => "clusterType", :instance_role_arn => "instanceRoleArn", :name => "name", :network_settings => "networkSettings", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
63 64 65 66 67 68 69 70 71 72 73 |
# File 'media_live/cfn_cluster_props.rb', line 63 def to_jsii result = {} result.merge!({ "clusterType" => @cluster_type, "instanceRoleArn" => @instance_role_arn, "name" => @name, "networkSettings" => @network_settings, "tags" => @tags, }) result.compact end |