Class: AWSCDK::EKS::AWSAuthMapping
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EKS::AWSAuthMapping
- Defined in:
- eks/aws_auth_mapping.rb
Overview
AwsAuth mapping.
Instance Attribute Summary collapse
-
#groups ⇒ Array<String>
readonly
A list of groups within Kubernetes to which the role is mapped.
-
#username ⇒ String?
readonly
The user name within Kubernetes to map to the IAM role.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(groups:, username: nil) ⇒ AWSAuthMapping
constructor
A new instance of AWSAuthMapping.
- #to_jsii ⇒ Object
Constructor Details
#initialize(groups:, username: nil) ⇒ AWSAuthMapping
Returns a new instance of AWSAuthMapping.
9 10 11 12 13 14 |
# File 'eks/aws_auth_mapping.rb', line 9 def initialize(groups:, username: nil) @groups = groups Jsii::Type.check_type(@groups, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "groups") @username = username Jsii::Type.check_type(@username, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "username") unless @username.nil? end |
Instance Attribute Details
#groups ⇒ Array<String> (readonly)
A list of groups within Kubernetes to which the role is mapped.
20 21 22 |
# File 'eks/aws_auth_mapping.rb', line 20 def groups @groups end |
#username ⇒ String? (readonly)
Note:
Default: - By default, the user name is the ARN of the IAM role.
The user name within Kubernetes to map to the IAM role.
25 26 27 |
# File 'eks/aws_auth_mapping.rb', line 25 def username @username end |
Class Method Details
.jsii_properties ⇒ Object
27 28 29 30 31 32 |
# File 'eks/aws_auth_mapping.rb', line 27 def self.jsii_properties { :groups => "groups", :username => "username", } end |
Instance Method Details
#to_jsii ⇒ Object
34 35 36 37 38 39 40 41 |
# File 'eks/aws_auth_mapping.rb', line 34 def to_jsii result = {} result.merge!({ "groups" => @groups, "username" => @username, }) result.compact end |