1. Packages
  2. Doppler
  3. API Docs
  4. ServiceAccount
Doppler v0.9.0 published on Tuesday, Aug 27, 2024 by Pulumiverse

doppler.ServiceAccount

Explore with Pulumi AI

doppler logo
Doppler v0.9.0 published on Tuesday, Aug 27, 2024 by Pulumiverse

    Manage a Doppler service account.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as doppler from "@pulumiverse/doppler";
    
    const ci = new doppler.ServiceAccount("ci", {name: "ci"});
    
    import pulumi
    import pulumiverse_doppler as doppler
    
    ci = doppler.ServiceAccount("ci", name="ci")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-doppler/sdk/go/doppler"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := doppler.NewServiceAccount(ctx, "ci", &doppler.ServiceAccountArgs{
    			Name: pulumi.String("ci"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Doppler = Pulumiverse.Doppler;
    
    return await Deployment.RunAsync(() => 
    {
        var ci = new Doppler.ServiceAccount("ci", new()
        {
            Name = "ci",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.doppler.ServiceAccount;
    import com.pulumi.doppler.ServiceAccountArgs;
    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 ci = new ServiceAccount("ci", ServiceAccountArgs.builder()
                .name("ci")
                .build());
    
        }
    }
    
    resources:
      ci:
        type: doppler:ServiceAccount
        properties:
          name: ci
    

    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: ServiceAccountArgs,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def ServiceAccount(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       name: Optional[str] = None,
                       workplace_permissions: Optional[Sequence[str]] = None,
                       workplace_role: Optional[str] = None)
    func NewServiceAccount(ctx *Context, name string, args ServiceAccountArgs, opts ...ResourceOption) (*ServiceAccount, error)
    public ServiceAccount(string name, ServiceAccountArgs args, CustomResourceOptions? opts = null)
    public ServiceAccount(String name, ServiceAccountArgs args)
    public ServiceAccount(String name, ServiceAccountArgs args, CustomResourceOptions options)
    
    type: doppler: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.

    Constructor example

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

    var serviceAccountResource = new Doppler.ServiceAccount("serviceAccountResource", new()
    {
        Name = "string",
        WorkplacePermissions = new[]
        {
            "string",
        },
        WorkplaceRole = "string",
    });
    
    example, err := doppler.NewServiceAccount(ctx, "serviceAccountResource", &doppler.ServiceAccountArgs{
    	Name: pulumi.String("string"),
    	WorkplacePermissions: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	WorkplaceRole: pulumi.String("string"),
    })
    
    var serviceAccountResource = new ServiceAccount("serviceAccountResource", ServiceAccountArgs.builder()
        .name("string")
        .workplacePermissions("string")
        .workplaceRole("string")
        .build());
    
    service_account_resource = doppler.ServiceAccount("serviceAccountResource",
        name="string",
        workplace_permissions=["string"],
        workplace_role="string")
    
    const serviceAccountResource = new doppler.ServiceAccount("serviceAccountResource", {
        name: "string",
        workplacePermissions: ["string"],
        workplaceRole: "string",
    });
    
    type: doppler:ServiceAccount
    properties:
        name: string
        workplacePermissions:
            - string
        workplaceRole: 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

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

    The ServiceAccount resource accepts the following input properties:

    Name string
    The name of the service account
    WorkplacePermissions List<string>
    A list of the workplace permissions for the service account (or use workplace_role)
    WorkplaceRole string
    The identifier of the workplace role for the service account (or use workplace_permissions)
    Name string
    The name of the service account
    WorkplacePermissions []string
    A list of the workplace permissions for the service account (or use workplace_role)
    WorkplaceRole string
    The identifier of the workplace role for the service account (or use workplace_permissions)
    name String
    The name of the service account
    workplacePermissions List<String>
    A list of the workplace permissions for the service account (or use workplace_role)
    workplaceRole String
    The identifier of the workplace role for the service account (or use workplace_permissions)
    name string
    The name of the service account
    workplacePermissions string[]
    A list of the workplace permissions for the service account (or use workplace_role)
    workplaceRole string
    The identifier of the workplace role for the service account (or use workplace_permissions)
    name str
    The name of the service account
    workplace_permissions Sequence[str]
    A list of the workplace permissions for the service account (or use workplace_role)
    workplace_role str
    The identifier of the workplace role for the service account (or use workplace_permissions)
    name String
    The name of the service account
    workplacePermissions List<String>
    A list of the workplace permissions for the service account (or use workplace_role)
    workplaceRole String
    The identifier of the workplace role for the service account (or use workplace_permissions)

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Slug string
    The slug of the service account
    Id string
    The provider-assigned unique ID for this managed resource.
    Slug string
    The slug of the service account
    id String
    The provider-assigned unique ID for this managed resource.
    slug String
    The slug of the service account
    id string
    The provider-assigned unique ID for this managed resource.
    slug string
    The slug of the service account
    id str
    The provider-assigned unique ID for this managed resource.
    slug str
    The slug of the service account
    id String
    The provider-assigned unique ID for this managed resource.
    slug String
    The slug of the service account

    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,
            name: Optional[str] = None,
            slug: Optional[str] = None,
            workplace_permissions: Optional[Sequence[str]] = None,
            workplace_role: Optional[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:
    Name string
    The name of the service account
    Slug string
    The slug of the service account
    WorkplacePermissions List<string>
    A list of the workplace permissions for the service account (or use workplace_role)
    WorkplaceRole string
    The identifier of the workplace role for the service account (or use workplace_permissions)
    Name string
    The name of the service account
    Slug string
    The slug of the service account
    WorkplacePermissions []string
    A list of the workplace permissions for the service account (or use workplace_role)
    WorkplaceRole string
    The identifier of the workplace role for the service account (or use workplace_permissions)
    name String
    The name of the service account
    slug String
    The slug of the service account
    workplacePermissions List<String>
    A list of the workplace permissions for the service account (or use workplace_role)
    workplaceRole String
    The identifier of the workplace role for the service account (or use workplace_permissions)
    name string
    The name of the service account
    slug string
    The slug of the service account
    workplacePermissions string[]
    A list of the workplace permissions for the service account (or use workplace_role)
    workplaceRole string
    The identifier of the workplace role for the service account (or use workplace_permissions)
    name str
    The name of the service account
    slug str
    The slug of the service account
    workplace_permissions Sequence[str]
    A list of the workplace permissions for the service account (or use workplace_role)
    workplace_role str
    The identifier of the workplace role for the service account (or use workplace_permissions)
    name String
    The name of the service account
    slug String
    The slug of the service account
    workplacePermissions List<String>
    A list of the workplace permissions for the service account (or use workplace_role)
    workplaceRole String
    The identifier of the workplace role for the service account (or use workplace_permissions)

    Import

    import using the service account slug from the URL:

    https://dashboard.doppler.com/workplace/[workplace-slug]/team/service_accounts/[service-account-slug]

    $ pulumi import doppler:index/serviceAccount:ServiceAccount default <service-account-slug>
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    doppler pulumiverse/pulumi-doppler
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the doppler Terraform Provider.
    doppler logo
    Doppler v0.9.0 published on Tuesday, Aug 27, 2024 by Pulumiverse