symbiosis.ClusterServiceAccount
Explore with Pulumi AI
Manages Kubernetes clusters service accounts.
Example Usage
using System.Collections.Generic;
using Pulumi;
using Symbiosis = Symbiosis.Pulumi.Symbiosis;
return await Deployment.RunAsync(() =>
{
var example = new Symbiosis.ClusterServiceAccount("example", new()
{
ClusterName = symbiosis_cluster.Example.Name,
});
});
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/symbiosis-cloud/pulumi-symbiosis/sdk/go/symbiosis"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := symbiosis.NewClusterServiceAccount(ctx, "example", &symbiosis.ClusterServiceAccountArgs{
ClusterName: pulumi.Any(symbiosis_cluster.Example.Name),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.symbiosis.ClusterServiceAccount;
import com.pulumi.symbiosis.ClusterServiceAccountArgs;
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 example = new ClusterServiceAccount("example", ClusterServiceAccountArgs.builder()
.clusterName(symbiosis_cluster.example().name())
.build());
}
}
import pulumi
import symbiosis_pulumi as symbiosis
example = symbiosis.ClusterServiceAccount("example", cluster_name=symbiosis_cluster["example"]["name"])
import * as pulumi from "@pulumi/pulumi";
import * as symbiosis from "@symbiosis-cloud/symbiosis-pulumi";
const example = new symbiosis.ClusterServiceAccount("example", {clusterName: symbiosis_cluster.example.name});
resources:
example:
type: symbiosis:ClusterServiceAccount
properties:
clusterName: ${symbiosis_cluster.example.name}
Create ClusterServiceAccount Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ClusterServiceAccount(name: string, args: ClusterServiceAccountArgs, opts?: CustomResourceOptions);
@overload
def ClusterServiceAccount(resource_name: str,
args: ClusterServiceAccountArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ClusterServiceAccount(resource_name: str,
opts: Optional[ResourceOptions] = None,
cluster_name: Optional[str] = None)
func NewClusterServiceAccount(ctx *Context, name string, args ClusterServiceAccountArgs, opts ...ResourceOption) (*ClusterServiceAccount, error)
public ClusterServiceAccount(string name, ClusterServiceAccountArgs args, CustomResourceOptions? opts = null)
public ClusterServiceAccount(String name, ClusterServiceAccountArgs args)
public ClusterServiceAccount(String name, ClusterServiceAccountArgs args, CustomResourceOptions options)
type: symbiosis:ClusterServiceAccount
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 ClusterServiceAccountArgs
- 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 ClusterServiceAccountArgs
- 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 ClusterServiceAccountArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ClusterServiceAccountArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ClusterServiceAccountArgs
- 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 clusterServiceAccountResource = new Symbiosis.ClusterServiceAccount("clusterServiceAccountResource", new()
{
ClusterName = "string",
});
example, err := symbiosis.NewClusterServiceAccount(ctx, "clusterServiceAccountResource", &symbiosis.ClusterServiceAccountArgs{
ClusterName: pulumi.String("string"),
})
var clusterServiceAccountResource = new ClusterServiceAccount("clusterServiceAccountResource", ClusterServiceAccountArgs.builder()
.clusterName("string")
.build());
cluster_service_account_resource = symbiosis.ClusterServiceAccount("clusterServiceAccountResource", cluster_name="string")
const clusterServiceAccountResource = new symbiosis.ClusterServiceAccount("clusterServiceAccountResource", {clusterName: "string"});
type: symbiosis:ClusterServiceAccount
properties:
clusterName: string
ClusterServiceAccount Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The ClusterServiceAccount resource accepts the following input properties:
- Cluster
Name string - Cluster name. Changing the name forces re-creation.
- Cluster
Name string - Cluster name. Changing the name forces re-creation.
- cluster
Name String - Cluster name. Changing the name forces re-creation.
- cluster
Name string - Cluster name. Changing the name forces re-creation.
- cluster_
name str - Cluster name. Changing the name forces re-creation.
- cluster
Name String - Cluster name. Changing the name forces re-creation.
Outputs
All input properties are implicitly available as output properties. Additionally, the ClusterServiceAccount resource produces the following output properties:
- Cluster
Ca stringCertificate - Cluster CA certificate
- Id string
- The provider-assigned unique ID for this managed resource.
- Token string
- Service account token
- Cluster
Ca stringCertificate - Cluster CA certificate
- Id string
- The provider-assigned unique ID for this managed resource.
- Token string
- Service account token
- cluster
Ca StringCertificate - Cluster CA certificate
- id String
- The provider-assigned unique ID for this managed resource.
- token String
- Service account token
- cluster
Ca stringCertificate - Cluster CA certificate
- id string
- The provider-assigned unique ID for this managed resource.
- token string
- Service account token
- cluster_
ca_ strcertificate - Cluster CA certificate
- id str
- The provider-assigned unique ID for this managed resource.
- token str
- Service account token
- cluster
Ca StringCertificate - Cluster CA certificate
- id String
- The provider-assigned unique ID for this managed resource.
- token String
- Service account token
Look up Existing ClusterServiceAccount Resource
Get an existing ClusterServiceAccount 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?: ClusterServiceAccountState, opts?: CustomResourceOptions): ClusterServiceAccount
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cluster_ca_certificate: Optional[str] = None,
cluster_name: Optional[str] = None,
token: Optional[str] = None) -> ClusterServiceAccount
func GetClusterServiceAccount(ctx *Context, name string, id IDInput, state *ClusterServiceAccountState, opts ...ResourceOption) (*ClusterServiceAccount, error)
public static ClusterServiceAccount Get(string name, Input<string> id, ClusterServiceAccountState? state, CustomResourceOptions? opts = null)
public static ClusterServiceAccount get(String name, Output<String> id, ClusterServiceAccountState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Cluster
Ca stringCertificate - Cluster CA certificate
- Cluster
Name string - Cluster name. Changing the name forces re-creation.
- Token string
- Service account token
- Cluster
Ca stringCertificate - Cluster CA certificate
- Cluster
Name string - Cluster name. Changing the name forces re-creation.
- Token string
- Service account token
- cluster
Ca StringCertificate - Cluster CA certificate
- cluster
Name String - Cluster name. Changing the name forces re-creation.
- token String
- Service account token
- cluster
Ca stringCertificate - Cluster CA certificate
- cluster
Name string - Cluster name. Changing the name forces re-creation.
- token string
- Service account token
- cluster_
ca_ strcertificate - Cluster CA certificate
- cluster_
name str - Cluster name. Changing the name forces re-creation.
- token str
- Service account token
- cluster
Ca StringCertificate - Cluster CA certificate
- cluster
Name String - Cluster name. Changing the name forces re-creation.
- token String
- Service account token
Package Details
- Repository
- symbiosis symbiosis-cloud/pulumi-symbiosis
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
symbiosis
Terraform Provider.