Class: AWSCDK::EKSv2::AccessEntryProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EKSv2::AccessEntryProps
- Defined in:
- ek_sv2/access_entry_props.rb
Overview
Represents the properties required to create an Amazon EKS access entry.
Instance Attribute Summary collapse
-
#access_entry_name ⇒ String?
readonly
The name of the AccessEntry.
-
#access_entry_type ⇒ AWSCDK::EKSv2::AccessEntryType?
readonly
The type of the AccessEntry.
-
#access_policies ⇒ Array<AWSCDK::EKSv2::IAccessPolicy>
readonly
The access policies that define the permissions and scope for the access entry.
-
#cluster ⇒ AWSCDK::EKSv2::ICluster
readonly
The Amazon EKS cluster to which the access entry applies.
-
#principal ⇒ String
readonly
The Amazon Resource Name (ARN) of the principal (user or role) to associate the access entry with.
-
#removal_policy ⇒ AWSCDK::RemovalPolicy?
readonly
The removal policy applied to the access entry.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(access_policies:, cluster:, principal:, access_entry_name: nil, access_entry_type: nil, removal_policy: nil) ⇒ AccessEntryProps
constructor
A new instance of AccessEntryProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(access_policies:, cluster:, principal:, access_entry_name: nil, access_entry_type: nil, removal_policy: nil) ⇒ AccessEntryProps
Returns a new instance of AccessEntryProps.
13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'ek_sv2/access_entry_props.rb', line 13 def initialize(access_policies:, cluster:, principal:, access_entry_name: nil, access_entry_type: nil, removal_policy: nil) @access_policies = access_policies Jsii::Type.check_type(@access_policies, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLmF3c19la3NfdjIuSUFjY2Vzc1BvbGljeSJ9LCJraW5kIjoiYXJyYXkifX0=")), "accessPolicies") @cluster = cluster Jsii::Type.check_type(@cluster, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWtzX3YyLklDbHVzdGVyIn0=")), "cluster") @principal = principal Jsii::Type.check_type(@principal, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "principal") @access_entry_name = access_entry_name Jsii::Type.check_type(@access_entry_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "accessEntryName") unless @access_entry_name.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? @removal_policy = removal_policy Jsii::Type.check_type(@removal_policy, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5SZW1vdmFsUG9saWN5In0=")), "removalPolicy") unless @removal_policy.nil? end |
Instance Attribute Details
#access_entry_name ⇒ String? (readonly)
Default: - No access entry name is provided
The name of the AccessEntry.
44 45 46 |
# File 'ek_sv2/access_entry_props.rb', line 44 def access_entry_name @access_entry_name end |
#access_entry_type ⇒ AWSCDK::EKSv2::AccessEntryType? (readonly)
Default: STANDARD
The type of the AccessEntry.
49 50 51 |
# File 'ek_sv2/access_entry_props.rb', line 49 def access_entry_type @access_entry_type end |
#access_policies ⇒ Array<AWSCDK::EKSv2::IAccessPolicy> (readonly)
The access policies that define the permissions and scope for the access entry.
31 32 33 |
# File 'ek_sv2/access_entry_props.rb', line 31 def access_policies @access_policies end |
#cluster ⇒ AWSCDK::EKSv2::ICluster (readonly)
The Amazon EKS cluster to which the access entry applies.
35 36 37 |
# File 'ek_sv2/access_entry_props.rb', line 35 def cluster @cluster end |
#principal ⇒ String (readonly)
The Amazon Resource Name (ARN) of the principal (user or role) to associate the access entry with.
39 40 41 |
# File 'ek_sv2/access_entry_props.rb', line 39 def principal @principal end |
#removal_policy ⇒ AWSCDK::RemovalPolicy? (readonly)
Default: RemovalPolicy.DESTROY
The removal policy applied to the access entry.
The removal policy controls what happens to the resources if they stop being managed by CloudFormation. This can happen in one of three situations:
- The resource is removed from the template, so CloudFormation stops managing it
- A change to the resource is made that requires it to be replaced, so CloudFormation stops managing it
- The stack is deleted, so CloudFormation stops managing all resources in it
61 62 63 |
# File 'ek_sv2/access_entry_props.rb', line 61 def removal_policy @removal_policy end |
Class Method Details
.jsii_properties ⇒ Object
63 64 65 66 67 68 69 70 71 72 |
# File 'ek_sv2/access_entry_props.rb', line 63 def self.jsii_properties { :access_policies => "accessPolicies", :cluster => "cluster", :principal => "principal", :access_entry_name => "accessEntryName", :access_entry_type => "accessEntryType", :removal_policy => "removalPolicy", } end |
Instance Method Details
#to_jsii ⇒ Object
74 75 76 77 78 79 80 81 82 83 84 85 |
# File 'ek_sv2/access_entry_props.rb', line 74 def to_jsii result = {} result.merge!({ "accessPolicies" => @access_policies, "cluster" => @cluster, "principal" => @principal, "accessEntryName" => @access_entry_name, "accessEntryType" => @access_entry_type, "removalPolicy" => @removal_policy, }) result.compact end |