Class: AWSCDK::EKS::KubectlProviderAttributes

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
eks/kubectl_provider_attributes.rb

Overview

Kubectl Provider Attributes.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(function_arn:, handler_role:, kubectl_role_arn:) ⇒ KubectlProviderAttributes

Returns a new instance of KubectlProviderAttributes.

Parameters:

  • function_arn (String)

    The custom resource provider's service token.

  • handler_role (AWSCDK::IAM::IRole)

    The IAM execution role of the handler.

  • kubectl_role_arn (String)

    The IAM role to assume in order to perform kubectl operations against this cluster.



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_arnString (readonly)

The custom resource provider's service token.

Returns:

  • (String)


22
23
24
# File 'eks/kubectl_provider_attributes.rb', line 22

def function_arn
  @function_arn
end

#handler_roleAWSCDK::IAM::IRole (readonly)

The IAM execution role of the handler.

This role must be able to assume kubectlRoleArn

Returns:



28
29
30
# File 'eks/kubectl_provider_attributes.rb', line 28

def handler_role
  @handler_role
end

#kubectl_role_arnString (readonly)

The IAM role to assume in order to perform kubectl operations against this cluster.

Returns:

  • (String)


32
33
34
# File 'eks/kubectl_provider_attributes.rb', line 32

def kubectl_role_arn
  @kubectl_role_arn
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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