Class: AWSCDK::MediaLive::CfnClusterProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
media_live/cfn_cluster_props.rb

Overview

Properties for defining a CfnCluster.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cluster_type: nil, instance_role_arn: nil, name: nil, network_settings: nil, tags: nil) ⇒ CfnClusterProps

Returns a new instance of CfnClusterProps.

Parameters:

  • cluster_type (String, nil) (defaults to: nil)

    The hardware type for the cluster.

  • instance_role_arn (String, nil) (defaults to: nil)

    The IAM role your nodes will use.

  • name (String, nil) (defaults to: nil)

    The user-specified name of the Cluster to be created.

  • network_settings (AWSCDK::IResolvable, AWSCDK::MediaLive::CfnCluster::ClusterNetworkSettingsProperty, nil) (defaults to: nil)

    On premises settings which will have the interface network mappings and default Output logical interface.

  • tags (Array<AWSCDK::CfnTag>, nil) (defaults to: nil)

    A collection of key-value pairs.



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 = tags.is_a?(Array) ? tags.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil?
end

Instance Attribute Details

#cluster_typeString? (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_arnString? (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

#nameString? (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_settingsAWSCDK::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

#tagsArray<AWSCDK::CfnTag>? (readonly)

A collection of key-value pairs.



51
52
53
# File 'media_live/cfn_cluster_props.rb', line 51

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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