Class: AWSCDK::EKS::KubernetesObjectValue
- Inherits:
-
Constructs::Construct
- Object
- Constructs::Construct
- AWSCDK::EKS::KubernetesObjectValue
- Defined in:
- eks/kubernetes_object_value.rb
Overview
Represents a value of a specific object deployed in the cluster.
Use this to fetch any information available by the kubectl get command.
Class Method Summary collapse
- .jsii_overridable_methods ⇒ Object
-
.RESOURCE_TYPE ⇒ String
The CloudFormation resource type.
Instance Method Summary collapse
-
#initialize(scope, id, props) ⇒ KubernetesObjectValue
constructor
A new instance of KubernetesObjectValue.
-
#node ⇒ Constructs::Node
The tree node.
-
#to_string ⇒ String
Returns a string representation of this construct.
-
#value ⇒ String
The value as a string token.
-
#with(*mixins) ⇒ Constructs::IConstruct
Applies one or more mixins to this construct.
Constructor Details
#initialize(scope, id, props) ⇒ KubernetesObjectValue
Returns a new instance of KubernetesObjectValue.
13 14 15 16 17 18 19 |
# File 'eks/kubernetes_object_value.rb', line 13 def initialize(scope, id, props) props = props.is_a?(Hash) ? ::AWSCDK::EKS::KubernetesObjectValueProps.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(scope, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLkNvbnN0cnVjdCJ9")), "scope") Jsii::Type.check_type(id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "id") Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWtzLkt1YmVybmV0ZXNPYmplY3RWYWx1ZVByb3BzIn0=")), "props") Jsii::Object.instance_method(:initialize).bind(self).call(scope, id, props) end |
Class Method Details
.jsii_overridable_methods ⇒ Object
21 22 23 24 25 26 27 28 |
# File 'eks/kubernetes_object_value.rb', line 21 def self.jsii_overridable_methods { :node => { kind: :property, name: "node", is_optional: false }, :value => { kind: :property, name: "value", is_optional: false }, :to_string => { kind: :method, name: "toString", is_optional: false }, :with => { kind: :method, name: "with", is_optional: false }, } end |
.RESOURCE_TYPE ⇒ String
The CloudFormation resource type.
40 41 42 |
# File 'eks/kubernetes_object_value.rb', line 40 def self.RESOURCE_TYPE() Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_eks.KubernetesObjectValue", "RESOURCE_TYPE") end |
Instance Method Details
#node ⇒ Constructs::Node
The tree node.
33 34 35 |
# File 'eks/kubernetes_object_value.rb', line 33 def node() jsii_get_property("node") end |
#to_string ⇒ String
Returns a string representation of this construct.
54 55 56 |
# File 'eks/kubernetes_object_value.rb', line 54 def to_string() jsii_call_method("toString", []) end |
#value ⇒ String
The value as a string token.
47 48 49 |
# File 'eks/kubernetes_object_value.rb', line 47 def value() jsii_get_property("value") 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.
Use multiple with() calls if subsequent mixins should apply to added
constructs.
67 68 69 70 71 72 |
# File 'eks/kubernetes_object_value.rb', line 67 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 |