1. Packages
  2. Twingate
  3. API Docs
  4. TwingateConnectorTokens
Twingate v0.0.48 published on Friday, Oct 13, 2023 by Twingate

twingate.TwingateConnectorTokens

Explore with Pulumi AI

twingate logo
Twingate v0.0.48 published on Friday, Oct 13, 2023 by Twingate

    Create TwingateConnectorTokens Resource

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

    Constructor syntax

    new TwingateConnectorTokens(name: string, args: TwingateConnectorTokensArgs, opts?: CustomResourceOptions);
    @overload
    def TwingateConnectorTokens(resource_name: str,
                                args: TwingateConnectorTokensArgs,
                                opts: Optional[ResourceOptions] = None)
    
    @overload
    def TwingateConnectorTokens(resource_name: str,
                                opts: Optional[ResourceOptions] = None,
                                connector_id: Optional[str] = None,
                                keepers: Optional[Mapping[str, Any]] = None)
    func NewTwingateConnectorTokens(ctx *Context, name string, args TwingateConnectorTokensArgs, opts ...ResourceOption) (*TwingateConnectorTokens, error)
    public TwingateConnectorTokens(string name, TwingateConnectorTokensArgs args, CustomResourceOptions? opts = null)
    public TwingateConnectorTokens(String name, TwingateConnectorTokensArgs args)
    public TwingateConnectorTokens(String name, TwingateConnectorTokensArgs args, CustomResourceOptions options)
    
    type: twingate:TwingateConnectorTokens
    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 TwingateConnectorTokensArgs
    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 TwingateConnectorTokensArgs
    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 TwingateConnectorTokensArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TwingateConnectorTokensArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TwingateConnectorTokensArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var twingateConnectorTokensResource = new Twingate.TwingateConnectorTokens("twingateConnectorTokensResource", new()
    {
        ConnectorId = "string",
        Keepers = 
        {
            { "string", "any" },
        },
    });
    
    example, err := twingate.NewTwingateConnectorTokens(ctx, "twingateConnectorTokensResource", &twingate.TwingateConnectorTokensArgs{
    	ConnectorId: pulumi.String("string"),
    	Keepers: pulumi.Map{
    		"string": pulumi.Any("any"),
    	},
    })
    
    var twingateConnectorTokensResource = new TwingateConnectorTokens("twingateConnectorTokensResource", TwingateConnectorTokensArgs.builder()        
        .connectorId("string")
        .keepers(Map.of("string", "any"))
        .build());
    
    twingate_connector_tokens_resource = twingate.TwingateConnectorTokens("twingateConnectorTokensResource",
        connector_id="string",
        keepers={
            "string": "any",
        })
    
    const twingateConnectorTokensResource = new twingate.TwingateConnectorTokens("twingateConnectorTokensResource", {
        connectorId: "string",
        keepers: {
            string: "any",
        },
    });
    
    type: twingate:TwingateConnectorTokens
    properties:
        connectorId: string
        keepers:
            string: any
    

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

    ConnectorId string
    The ID of the parent Connector
    Keepers Dictionary<string, object>
    Arbitrary map of values that, when changed, will trigger recreation of resource. Use this to automatically rotate Connector tokens on a schedule.
    ConnectorId string
    The ID of the parent Connector
    Keepers map[string]interface{}
    Arbitrary map of values that, when changed, will trigger recreation of resource. Use this to automatically rotate Connector tokens on a schedule.
    connectorId String
    The ID of the parent Connector
    keepers Map<String,Object>
    Arbitrary map of values that, when changed, will trigger recreation of resource. Use this to automatically rotate Connector tokens on a schedule.
    connectorId string
    The ID of the parent Connector
    keepers {[key: string]: any}
    Arbitrary map of values that, when changed, will trigger recreation of resource. Use this to automatically rotate Connector tokens on a schedule.
    connector_id str
    The ID of the parent Connector
    keepers Mapping[str, Any]
    Arbitrary map of values that, when changed, will trigger recreation of resource. Use this to automatically rotate Connector tokens on a schedule.
    connectorId String
    The ID of the parent Connector
    keepers Map<Any>
    Arbitrary map of values that, when changed, will trigger recreation of resource. Use this to automatically rotate Connector tokens on a schedule.

    Outputs

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

    AccessToken string
    The Access Token of the parent Connector
    Id string
    The provider-assigned unique ID for this managed resource.
    RefreshToken string
    The Refresh Token of the parent Connector
    AccessToken string
    The Access Token of the parent Connector
    Id string
    The provider-assigned unique ID for this managed resource.
    RefreshToken string
    The Refresh Token of the parent Connector
    accessToken String
    The Access Token of the parent Connector
    id String
    The provider-assigned unique ID for this managed resource.
    refreshToken String
    The Refresh Token of the parent Connector
    accessToken string
    The Access Token of the parent Connector
    id string
    The provider-assigned unique ID for this managed resource.
    refreshToken string
    The Refresh Token of the parent Connector
    access_token str
    The Access Token of the parent Connector
    id str
    The provider-assigned unique ID for this managed resource.
    refresh_token str
    The Refresh Token of the parent Connector
    accessToken String
    The Access Token of the parent Connector
    id String
    The provider-assigned unique ID for this managed resource.
    refreshToken String
    The Refresh Token of the parent Connector

    Look up Existing TwingateConnectorTokens Resource

    Get an existing TwingateConnectorTokens 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?: TwingateConnectorTokensState, opts?: CustomResourceOptions): TwingateConnectorTokens
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            access_token: Optional[str] = None,
            connector_id: Optional[str] = None,
            keepers: Optional[Mapping[str, Any]] = None,
            refresh_token: Optional[str] = None) -> TwingateConnectorTokens
    func GetTwingateConnectorTokens(ctx *Context, name string, id IDInput, state *TwingateConnectorTokensState, opts ...ResourceOption) (*TwingateConnectorTokens, error)
    public static TwingateConnectorTokens Get(string name, Input<string> id, TwingateConnectorTokensState? state, CustomResourceOptions? opts = null)
    public static TwingateConnectorTokens get(String name, Output<String> id, TwingateConnectorTokensState 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:
    AccessToken string
    The Access Token of the parent Connector
    ConnectorId string
    The ID of the parent Connector
    Keepers Dictionary<string, object>
    Arbitrary map of values that, when changed, will trigger recreation of resource. Use this to automatically rotate Connector tokens on a schedule.
    RefreshToken string
    The Refresh Token of the parent Connector
    AccessToken string
    The Access Token of the parent Connector
    ConnectorId string
    The ID of the parent Connector
    Keepers map[string]interface{}
    Arbitrary map of values that, when changed, will trigger recreation of resource. Use this to automatically rotate Connector tokens on a schedule.
    RefreshToken string
    The Refresh Token of the parent Connector
    accessToken String
    The Access Token of the parent Connector
    connectorId String
    The ID of the parent Connector
    keepers Map<String,Object>
    Arbitrary map of values that, when changed, will trigger recreation of resource. Use this to automatically rotate Connector tokens on a schedule.
    refreshToken String
    The Refresh Token of the parent Connector
    accessToken string
    The Access Token of the parent Connector
    connectorId string
    The ID of the parent Connector
    keepers {[key: string]: any}
    Arbitrary map of values that, when changed, will trigger recreation of resource. Use this to automatically rotate Connector tokens on a schedule.
    refreshToken string
    The Refresh Token of the parent Connector
    access_token str
    The Access Token of the parent Connector
    connector_id str
    The ID of the parent Connector
    keepers Mapping[str, Any]
    Arbitrary map of values that, when changed, will trigger recreation of resource. Use this to automatically rotate Connector tokens on a schedule.
    refresh_token str
    The Refresh Token of the parent Connector
    accessToken String
    The Access Token of the parent Connector
    connectorId String
    The ID of the parent Connector
    keepers Map<Any>
    Arbitrary map of values that, when changed, will trigger recreation of resource. Use this to automatically rotate Connector tokens on a schedule.
    refreshToken String
    The Refresh Token of the parent Connector

    Package Details

    Repository
    twingate Twingate-Labs/pulumi-twingate
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the twingate Terraform Provider.
    twingate logo
    Twingate v0.0.48 published on Friday, Oct 13, 2023 by Twingate