1. Packages
  2. Castai Provider
  3. API Docs
  4. EksClusterid
castai 7.44.1 published on Monday, Mar 31, 2025 by castai

castai.EksClusterid

Explore with Pulumi AI

Retrieve CAST AI clusterid

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as castai from "@pulumi/castai";

const clusterId = new castai.EksClusterid("clusterId", {
    accountId: data.aws_caller_identity.current.account_id,
    region: _var.cluster_region,
    clusterName: _var.cluster_name,
});
Copy
import pulumi
import pulumi_castai as castai

cluster_id = castai.EksClusterid("clusterId",
    account_id=data["aws_caller_identity"]["current"]["account_id"],
    region=var["cluster_region"],
    cluster_name=var["cluster_name"])
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/castai/v7/castai"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := castai.NewEksClusterid(ctx, "clusterId", &castai.EksClusteridArgs{
			AccountId:   pulumi.Any(data.Aws_caller_identity.Current.Account_id),
			Region:      pulumi.Any(_var.Cluster_region),
			ClusterName: pulumi.Any(_var.Cluster_name),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Castai = Pulumi.Castai;

return await Deployment.RunAsync(() => 
{
    var clusterId = new Castai.EksClusterid("clusterId", new()
    {
        AccountId = data.Aws_caller_identity.Current.Account_id,
        Region = @var.Cluster_region,
        ClusterName = @var.Cluster_name,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.castai.EksClusterid;
import com.pulumi.castai.EksClusteridArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var clusterId = new EksClusterid("clusterId", EksClusteridArgs.builder()
            .accountId(data.aws_caller_identity().current().account_id())
            .region(var_.cluster_region())
            .clusterName(var_.cluster_name())
            .build());

    }
}
Copy
resources:
  clusterId:
    type: castai:EksClusterid
    properties:
      accountId: ${data.aws_caller_identity.current.account_id}
      region: ${var.cluster_region}
      clusterName: ${var.cluster_name}
Copy

Create EksClusterid Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new EksClusterid(name: string, args: EksClusteridArgs, opts?: CustomResourceOptions);
@overload
def EksClusterid(resource_name: str,
                 args: EksClusteridArgs,
                 opts: Optional[ResourceOptions] = None)

@overload
def EksClusterid(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 account_id: Optional[str] = None,
                 cluster_name: Optional[str] = None,
                 region: Optional[str] = None,
                 eks_clusterid_id: Optional[str] = None)
func NewEksClusterid(ctx *Context, name string, args EksClusteridArgs, opts ...ResourceOption) (*EksClusterid, error)
public EksClusterid(string name, EksClusteridArgs args, CustomResourceOptions? opts = null)
public EksClusterid(String name, EksClusteridArgs args)
public EksClusterid(String name, EksClusteridArgs args, CustomResourceOptions options)
type: castai:EksClusterid
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. EksClusteridArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. EksClusteridArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. EksClusteridArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. EksClusteridArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. EksClusteridArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var eksClusteridResource = new Castai.EksClusterid("eksClusteridResource", new()
{
    AccountId = "string",
    ClusterName = "string",
    Region = "string",
    EksClusteridId = "string",
});
Copy
example, err := castai.NewEksClusterid(ctx, "eksClusteridResource", &castai.EksClusteridArgs{
AccountId: pulumi.String("string"),
ClusterName: pulumi.String("string"),
Region: pulumi.String("string"),
EksClusteridId: pulumi.String("string"),
})
Copy
var eksClusteridResource = new EksClusterid("eksClusteridResource", EksClusteridArgs.builder()
    .accountId("string")
    .clusterName("string")
    .region("string")
    .eksClusteridId("string")
    .build());
Copy
eks_clusterid_resource = castai.EksClusterid("eksClusteridResource",
    account_id="string",
    cluster_name="string",
    region="string",
    eks_clusterid_id="string")
Copy
const eksClusteridResource = new castai.EksClusterid("eksClusteridResource", {
    accountId: "string",
    clusterName: "string",
    region: "string",
    eksClusteridId: "string",
});
Copy
type: castai:EksClusterid
properties:
    accountId: string
    clusterName: string
    eksClusteridId: string
    region: string
Copy

EksClusterid Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The EksClusterid resource accepts the following input properties:

AccountId This property is required. string
ClusterName This property is required. string
Region This property is required. string
EksClusteridId string
The ID of this resource.
AccountId This property is required. string
ClusterName This property is required. string
Region This property is required. string
EksClusteridId string
The ID of this resource.
accountId This property is required. String
clusterName This property is required. String
region This property is required. String
eksClusteridId String
The ID of this resource.
accountId This property is required. string
clusterName This property is required. string
region This property is required. string
eksClusteridId string
The ID of this resource.
account_id This property is required. str
cluster_name This property is required. str
region This property is required. str
eks_clusterid_id str
The ID of this resource.
accountId This property is required. String
clusterName This property is required. String
region This property is required. String
eksClusteridId String
The ID of this resource.

Outputs

All input properties are implicitly available as output properties. Additionally, the EksClusterid resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing EksClusterid Resource

Get an existing EksClusterid resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: EksClusteridState, opts?: CustomResourceOptions): EksClusterid
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        account_id: Optional[str] = None,
        cluster_name: Optional[str] = None,
        eks_clusterid_id: Optional[str] = None,
        region: Optional[str] = None) -> EksClusterid
func GetEksClusterid(ctx *Context, name string, id IDInput, state *EksClusteridState, opts ...ResourceOption) (*EksClusterid, error)
public static EksClusterid Get(string name, Input<string> id, EksClusteridState? state, CustomResourceOptions? opts = null)
public static EksClusterid get(String name, Output<String> id, EksClusteridState state, CustomResourceOptions options)
resources:  _:    type: castai:EksClusterid    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
AccountId string
ClusterName string
EksClusteridId string
The ID of this resource.
Region string
AccountId string
ClusterName string
EksClusteridId string
The ID of this resource.
Region string
accountId String
clusterName String
eksClusteridId String
The ID of this resource.
region String
accountId string
clusterName string
eksClusteridId string
The ID of this resource.
region string
account_id str
cluster_name str
eks_clusterid_id str
The ID of this resource.
region str
accountId String
clusterName String
eksClusteridId String
The ID of this resource.
region String

Package Details

Repository
castai castai/terraform-provider-castai
License
Notes
This Pulumi package is based on the castai Terraform Provider.