Class: AWSCDK::EKS::CfnCluster::ProviderProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
eks/cfn_cluster.rb

Overview

Identifies the AWS Key Management Service ( AWS ) key used to encrypt the secrets.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key_arn: nil) ⇒ ProviderProperty

Returns a new instance of ProviderProperty.

Parameters:

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

    Amazon Resource Name (ARN) or alias of the KMS key.



1485
1486
1487
1488
# File 'eks/cfn_cluster.rb', line 1485

def initialize(key_arn: nil)
  @key_arn = key_arn
  Jsii::Type.check_type(@key_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "keyArn") unless @key_arn.nil?
end

Instance Attribute Details

#key_arnString? (readonly)

Amazon Resource Name (ARN) or alias of the KMS key.

The KMS key must be symmetric and created in the same AWS Region as the cluster. If the KMS key was created in a different account, the IAM principal must have access to the KMS key. For more information, see Allowing users in other accounts to use a KMS key in the AWS Key Management Service Developer Guide .



1496
1497
1498
# File 'eks/cfn_cluster.rb', line 1496

def key_arn
  @key_arn
end

Class Method Details

.jsii_propertiesObject



1498
1499
1500
1501
1502
# File 'eks/cfn_cluster.rb', line 1498

def self.jsii_properties
  {
    :key_arn => "keyArn",
  }
end

Instance Method Details

#to_jsiiObject



1504
1505
1506
1507
1508
1509
1510
# File 'eks/cfn_cluster.rb', line 1504

def to_jsii
  result = {}
  result.merge!({
    "keyArn" => @key_arn,
  })
  result.compact
end