Class: AWSCDK::StepFunctionsTasks::EKSClusterInput
- Inherits:
-
Jsii::Object
- Object
- Jsii::Object
- AWSCDK::StepFunctionsTasks::EKSClusterInput
- Defined in:
- step_functions_tasks/eks_cluster_input.rb
Overview
Class that supports methods which return the EKS cluster name depending on input type.
Class Method Summary collapse
-
.from_cluster(cluster) ⇒ AWSCDK::StepFunctionsTasks::EKSClusterInput
Specify an existing EKS Cluster as the name for this Cluster.
-
.from_task_input(task_input) ⇒ AWSCDK::StepFunctionsTasks::EKSClusterInput
Specify a Task Input as the name for this Cluster.
- .jsii_overridable_methods ⇒ Object
Instance Method Summary collapse
-
#cluster_name ⇒ String
The name of the EKS Cluster.
-
#initialize(*args) ⇒ EKSClusterInput
constructor
A new instance of EKSClusterInput.
Constructor Details
#initialize(*args) ⇒ EKSClusterInput
Returns a new instance of EKSClusterInput.
8 9 10 |
# File 'step_functions_tasks/eks_cluster_input.rb', line 8 def initialize(*args) raise NoMethodError, "aws-cdk-lib.aws_stepfunctions_tasks.EksClusterInput does not have a visible constructor; use the provided factory methods" end |
Class Method Details
.from_cluster(cluster) ⇒ AWSCDK::StepFunctionsTasks::EKSClusterInput
Specify an existing EKS Cluster as the name for this Cluster.
22 23 24 25 |
# File 'step_functions_tasks/eks_cluster_input.rb', line 22 def self.from_cluster(cluster) Jsii::Type.check_type(cluster, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWtzLklDbHVzdGVyIn0=")), "cluster") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_stepfunctions_tasks.EksClusterInput", "fromCluster", [cluster]) end |
.from_task_input(task_input) ⇒ AWSCDK::StepFunctionsTasks::EKSClusterInput
Specify a Task Input as the name for this Cluster.
31 32 33 34 |
# File 'step_functions_tasks/eks_cluster_input.rb', line 31 def self.from_task_input(task_input) Jsii::Type.check_type(task_input, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc3RlcGZ1bmN0aW9ucy5UYXNrSW5wdXQifQ==")), "taskInput") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_stepfunctions_tasks.EksClusterInput", "fromTaskInput", [task_input]) end |
.jsii_overridable_methods ⇒ Object
12 13 14 15 16 |
# File 'step_functions_tasks/eks_cluster_input.rb', line 12 def self.jsii_overridable_methods { :cluster_name => { kind: :property, name: "clusterName", is_optional: false }, } end |
Instance Method Details
#cluster_name ⇒ String
The name of the EKS Cluster.
39 40 41 |
# File 'step_functions_tasks/eks_cluster_input.rb', line 39 def cluster_name() jsii_get_property("clusterName") end |