Module: AWSCDK::EKS::IKubectlProvider

Includes:
Constructs::IConstruct
Included in:
KubectlProvider
Defined in:
eks/i_kubectl_provider.rb

Overview

Imported KubectlProvider that can be used in place of the default one created by CDK.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.jsii_overridable_methodsObject



50
51
52
53
54
55
56
57
58
# File 'eks/i_kubectl_provider.rb', line 50

def self.jsii_overridable_methods
  {
    :node => { kind: :property, name: "node", is_optional: false },
    :handler_role => { kind: :property, name: "handlerRole", is_optional: false },
    :role_arn => { kind: :property, name: "roleArn", is_optional: false },
    :service_token => { kind: :property, name: "serviceToken", is_optional: false },
    :with => { kind: :method, name: "with", is_optional: false },
  }
end

Instance Method Details

#handler_roleAWSCDK::IAM::IRole

The IAM execution role of the handler.

Returns:



18
19
20
# File 'eks/i_kubectl_provider.rb', line 18

def handler_role()
  jsii_get_property("handlerRole")
end

#nodeConstructs::Node

The tree node.

Returns:

  • (Constructs::Node)


11
12
13
# File 'eks/i_kubectl_provider.rb', line 11

def node()
  jsii_get_property("node")
end

#role_arnString

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

Returns:

  • (String)


25
26
27
# File 'eks/i_kubectl_provider.rb', line 25

def role_arn()
  jsii_get_property("roleArn")
end

#service_tokenString

The custom resource provider's service token.

Returns:

  • (String)


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

def service_token()
  jsii_get_property("serviceToken")
end

#with(*mixins) ⇒ Constructs::IConstruct

Applies one or more mixins to this construct.

Mixins are applied in order. The list of constructs is captured at the start of the call, so constructs added by a mixin will not be visited.

Parameters:

  • mixins (Array<Constructs::IMixin>)

    The mixins to apply.

Returns:

  • (Constructs::IConstruct)

    This construct for chaining



43
44
45
46
47
48
# File 'eks/i_kubectl_provider.rb', line 43

def with(*mixins)
  mixins.each_with_index do |item, index|
    Jsii::Type.check_type(item, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLklNaXhpbiJ9")), "mixins[#{index}]")
  end
  jsii_call_method("with", [*mixins])
end