Class: AWSCDK::EKS::KubectlProviderAttributes
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EKS::KubectlProviderAttributes
- Defined in:
- eks/kubectl_provider_attributes.rb
Overview
Kubectl Provider Attributes.
Instance Attribute Summary collapse
-
#function_arn ⇒ String
readonly
The custom resource provider's service token.
-
#handler_role ⇒ AWSCDK::IAM::IRole
readonly
The IAM execution role of the handler.
-
#kubectl_role_arn ⇒ String
readonly
The IAM role to assume in order to perform kubectl operations against this cluster.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(function_arn:, handler_role:, kubectl_role_arn:) ⇒ KubectlProviderAttributes
constructor
A new instance of KubectlProviderAttributes.
- #to_jsii ⇒ Object
Constructor Details
#initialize(function_arn:, handler_role:, kubectl_role_arn:) ⇒ KubectlProviderAttributes
Returns a new instance of KubectlProviderAttributes.
10 11 12 13 14 15 16 17 |
# File 'eks/kubectl_provider_attributes.rb', line 10 def initialize(function_arn:, handler_role:, kubectl_role_arn:) @function_arn = function_arn Jsii::Type.check_type(@function_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "functionArn") @handler_role = handler_role Jsii::Type.check_type(@handler_role, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfaWFtLklSb2xlIn0=")), "handlerRole") @kubectl_role_arn = kubectl_role_arn Jsii::Type.check_type(@kubectl_role_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "kubectlRoleArn") end |
Instance Attribute Details
#function_arn ⇒ String (readonly)
The custom resource provider's service token.
22 23 24 |
# File 'eks/kubectl_provider_attributes.rb', line 22 def function_arn @function_arn end |
#handler_role ⇒ AWSCDK::IAM::IRole (readonly)
The IAM execution role of the handler.
This role must be able to assume kubectlRoleArn
28 29 30 |
# File 'eks/kubectl_provider_attributes.rb', line 28 def handler_role @handler_role end |
#kubectl_role_arn ⇒ String (readonly)
The IAM role to assume in order to perform kubectl operations against this cluster.
32 33 34 |
# File 'eks/kubectl_provider_attributes.rb', line 32 def kubectl_role_arn @kubectl_role_arn end |
Class Method Details
.jsii_properties ⇒ Object
34 35 36 37 38 39 40 |
# File 'eks/kubectl_provider_attributes.rb', line 34 def self.jsii_properties { :function_arn => "functionArn", :handler_role => "handlerRole", :kubectl_role_arn => "kubectlRoleArn", } end |
Instance Method Details
#to_jsii ⇒ Object
42 43 44 45 46 47 48 49 50 |
# File 'eks/kubectl_provider_attributes.rb', line 42 def to_jsii result = {} result.merge!({ "functionArn" => @function_arn, "handlerRole" => @handler_role, "kubectlRoleArn" => @kubectl_role_arn, }) result.compact end |