1. Packages
  2. Harness
  3. API Docs
  4. platform
  5. Delegatetoken
Harness v0.1.1 published on Friday, Jul 12, 2024 by Pulumi

harness.platform.Delegatetoken

Explore with Pulumi AI

harness logo
Harness v0.1.1 published on Friday, Jul 12, 2024 by Pulumi

    Create Delegatetoken Resource

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

    Constructor syntax

    new Delegatetoken(name: string, args: DelegatetokenArgs, opts?: CustomResourceOptions);
    @overload
    def Delegatetoken(resource_name: str,
                      args: DelegatetokenArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def Delegatetoken(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      account_id: Optional[str] = None,
                      created_at: Optional[int] = None,
                      created_by: Optional[Mapping[str, Any]] = None,
                      name: Optional[str] = None,
                      org_id: Optional[str] = None,
                      project_id: Optional[str] = None,
                      token_status: Optional[str] = None,
                      value: Optional[str] = None)
    func NewDelegatetoken(ctx *Context, name string, args DelegatetokenArgs, opts ...ResourceOption) (*Delegatetoken, error)
    public Delegatetoken(string name, DelegatetokenArgs args, CustomResourceOptions? opts = null)
    public Delegatetoken(String name, DelegatetokenArgs args)
    public Delegatetoken(String name, DelegatetokenArgs args, CustomResourceOptions options)
    
    type: harness:platform:Delegatetoken
    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 DelegatetokenArgs
    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 DelegatetokenArgs
    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 DelegatetokenArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DelegatetokenArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DelegatetokenArgs
    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 delegatetokenResource = new Harness.Platform.Delegatetoken("delegatetokenResource", new()
    {
        AccountId = "string",
        CreatedAt = 0,
        CreatedBy = 
        {
            { "string", "any" },
        },
        Name = "string",
        OrgId = "string",
        ProjectId = "string",
        TokenStatus = "string",
        Value = "string",
    });
    
    example, err := platform.NewDelegatetoken(ctx, "delegatetokenResource", &platform.DelegatetokenArgs{
    	AccountId: pulumi.String("string"),
    	CreatedAt: pulumi.Int(0),
    	CreatedBy: pulumi.Map{
    		"string": pulumi.Any("any"),
    	},
    	Name:        pulumi.String("string"),
    	OrgId:       pulumi.String("string"),
    	ProjectId:   pulumi.String("string"),
    	TokenStatus: pulumi.String("string"),
    	Value:       pulumi.String("string"),
    })
    
    var delegatetokenResource = new Delegatetoken("delegatetokenResource", DelegatetokenArgs.builder()
        .accountId("string")
        .createdAt(0)
        .createdBy(Map.of("string", "any"))
        .name("string")
        .orgId("string")
        .projectId("string")
        .tokenStatus("string")
        .value("string")
        .build());
    
    delegatetoken_resource = harness.platform.Delegatetoken("delegatetokenResource",
        account_id="string",
        created_at=0,
        created_by={
            "string": "any",
        },
        name="string",
        org_id="string",
        project_id="string",
        token_status="string",
        value="string")
    
    const delegatetokenResource = new harness.platform.Delegatetoken("delegatetokenResource", {
        accountId: "string",
        createdAt: 0,
        createdBy: {
            string: "any",
        },
        name: "string",
        orgId: "string",
        projectId: "string",
        tokenStatus: "string",
        value: "string",
    });
    
    type: harness:platform:Delegatetoken
    properties:
        accountId: string
        createdAt: 0
        createdBy:
            string: any
        name: string
        orgId: string
        projectId: string
        tokenStatus: string
        value: string
    

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

    AccountId string
    Account Identifier for the Entity
    CreatedAt int
    Time when the delegate token is created. This is an epoch timestamp.
    CreatedBy Dictionary<string, object>
    created by details
    Name string
    Name of the delegate token
    OrgId string
    Org Identifier for the Entity
    ProjectId string
    Project Identifier for the Entity
    TokenStatus string
    Status of Delegate Token (ACTIVE or REVOKED). If left empty both active and revoked tokens will be assumed
    Value string
    Value of the delegate token. Encoded in base64.
    AccountId string
    Account Identifier for the Entity
    CreatedAt int
    Time when the delegate token is created. This is an epoch timestamp.
    CreatedBy map[string]interface{}
    created by details
    Name string
    Name of the delegate token
    OrgId string
    Org Identifier for the Entity
    ProjectId string
    Project Identifier for the Entity
    TokenStatus string
    Status of Delegate Token (ACTIVE or REVOKED). If left empty both active and revoked tokens will be assumed
    Value string
    Value of the delegate token. Encoded in base64.
    accountId String
    Account Identifier for the Entity
    createdAt Integer
    Time when the delegate token is created. This is an epoch timestamp.
    createdBy Map<String,Object>
    created by details
    name String
    Name of the delegate token
    orgId String
    Org Identifier for the Entity
    projectId String
    Project Identifier for the Entity
    tokenStatus String
    Status of Delegate Token (ACTIVE or REVOKED). If left empty both active and revoked tokens will be assumed
    value String
    Value of the delegate token. Encoded in base64.
    accountId string
    Account Identifier for the Entity
    createdAt number
    Time when the delegate token is created. This is an epoch timestamp.
    createdBy {[key: string]: any}
    created by details
    name string
    Name of the delegate token
    orgId string
    Org Identifier for the Entity
    projectId string
    Project Identifier for the Entity
    tokenStatus string
    Status of Delegate Token (ACTIVE or REVOKED). If left empty both active and revoked tokens will be assumed
    value string
    Value of the delegate token. Encoded in base64.
    account_id str
    Account Identifier for the Entity
    created_at int
    Time when the delegate token is created. This is an epoch timestamp.
    created_by Mapping[str, Any]
    created by details
    name str
    Name of the delegate token
    org_id str
    Org Identifier for the Entity
    project_id str
    Project Identifier for the Entity
    token_status str
    Status of Delegate Token (ACTIVE or REVOKED). If left empty both active and revoked tokens will be assumed
    value str
    Value of the delegate token. Encoded in base64.
    accountId String
    Account Identifier for the Entity
    createdAt Number
    Time when the delegate token is created. This is an epoch timestamp.
    createdBy Map<Any>
    created by details
    name String
    Name of the delegate token
    orgId String
    Org Identifier for the Entity
    projectId String
    Project Identifier for the Entity
    tokenStatus String
    Status of Delegate Token (ACTIVE or REVOKED). If left empty both active and revoked tokens will be assumed
    value String
    Value of the delegate token. Encoded in base64.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing Delegatetoken Resource

    Get an existing Delegatetoken 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?: DelegatetokenState, opts?: CustomResourceOptions): Delegatetoken
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_id: Optional[str] = None,
            created_at: Optional[int] = None,
            created_by: Optional[Mapping[str, Any]] = None,
            name: Optional[str] = None,
            org_id: Optional[str] = None,
            project_id: Optional[str] = None,
            token_status: Optional[str] = None,
            value: Optional[str] = None) -> Delegatetoken
    func GetDelegatetoken(ctx *Context, name string, id IDInput, state *DelegatetokenState, opts ...ResourceOption) (*Delegatetoken, error)
    public static Delegatetoken Get(string name, Input<string> id, DelegatetokenState? state, CustomResourceOptions? opts = null)
    public static Delegatetoken get(String name, Output<String> id, DelegatetokenState 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:
    AccountId string
    Account Identifier for the Entity
    CreatedAt int
    Time when the delegate token is created. This is an epoch timestamp.
    CreatedBy Dictionary<string, object>
    created by details
    Name string
    Name of the delegate token
    OrgId string
    Org Identifier for the Entity
    ProjectId string
    Project Identifier for the Entity
    TokenStatus string
    Status of Delegate Token (ACTIVE or REVOKED). If left empty both active and revoked tokens will be assumed
    Value string
    Value of the delegate token. Encoded in base64.
    AccountId string
    Account Identifier for the Entity
    CreatedAt int
    Time when the delegate token is created. This is an epoch timestamp.
    CreatedBy map[string]interface{}
    created by details
    Name string
    Name of the delegate token
    OrgId string
    Org Identifier for the Entity
    ProjectId string
    Project Identifier for the Entity
    TokenStatus string
    Status of Delegate Token (ACTIVE or REVOKED). If left empty both active and revoked tokens will be assumed
    Value string
    Value of the delegate token. Encoded in base64.
    accountId String
    Account Identifier for the Entity
    createdAt Integer
    Time when the delegate token is created. This is an epoch timestamp.
    createdBy Map<String,Object>
    created by details
    name String
    Name of the delegate token
    orgId String
    Org Identifier for the Entity
    projectId String
    Project Identifier for the Entity
    tokenStatus String
    Status of Delegate Token (ACTIVE or REVOKED). If left empty both active and revoked tokens will be assumed
    value String
    Value of the delegate token. Encoded in base64.
    accountId string
    Account Identifier for the Entity
    createdAt number
    Time when the delegate token is created. This is an epoch timestamp.
    createdBy {[key: string]: any}
    created by details
    name string
    Name of the delegate token
    orgId string
    Org Identifier for the Entity
    projectId string
    Project Identifier for the Entity
    tokenStatus string
    Status of Delegate Token (ACTIVE or REVOKED). If left empty both active and revoked tokens will be assumed
    value string
    Value of the delegate token. Encoded in base64.
    account_id str
    Account Identifier for the Entity
    created_at int
    Time when the delegate token is created. This is an epoch timestamp.
    created_by Mapping[str, Any]
    created by details
    name str
    Name of the delegate token
    org_id str
    Org Identifier for the Entity
    project_id str
    Project Identifier for the Entity
    token_status str
    Status of Delegate Token (ACTIVE or REVOKED). If left empty both active and revoked tokens will be assumed
    value str
    Value of the delegate token. Encoded in base64.
    accountId String
    Account Identifier for the Entity
    createdAt Number
    Time when the delegate token is created. This is an epoch timestamp.
    createdBy Map<Any>
    created by details
    name String
    Name of the delegate token
    orgId String
    Org Identifier for the Entity
    projectId String
    Project Identifier for the Entity
    tokenStatus String
    Status of Delegate Token (ACTIVE or REVOKED). If left empty both active and revoked tokens will be assumed
    value String
    Value of the delegate token. Encoded in base64.

    Package Details

    Repository
    harness pulumi/pulumi-harness
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the harness Terraform Provider.
    harness logo
    Harness v0.1.1 published on Friday, Jul 12, 2024 by Pulumi