1. Packages
  2. CAST AI
  3. API Docs
  4. ClusterToken
CAST AI v0.1.45 published on Thursday, Apr 17, 2025 by CAST AI

castai.ClusterToken

Explore with Pulumi AI

castai logo
CAST AI v0.1.45 published on Thursday, Apr 17, 2025 by CAST AI

    Create ClusterToken Resource

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

    Constructor syntax

    new ClusterToken(name: string, args: ClusterTokenArgs, opts?: CustomResourceOptions);
    @overload
    def ClusterToken(resource_name: str,
                     args: ClusterTokenArgs,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def ClusterToken(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     cluster_id: Optional[str] = None)
    func NewClusterToken(ctx *Context, name string, args ClusterTokenArgs, opts ...ResourceOption) (*ClusterToken, error)
    public ClusterToken(string name, ClusterTokenArgs args, CustomResourceOptions? opts = null)
    public ClusterToken(String name, ClusterTokenArgs args)
    public ClusterToken(String name, ClusterTokenArgs args, CustomResourceOptions options)
    
    type: castai:ClusterToken
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ClusterTokenArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ClusterTokenArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ClusterTokenArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ClusterTokenArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ClusterTokenArgs
    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 clusterTokenResource = new CastAI.ClusterToken("clusterTokenResource", new()
    {
        ClusterId = "string",
    });
    
    example, err := castai.NewClusterToken(ctx, "clusterTokenResource", &castai.ClusterTokenArgs{
    	ClusterId: pulumi.String("string"),
    })
    
    var clusterTokenResource = new ClusterToken("clusterTokenResource", ClusterTokenArgs.builder()
        .clusterId("string")
        .build());
    
    cluster_token_resource = castai.ClusterToken("clusterTokenResource", cluster_id="string")
    
    const clusterTokenResource = new castai.ClusterToken("clusterTokenResource", {clusterId: "string"});
    
    type: castai:ClusterToken
    properties:
        clusterId: string
    

    ClusterToken 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 ClusterToken resource accepts the following input properties:

    ClusterId string
    CAST AI cluster id
    ClusterId string
    CAST AI cluster id
    clusterId String
    CAST AI cluster id
    clusterId string
    CAST AI cluster id
    cluster_id str
    CAST AI cluster id
    clusterId String
    CAST AI cluster id

    Outputs

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

    ClusterToken string
    computed value to store cluster token
    Id string
    The provider-assigned unique ID for this managed resource.
    ClusterToken string
    computed value to store cluster token
    Id string
    The provider-assigned unique ID for this managed resource.
    clusterToken String
    computed value to store cluster token
    id String
    The provider-assigned unique ID for this managed resource.
    clusterToken string
    computed value to store cluster token
    id string
    The provider-assigned unique ID for this managed resource.
    cluster_token str
    computed value to store cluster token
    id str
    The provider-assigned unique ID for this managed resource.
    clusterToken String
    computed value to store cluster token
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing ClusterToken Resource

    Get an existing ClusterToken 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?: ClusterTokenState, opts?: CustomResourceOptions): ClusterToken
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cluster_id: Optional[str] = None,
            cluster_token: Optional[str] = None) -> ClusterToken
    func GetClusterToken(ctx *Context, name string, id IDInput, state *ClusterTokenState, opts ...ResourceOption) (*ClusterToken, error)
    public static ClusterToken Get(string name, Input<string> id, ClusterTokenState? state, CustomResourceOptions? opts = null)
    public static ClusterToken get(String name, Output<String> id, ClusterTokenState state, CustomResourceOptions options)
    resources:  _:    type: castai:ClusterToken    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    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:
    ClusterId string
    CAST AI cluster id
    ClusterToken string
    computed value to store cluster token
    ClusterId string
    CAST AI cluster id
    ClusterToken string
    computed value to store cluster token
    clusterId String
    CAST AI cluster id
    clusterToken String
    computed value to store cluster token
    clusterId string
    CAST AI cluster id
    clusterToken string
    computed value to store cluster token
    cluster_id str
    CAST AI cluster id
    cluster_token str
    computed value to store cluster token
    clusterId String
    CAST AI cluster id
    clusterToken String
    computed value to store cluster token

    Package Details

    Repository
    castai castai/pulumi-castai
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the castai Terraform Provider.
    castai logo
    CAST AI v0.1.45 published on Thursday, Apr 17, 2025 by CAST AI