Class: AWSCDK::EMRContainers::CfnVirtualCluster::ContainerProviderProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
emr_containers/cfn_virtual_cluster.rb

Overview

The information about the container provider.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id:, info:, type:) ⇒ ContainerProviderProperty

Returns a new instance of ContainerProviderProperty.

Parameters:



628
629
630
631
632
633
634
635
# File 'emr_containers/cfn_virtual_cluster.rb', line 628

def initialize(id:, info:, type:)
  @id = id
  Jsii::Type.check_type(@id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "id")
  @info = info.is_a?(Hash) ? ::AWSCDK::EMRContainers::CfnVirtualCluster::ContainerInfoProperty.new(**info.transform_keys(&:to_sym)) : info
  Jsii::Type.check_type(@info, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19lbXJjb250YWluZXJzLkNmblZpcnR1YWxDbHVzdGVyLkNvbnRhaW5lckluZm9Qcm9wZXJ0eSJ9XX19")), "info")
  @type = type
  Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type")
end

Instance Attribute Details

#idString (readonly)

The ID of the container cluster.

Minimum : 1

Maximum : 100

Pattern : ^[0-9A-Za-z][A-Za-z0-9\-_]*



647
648
649
# File 'emr_containers/cfn_virtual_cluster.rb', line 647

def id
  @id
end

#typeString (readonly)

The type of the container provider.

Amazon EKS is the only supported type as of now.



659
660
661
# File 'emr_containers/cfn_virtual_cluster.rb', line 659

def type
  @type
end

Class Method Details

.jsii_propertiesObject



661
662
663
664
665
666
667
# File 'emr_containers/cfn_virtual_cluster.rb', line 661

def self.jsii_properties
  {
    :id => "id",
    :info => "info",
    :type => "type",
  }
end

Instance Method Details

#to_jsiiObject



669
670
671
672
673
674
675
676
677
# File 'emr_containers/cfn_virtual_cluster.rb', line 669

def to_jsii
  result = {}
  result.merge!({
    "id" => @id,
    "info" => @info,
    "type" => @type,
  })
  result.compact
end