Class: AWSCDK::Interfaces::AWSEKS::AccessEntryReference

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
interfaces/awseks/access_entry_reference.rb

Overview

A reference to a AccessEntry resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(access_entry_arn:, cluster_name:, principal_arn:) ⇒ AccessEntryReference

Returns a new instance of AccessEntryReference.

Parameters:

  • access_entry_arn (String)

    The ARN of the AccessEntry resource.

  • cluster_name (String)

    The ClusterName of the AccessEntry resource.

  • principal_arn (String)

    The PrincipalArn of the AccessEntry resource.



10
11
12
13
14
15
16
17
# File 'interfaces/awseks/access_entry_reference.rb', line 10

def initialize(access_entry_arn:, cluster_name:, principal_arn:)
  @access_entry_arn = access_entry_arn
  Jsii::Type.check_type(@access_entry_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "accessEntryArn")
  @cluster_name = cluster_name
  Jsii::Type.check_type(@cluster_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "clusterName")
  @principal_arn = principal_arn
  Jsii::Type.check_type(@principal_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "principalArn")
end

Instance Attribute Details

#access_entry_arnString (readonly)

The ARN of the AccessEntry resource.

Returns:

  • (String)


22
23
24
# File 'interfaces/awseks/access_entry_reference.rb', line 22

def access_entry_arn
  @access_entry_arn
end

#cluster_nameString (readonly)

The ClusterName of the AccessEntry resource.

Returns:

  • (String)


26
27
28
# File 'interfaces/awseks/access_entry_reference.rb', line 26

def cluster_name
  @cluster_name
end

#principal_arnString (readonly)

The PrincipalArn of the AccessEntry resource.

Returns:

  • (String)


30
31
32
# File 'interfaces/awseks/access_entry_reference.rb', line 30

def principal_arn
  @principal_arn
end

Class Method Details

.jsii_propertiesObject



32
33
34
35
36
37
38
# File 'interfaces/awseks/access_entry_reference.rb', line 32

def self.jsii_properties
  {
    :access_entry_arn => "accessEntryArn",
    :cluster_name => "clusterName",
    :principal_arn => "principalArn",
  }
end

Instance Method Details

#to_jsiiObject



40
41
42
43
44
45
46
47
48
# File 'interfaces/awseks/access_entry_reference.rb', line 40

def to_jsii
  result = {}
  result.merge!({
    "accessEntryArn" => @access_entry_arn,
    "clusterName" => @cluster_name,
    "principalArn" => @principal_arn,
  })
  result.compact
end