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

doppler.ServiceAccountToken

Explore with Pulumi AI

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

    Manage a Doppler service account token.

    Example Usage

    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    resources:
      builderCiToken:
        type: doppler:ServiceAccountToken
        name: builder_ci_token
        properties:
          serviceAccount: builder
          name: Builder CI Token
          expiresAt: 2024-05-30T11:00:00.000Z
    

    Create ServiceAccountToken Resource

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

    Constructor syntax

    new ServiceAccountToken(name: string, args: ServiceAccountTokenArgs, opts?: CustomResourceOptions);
    @overload
    def ServiceAccountToken(resource_name: str,
                            args: ServiceAccountTokenArgs,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def ServiceAccountToken(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            name: Optional[str] = None,
                            service_account_slug: Optional[str] = None,
                            expires_at: Optional[str] = None)
    func NewServiceAccountToken(ctx *Context, name string, args ServiceAccountTokenArgs, opts ...ResourceOption) (*ServiceAccountToken, error)
    public ServiceAccountToken(string name, ServiceAccountTokenArgs args, CustomResourceOptions? opts = null)
    public ServiceAccountToken(String name, ServiceAccountTokenArgs args)
    public ServiceAccountToken(String name, ServiceAccountTokenArgs args, CustomResourceOptions options)
    
    type: doppler:ServiceAccountToken
    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 ServiceAccountTokenArgs
    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 ServiceAccountTokenArgs
    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 ServiceAccountTokenArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ServiceAccountTokenArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ServiceAccountTokenArgs
    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 serviceAccountTokenResource = new Doppler.ServiceAccountToken("serviceAccountTokenResource", new()
    {
        Name = "string",
        ServiceAccountSlug = "string",
        ExpiresAt = "string",
    });
    
    example, err := doppler.NewServiceAccountToken(ctx, "serviceAccountTokenResource", &doppler.ServiceAccountTokenArgs{
    	Name:               pulumi.String("string"),
    	ServiceAccountSlug: pulumi.String("string"),
    	ExpiresAt:          pulumi.String("string"),
    })
    
    var serviceAccountTokenResource = new ServiceAccountToken("serviceAccountTokenResource", ServiceAccountTokenArgs.builder()
        .name("string")
        .serviceAccountSlug("string")
        .expiresAt("string")
        .build());
    
    service_account_token_resource = doppler.ServiceAccountToken("serviceAccountTokenResource",
        name="string",
        service_account_slug="string",
        expires_at="string")
    
    const serviceAccountTokenResource = new doppler.ServiceAccountToken("serviceAccountTokenResource", {
        name: "string",
        serviceAccountSlug: "string",
        expiresAt: "string",
    });
    
    type: doppler:ServiceAccountToken
    properties:
        expiresAt: string
        name: string
        serviceAccountSlug: string
    

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

    Name string
    The display name of the API token
    ServiceAccountSlug string
    Slug of the service account
    ExpiresAt string
    The datetime at which the API token should expire. If not provided, the API token will remain valid indefinitely unless manually revoked
    Name string
    The display name of the API token
    ServiceAccountSlug string
    Slug of the service account
    ExpiresAt string
    The datetime at which the API token should expire. If not provided, the API token will remain valid indefinitely unless manually revoked
    name String
    The display name of the API token
    serviceAccountSlug String
    Slug of the service account
    expiresAt String
    The datetime at which the API token should expire. If not provided, the API token will remain valid indefinitely unless manually revoked
    name string
    The display name of the API token
    serviceAccountSlug string
    Slug of the service account
    expiresAt string
    The datetime at which the API token should expire. If not provided, the API token will remain valid indefinitely unless manually revoked
    name str
    The display name of the API token
    service_account_slug str
    Slug of the service account
    expires_at str
    The datetime at which the API token should expire. If not provided, the API token will remain valid indefinitely unless manually revoked
    name String
    The display name of the API token
    serviceAccountSlug String
    Slug of the service account
    expiresAt String
    The datetime at which the API token should expire. If not provided, the API token will remain valid indefinitely unless manually revoked

    Outputs

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

    ApiKey string
    The api key used to authenticate the service account
    CreatedAt string
    The datetime that the token was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    Slug string
    Slug of the service account token
    ApiKey string
    The api key used to authenticate the service account
    CreatedAt string
    The datetime that the token was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    Slug string
    Slug of the service account token
    apiKey String
    The api key used to authenticate the service account
    createdAt String
    The datetime that the token was created.
    id String
    The provider-assigned unique ID for this managed resource.
    slug String
    Slug of the service account token
    apiKey string
    The api key used to authenticate the service account
    createdAt string
    The datetime that the token was created.
    id string
    The provider-assigned unique ID for this managed resource.
    slug string
    Slug of the service account token
    api_key str
    The api key used to authenticate the service account
    created_at str
    The datetime that the token was created.
    id str
    The provider-assigned unique ID for this managed resource.
    slug str
    Slug of the service account token
    apiKey String
    The api key used to authenticate the service account
    createdAt String
    The datetime that the token was created.
    id String
    The provider-assigned unique ID for this managed resource.
    slug String
    Slug of the service account token

    Look up Existing ServiceAccountToken Resource

    Get an existing ServiceAccountToken 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?: ServiceAccountTokenState, opts?: CustomResourceOptions): ServiceAccountToken
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            api_key: Optional[str] = None,
            created_at: Optional[str] = None,
            expires_at: Optional[str] = None,
            name: Optional[str] = None,
            service_account_slug: Optional[str] = None,
            slug: Optional[str] = None) -> ServiceAccountToken
    func GetServiceAccountToken(ctx *Context, name string, id IDInput, state *ServiceAccountTokenState, opts ...ResourceOption) (*ServiceAccountToken, error)
    public static ServiceAccountToken Get(string name, Input<string> id, ServiceAccountTokenState? state, CustomResourceOptions? opts = null)
    public static ServiceAccountToken get(String name, Output<String> id, ServiceAccountTokenState 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:
    ApiKey string
    The api key used to authenticate the service account
    CreatedAt string
    The datetime that the token was created.
    ExpiresAt string
    The datetime at which the API token should expire. If not provided, the API token will remain valid indefinitely unless manually revoked
    Name string
    The display name of the API token
    ServiceAccountSlug string
    Slug of the service account
    Slug string
    Slug of the service account token
    ApiKey string
    The api key used to authenticate the service account
    CreatedAt string
    The datetime that the token was created.
    ExpiresAt string
    The datetime at which the API token should expire. If not provided, the API token will remain valid indefinitely unless manually revoked
    Name string
    The display name of the API token
    ServiceAccountSlug string
    Slug of the service account
    Slug string
    Slug of the service account token
    apiKey String
    The api key used to authenticate the service account
    createdAt String
    The datetime that the token was created.
    expiresAt String
    The datetime at which the API token should expire. If not provided, the API token will remain valid indefinitely unless manually revoked
    name String
    The display name of the API token
    serviceAccountSlug String
    Slug of the service account
    slug String
    Slug of the service account token
    apiKey string
    The api key used to authenticate the service account
    createdAt string
    The datetime that the token was created.
    expiresAt string
    The datetime at which the API token should expire. If not provided, the API token will remain valid indefinitely unless manually revoked
    name string
    The display name of the API token
    serviceAccountSlug string
    Slug of the service account
    slug string
    Slug of the service account token
    api_key str
    The api key used to authenticate the service account
    created_at str
    The datetime that the token was created.
    expires_at str
    The datetime at which the API token should expire. If not provided, the API token will remain valid indefinitely unless manually revoked
    name str
    The display name of the API token
    service_account_slug str
    Slug of the service account
    slug str
    Slug of the service account token
    apiKey String
    The api key used to authenticate the service account
    createdAt String
    The datetime that the token was created.
    expiresAt String
    The datetime at which the API token should expire. If not provided, the API token will remain valid indefinitely unless manually revoked
    name String
    The display name of the API token
    serviceAccountSlug String
    Slug of the service account
    slug String
    Slug of the service account token

    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