Class: AWSCDK::EKSv2::GrantAccessOptions
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EKSv2::GrantAccessOptions
- Defined in:
- ek_sv2/grant_access_options.rb
Overview
Options for granting access to a cluster.
Instance Attribute Summary collapse
-
#access_entry_type ⇒ AWSCDK::EKSv2::AccessEntryType?
readonly
The type of the access entry.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(access_entry_type: nil) ⇒ GrantAccessOptions
constructor
A new instance of GrantAccessOptions.
- #to_jsii ⇒ Object
Constructor Details
#initialize(access_entry_type: nil) ⇒ GrantAccessOptions
Returns a new instance of GrantAccessOptions.
8 9 10 11 |
# File 'ek_sv2/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("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWtzX3YyLkFjY2Vzc0VudHJ5VHlwZSJ9")), "accessEntryType") unless @access_entry_type.nil? end |
Instance Attribute Details
#access_entry_type ⇒ AWSCDK::EKSv2::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 'ek_sv2/grant_access_options.rb', line 24 def access_entry_type @access_entry_type end |
Class Method Details
.jsii_properties ⇒ Object
26 27 28 29 30 |
# File 'ek_sv2/grant_access_options.rb', line 26 def self.jsii_properties { :access_entry_type => "accessEntryType", } end |
Instance Method Details
#to_jsii ⇒ Object
32 33 34 35 36 37 38 |
# File 'ek_sv2/grant_access_options.rb', line 32 def to_jsii result = {} result.merge!({ "accessEntryType" => @access_entry_type, }) result.compact end |