Class: AWSCDK::ARCRegionSwitch::CfnPlan::EKSClusterProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ARCRegionSwitch::CfnPlan::EKSClusterProperty
- Defined in:
- arc_region_switch/cfn_plan.rb
Overview
The AWS EKS cluster execution block configuration.
Instance Attribute Summary collapse
-
#cluster_arn ⇒ String
readonly
The Amazon Resource Name (ARN) of an AWS EKS cluster.
-
#cross_account_role ⇒ String?
readonly
The cross account role for the configuration.
-
#external_id ⇒ String?
readonly
The external ID (secret key) for the configuration.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(cluster_arn:, cross_account_role: nil, external_id: nil) ⇒ EKSClusterProperty
constructor
A new instance of EKSClusterProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(cluster_arn:, cross_account_role: nil, external_id: nil) ⇒ EKSClusterProperty
Returns a new instance of EKSClusterProperty.
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 = 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_arn ⇒ String (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_role ⇒ String? (readonly)
The cross account role for the configuration.
1495 1496 1497 |
# File 'arc_region_switch/cfn_plan.rb', line 1495 def cross_account_role @cross_account_role end |
#external_id ⇒ String? (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_properties ⇒ Object
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_jsii ⇒ Object
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 |