1. Packages
  2. Control Plane (cpln)
  3. API Docs
  4. ServiceAccount
Control Plane v0.0.27 published on Saturday, May 25, 2024 by pulumiverse

cpln.ServiceAccount

Explore with Pulumi AI

cpln logo
Control Plane v0.0.27 published on Saturday, May 25, 2024 by pulumiverse

    Create ServiceAccount Resource

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

    Constructor syntax

    new ServiceAccount(name: string, args?: ServiceAccountArgs, opts?: CustomResourceOptions);
    @overload
    def ServiceAccount(resource_name: str,
                       args: Optional[ServiceAccountArgs] = None,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def ServiceAccount(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       description: Optional[str] = None,
                       name: Optional[str] = None,
                       tags: Optional[Mapping[str, str]] = None)
    func NewServiceAccount(ctx *Context, name string, args *ServiceAccountArgs, opts ...ResourceOption) (*ServiceAccount, error)
    public ServiceAccount(string name, ServiceAccountArgs? args = null, CustomResourceOptions? opts = null)
    public ServiceAccount(String name, ServiceAccountArgs args)
    public ServiceAccount(String name, ServiceAccountArgs args, CustomResourceOptions options)
    
    type: cpln:ServiceAccount
    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 ServiceAccountArgs
    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 ServiceAccountArgs
    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 ServiceAccountArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ServiceAccountArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ServiceAccountArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

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

    var serviceAccountResource = new Cpln.ServiceAccount("serviceAccountResource", new()
    {
        Description = "string",
        Name = "string",
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := cpln.NewServiceAccount(ctx, "serviceAccountResource", &cpln.ServiceAccountArgs{
    	Description: pulumi.String("string"),
    	Name:        pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var serviceAccountResource = new ServiceAccount("serviceAccountResource", ServiceAccountArgs.builder()
        .description("string")
        .name("string")
        .tags(Map.of("string", "string"))
        .build());
    
    service_account_resource = cpln.ServiceAccount("serviceAccountResource",
        description="string",
        name="string",
        tags={
            "string": "string",
        })
    
    const serviceAccountResource = new cpln.ServiceAccount("serviceAccountResource", {
        description: "string",
        name: "string",
        tags: {
            string: "string",
        },
    });
    
    type: cpln:ServiceAccount
    properties:
        description: string
        name: string
        tags:
            string: string
    

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

    Description string
    Description of the Service Account.
    Name string
    Name of the Service Account.
    Tags Dictionary<string, string>
    Key-value map of resource tags.
    Description string
    Description of the Service Account.
    Name string
    Name of the Service Account.
    Tags map[string]string
    Key-value map of resource tags.
    description String
    Description of the Service Account.
    name String
    Name of the Service Account.
    tags Map<String,String>
    Key-value map of resource tags.
    description string
    Description of the Service Account.
    name string
    Name of the Service Account.
    tags {[key: string]: string}
    Key-value map of resource tags.
    description str
    Description of the Service Account.
    name str
    Name of the Service Account.
    tags Mapping[str, str]
    Key-value map of resource tags.
    description String
    Description of the Service Account.
    name String
    Name of the Service Account.
    tags Map<String>
    Key-value map of resource tags.

    Outputs

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

    CplnId string
    The ID, in GUID format, of the Service Account.
    Id string
    The provider-assigned unique ID for this managed resource.
    Origin string
    Origin of the Policy. Either builtin or default.
    SelfLink string
    Full link to this resource. Can be referenced by other resources.
    CplnId string
    The ID, in GUID format, of the Service Account.
    Id string
    The provider-assigned unique ID for this managed resource.
    Origin string
    Origin of the Policy. Either builtin or default.
    SelfLink string
    Full link to this resource. Can be referenced by other resources.
    cplnId String
    The ID, in GUID format, of the Service Account.
    id String
    The provider-assigned unique ID for this managed resource.
    origin String
    Origin of the Policy. Either builtin or default.
    selfLink String
    Full link to this resource. Can be referenced by other resources.
    cplnId string
    The ID, in GUID format, of the Service Account.
    id string
    The provider-assigned unique ID for this managed resource.
    origin string
    Origin of the Policy. Either builtin or default.
    selfLink string
    Full link to this resource. Can be referenced by other resources.
    cpln_id str
    The ID, in GUID format, of the Service Account.
    id str
    The provider-assigned unique ID for this managed resource.
    origin str
    Origin of the Policy. Either builtin or default.
    self_link str
    Full link to this resource. Can be referenced by other resources.
    cplnId String
    The ID, in GUID format, of the Service Account.
    id String
    The provider-assigned unique ID for this managed resource.
    origin String
    Origin of the Policy. Either builtin or default.
    selfLink String
    Full link to this resource. Can be referenced by other resources.

    Look up Existing ServiceAccount Resource

    Get an existing ServiceAccount 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?: ServiceAccountState, opts?: CustomResourceOptions): ServiceAccount
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cpln_id: Optional[str] = None,
            description: Optional[str] = None,
            name: Optional[str] = None,
            origin: Optional[str] = None,
            self_link: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None) -> ServiceAccount
    func GetServiceAccount(ctx *Context, name string, id IDInput, state *ServiceAccountState, opts ...ResourceOption) (*ServiceAccount, error)
    public static ServiceAccount Get(string name, Input<string> id, ServiceAccountState? state, CustomResourceOptions? opts = null)
    public static ServiceAccount get(String name, Output<String> id, ServiceAccountState 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.
    The following state arguments are supported:
    CplnId string
    The ID, in GUID format, of the Service Account.
    Description string
    Description of the Service Account.
    Name string
    Name of the Service Account.
    Origin string
    Origin of the Policy. Either builtin or default.
    SelfLink string
    Full link to this resource. Can be referenced by other resources.
    Tags Dictionary<string, string>
    Key-value map of resource tags.
    CplnId string
    The ID, in GUID format, of the Service Account.
    Description string
    Description of the Service Account.
    Name string
    Name of the Service Account.
    Origin string
    Origin of the Policy. Either builtin or default.
    SelfLink string
    Full link to this resource. Can be referenced by other resources.
    Tags map[string]string
    Key-value map of resource tags.
    cplnId String
    The ID, in GUID format, of the Service Account.
    description String
    Description of the Service Account.
    name String
    Name of the Service Account.
    origin String
    Origin of the Policy. Either builtin or default.
    selfLink String
    Full link to this resource. Can be referenced by other resources.
    tags Map<String,String>
    Key-value map of resource tags.
    cplnId string
    The ID, in GUID format, of the Service Account.
    description string
    Description of the Service Account.
    name string
    Name of the Service Account.
    origin string
    Origin of the Policy. Either builtin or default.
    selfLink string
    Full link to this resource. Can be referenced by other resources.
    tags {[key: string]: string}
    Key-value map of resource tags.
    cpln_id str
    The ID, in GUID format, of the Service Account.
    description str
    Description of the Service Account.
    name str
    Name of the Service Account.
    origin str
    Origin of the Policy. Either builtin or default.
    self_link str
    Full link to this resource. Can be referenced by other resources.
    tags Mapping[str, str]
    Key-value map of resource tags.
    cplnId String
    The ID, in GUID format, of the Service Account.
    description String
    Description of the Service Account.
    name String
    Name of the Service Account.
    origin String
    Origin of the Policy. Either builtin or default.
    selfLink String
    Full link to this resource. Can be referenced by other resources.
    tags Map<String>
    Key-value map of resource tags.

    Package Details

    Repository
    cpln pulumiverse/pulumi-cpln
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the cpln Terraform Provider.
    cpln logo
    Control Plane v0.0.27 published on Saturday, May 25, 2024 by pulumiverse