Class: AWSCDK::ARCRegionSwitch::CfnPlan::EKSClusterProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
arc_region_switch/cfn_plan.rb

Overview

The AWS EKS cluster execution block configuration.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cluster_arn:, cross_account_role: nil, external_id: nil) ⇒ EKSClusterProperty

Returns a new instance of EKSClusterProperty.

Parameters:

  • cluster_arn (String)

    The Amazon Resource Name (ARN) of an AWS EKS cluster.

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

    The cross account role for the configuration.

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

    The external ID (secret key) for the configuration.



1477
1478
1479
1480
1481
1482
1483
1484
# File 'arc_region_switch/cfn_plan.rb', line 1477

def initialize(cluster_arn:, cross_account_role: nil, external_id: nil)
  @cluster_arn = cluster_arn
  Jsii::Type.check_type(@cluster_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "clusterArn")
  @cross_account_role = 
  Jsii::Type.check_type(@cross_account_role, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "crossAccountRole") unless @cross_account_role.nil?
  @external_id = external_id
  Jsii::Type.check_type(@external_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "externalId") unless @external_id.nil?
end

Instance Attribute Details

#cluster_arnString (readonly)

The Amazon Resource Name (ARN) of an AWS EKS cluster.



1490
1491
1492
# File 'arc_region_switch/cfn_plan.rb', line 1490

def cluster_arn
  @cluster_arn
end

#cross_account_roleString? (readonly)

The cross account role for the configuration.



1495
1496
1497
# File 'arc_region_switch/cfn_plan.rb', line 1495

def 
  @cross_account_role
end

#external_idString? (readonly)

The external ID (secret key) for the configuration.



1500
1501
1502
# File 'arc_region_switch/cfn_plan.rb', line 1500

def external_id
  @external_id
end

Class Method Details

.jsii_propertiesObject



1502
1503
1504
1505
1506
1507
1508
# File 'arc_region_switch/cfn_plan.rb', line 1502

def self.jsii_properties
  {
    :cluster_arn => "clusterArn",
    :cross_account_role => "crossAccountRole",
    :external_id => "externalId",
  }
end

Instance Method Details

#to_jsiiObject



1510
1511
1512
1513
1514
1515
1516
1517
1518
# File 'arc_region_switch/cfn_plan.rb', line 1510

def to_jsii
  result = {}
  result.merge!({
    "clusterArn" => @cluster_arn,
    "crossAccountRole" => @cross_account_role,
    "externalId" => @external_id,
  })
  result.compact
end