Class: AWSCDK::EKS::GrantAccessOptions

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

Overview

Options for granting access to a cluster.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(access_entry_type: nil) ⇒ GrantAccessOptions

Returns a new instance of GrantAccessOptions.

Parameters:



8
9
10
11
# File 'eks/grant_access_options.rb', line 8

def initialize(access_entry_type: nil)
  @access_entry_type = access_entry_type
  Jsii::Type.check_type(@access_entry_type, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWtzLkFjY2Vzc0VudHJ5VHlwZSJ9")), "accessEntryType") unless @access_entry_type.nil?
end

Instance Attribute Details

#access_entry_typeAWSCDK::EKS::AccessEntryType? (readonly)

Note:

Default: AccessEntryType.STANDARD - Standard access entry type that supports access policies

The type of the access entry.

Specify AccessEntryType.EC2 for EKS Auto Mode node roles, AccessEntryType.HYBRID_LINUX for EKS Hybrid Nodes, or AccessEntryType.HYPERPOD_LINUX for SageMaker HyperPod.

Note that EC2, HYBRID_LINUX, and HYPERPOD_LINUX types cannot have access policies attached per AWS EKS API constraints.



24
25
26
# File 'eks/grant_access_options.rb', line 24

def access_entry_type
  @access_entry_type
end

Class Method Details

.jsii_propertiesObject



26
27
28
29
30
# File 'eks/grant_access_options.rb', line 26

def self.jsii_properties
  {
    :access_entry_type => "accessEntryType",
  }
end

Instance Method Details

#to_jsiiObject



32
33
34
35
36
37
38
# File 'eks/grant_access_options.rb', line 32

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