Class: AWSCDK::EKS::CfnAddon::PodIdentityAssociationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EKS::CfnAddon::PodIdentityAssociationProperty
- Defined in:
- eks/cfn_addon.rb
Overview
Amazon EKS Pod Identity associations provide the ability to manage credentials for your applications, similar to the way that Amazon EC2 instance profiles provide credentials to Amazon EC2 instances.
Instance Attribute Summary collapse
-
#role_arn ⇒ String
readonly
The Amazon Resource Name (ARN) of the IAM role to associate with the service account.
-
#service_account ⇒ String
readonly
The name of the Kubernetes service account inside the cluster to associate the IAM credentials with.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(role_arn:, service_account:) ⇒ PodIdentityAssociationProperty
constructor
A new instance of PodIdentityAssociationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(role_arn:, service_account:) ⇒ PodIdentityAssociationProperty
Returns a new instance of PodIdentityAssociationProperty.
671 672 673 674 675 676 |
# File 'eks/cfn_addon.rb', line 671 def initialize(role_arn:, service_account:) @role_arn = role_arn Jsii::Type.check_type(@role_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "roleArn") @service_account = service_account Jsii::Type.check_type(@service_account, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "serviceAccount") end |
Instance Attribute Details
#role_arn ⇒ String (readonly)
The Amazon Resource Name (ARN) of the IAM role to associate with the service account.
The EKS Pod Identity agent manages credentials to assume this role for applications in the containers in the Pods that use this service account.
684 685 686 |
# File 'eks/cfn_addon.rb', line 684 def role_arn @role_arn end |
#service_account ⇒ String (readonly)
The name of the Kubernetes service account inside the cluster to associate the IAM credentials with.
689 690 691 |
# File 'eks/cfn_addon.rb', line 689 def service_account @service_account end |
Class Method Details
.jsii_properties ⇒ Object
691 692 693 694 695 696 |
# File 'eks/cfn_addon.rb', line 691 def self.jsii_properties { :role_arn => "roleArn", :service_account => "serviceAccount", } end |
Instance Method Details
#to_jsii ⇒ Object
698 699 700 701 702 703 704 705 |
# File 'eks/cfn_addon.rb', line 698 def to_jsii result = {} result.merge!({ "roleArn" => @role_arn, "serviceAccount" => @service_account, }) result.compact end |