Pulumi Cloud v0.22.0 published on Wednesday, Jun 26, 2024 by Pulumi
pulumiservice.AccessToken
Explore with Pulumi AI
Access tokens allow a user to authenticate against the Pulumi Cloud
Create AccessToken Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AccessToken(name: string, args: AccessTokenArgs, opts?: CustomResourceOptions);
@overload
def AccessToken(resource_name: str,
args: AccessTokenArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AccessToken(resource_name: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None)
func NewAccessToken(ctx *Context, name string, args AccessTokenArgs, opts ...ResourceOption) (*AccessToken, error)
public AccessToken(string name, AccessTokenArgs args, CustomResourceOptions? opts = null)
public AccessToken(String name, AccessTokenArgs args)
public AccessToken(String name, AccessTokenArgs args, CustomResourceOptions options)
type: pulumiservice:AccessToken
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 AccessTokenArgs
- 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 AccessTokenArgs
- 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 AccessTokenArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AccessTokenArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AccessTokenArgs
- 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 accessTokenResource = new PulumiService.AccessToken("accessTokenResource", new()
{
Description = "string",
});
example, err := pulumiservice.NewAccessToken(ctx, "accessTokenResource", &pulumiservice.AccessTokenArgs{
Description: pulumi.String("string"),
})
var accessTokenResource = new AccessToken("accessTokenResource", AccessTokenArgs.builder()
.description("string")
.build());
access_token_resource = pulumiservice.AccessToken("accessTokenResource", description="string")
const accessTokenResource = new pulumiservice.AccessToken("accessTokenResource", {description: "string"});
type: pulumiservice:AccessToken
properties:
description: string
AccessToken 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 AccessToken resource accepts the following input properties:
- Description string
- Description of the access token.
- Description string
- Description of the access token.
- description String
- Description of the access token.
- description string
- Description of the access token.
- description str
- Description of the access token.
- description String
- Description of the access token.
Outputs
All input properties are implicitly available as output properties. Additionally, the AccessToken resource produces the following output properties:
Package Details
- Repository
- pulumiservice pulumi/pulumi-pulumiservice
- License
- Apache-2.0