1. Packages
  2. Pulumi Cloud (Pulumi Service provider)
  3. API Docs
  4. AccessToken
Pulumi Cloud v0.27.1 published on Thursday, Nov 14, 2024 by Pulumi

pulumiservice.AccessToken

Explore with Pulumi AI

pulumiservice logo
Pulumi Cloud v0.27.1 published on Thursday, Nov 14, 2024 by Pulumi

    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

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

    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:

    Id string
    The provider-assigned unique ID for this managed resource.
    Value string
    The token's value.
    Id string
    The provider-assigned unique ID for this managed resource.
    Value string
    The token's value.
    id String
    The provider-assigned unique ID for this managed resource.
    value String
    The token's value.
    id string
    The provider-assigned unique ID for this managed resource.
    value string
    The token's value.
    id str
    The provider-assigned unique ID for this managed resource.
    value str
    The token's value.
    id String
    The provider-assigned unique ID for this managed resource.
    value String
    The token's value.

    Package Details

    Repository
    pulumiservice pulumi/pulumi-pulumiservice
    License
    Apache-2.0
    pulumiservice logo
    Pulumi Cloud v0.27.1 published on Thursday, Nov 14, 2024 by Pulumi