doppler.ServiceAccountToken
Explore with Pulumi AI
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
- Service
Account stringSlug - Slug of the service account
- Expires
At 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
- Service
Account stringSlug - Slug of the service account
- Expires
At 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
- service
Account StringSlug - Slug of the service account
- expires
At 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
- service
Account stringSlug - Slug of the service account
- expires
At 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_ strslug - 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
- service
Account StringSlug - Slug of the service account
- expires
At 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:
- 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
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.
- Api
Key string - The api key used to authenticate the service account
- Created
At string - The datetime that the token was created.
- Expires
At 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
- Service
Account stringSlug - Slug of the service account
- Slug string
- Slug of the service account token
- Api
Key string - The api key used to authenticate the service account
- Created
At string - The datetime that the token was created.
- Expires
At 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
- Service
Account stringSlug - Slug of the service account
- Slug string
- Slug of the service account token
- api
Key String - The api key used to authenticate the service account
- created
At String - The datetime that the token was created.
- expires
At 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
- service
Account StringSlug - Slug of the service account
- slug String
- Slug of the service account token
- api
Key string - The api key used to authenticate the service account
- created
At string - The datetime that the token was created.
- expires
At 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
- service
Account stringSlug - 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_ strslug - Slug of the service account
- slug str
- Slug of the service account token
- api
Key String - The api key used to authenticate the service account
- created
At String - The datetime that the token was created.
- expires
At 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
- service
Account StringSlug - 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.