1. Packages
  2. Google Cloud Native
  3. API Docs
  4. networkconnectivity
  5. networkconnectivity/v1
  6. ServiceConnectionToken

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

google-native.networkconnectivity/v1.ServiceConnectionToken

Explore with Pulumi AI

google-native logo

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

    Creates a new ServiceConnectionToken in a given project and location.

    Create ServiceConnectionToken Resource

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

    Constructor syntax

    new ServiceConnectionToken(name: string, args?: ServiceConnectionTokenArgs, opts?: CustomResourceOptions);
    @overload
    def ServiceConnectionToken(resource_name: str,
                               args: Optional[ServiceConnectionTokenArgs] = None,
                               opts: Optional[ResourceOptions] = None)
    
    @overload
    def ServiceConnectionToken(resource_name: str,
                               opts: Optional[ResourceOptions] = None,
                               description: Optional[str] = None,
                               etag: Optional[str] = None,
                               labels: Optional[Mapping[str, str]] = None,
                               location: Optional[str] = None,
                               name: Optional[str] = None,
                               network: Optional[str] = None,
                               project: Optional[str] = None,
                               request_id: Optional[str] = None,
                               service_connection_token_id: Optional[str] = None)
    func NewServiceConnectionToken(ctx *Context, name string, args *ServiceConnectionTokenArgs, opts ...ResourceOption) (*ServiceConnectionToken, error)
    public ServiceConnectionToken(string name, ServiceConnectionTokenArgs? args = null, CustomResourceOptions? opts = null)
    public ServiceConnectionToken(String name, ServiceConnectionTokenArgs args)
    public ServiceConnectionToken(String name, ServiceConnectionTokenArgs args, CustomResourceOptions options)
    
    type: google-native:networkconnectivity/v1:ServiceConnectionToken
    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 ServiceConnectionTokenArgs
    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 ServiceConnectionTokenArgs
    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 ServiceConnectionTokenArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ServiceConnectionTokenArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ServiceConnectionTokenArgs
    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 serviceConnectionTokenResource = new GoogleNative.NetworkConnectivity.V1.ServiceConnectionToken("serviceConnectionTokenResource", new()
    {
        Description = "string",
        Etag = "string",
        Labels = 
        {
            { "string", "string" },
        },
        Location = "string",
        Name = "string",
        Network = "string",
        Project = "string",
        RequestId = "string",
        ServiceConnectionTokenId = "string",
    });
    
    example, err := networkconnectivity.NewServiceConnectionToken(ctx, "serviceConnectionTokenResource", &networkconnectivity.ServiceConnectionTokenArgs{
    Description: pulumi.String("string"),
    Etag: pulumi.String("string"),
    Labels: pulumi.StringMap{
    "string": pulumi.String("string"),
    },
    Location: pulumi.String("string"),
    Name: pulumi.String("string"),
    Network: pulumi.String("string"),
    Project: pulumi.String("string"),
    RequestId: pulumi.String("string"),
    ServiceConnectionTokenId: pulumi.String("string"),
    })
    
    var serviceConnectionTokenResource = new ServiceConnectionToken("serviceConnectionTokenResource", ServiceConnectionTokenArgs.builder()
        .description("string")
        .etag("string")
        .labels(Map.of("string", "string"))
        .location("string")
        .name("string")
        .network("string")
        .project("string")
        .requestId("string")
        .serviceConnectionTokenId("string")
        .build());
    
    service_connection_token_resource = google_native.networkconnectivity.v1.ServiceConnectionToken("serviceConnectionTokenResource",
        description="string",
        etag="string",
        labels={
            "string": "string",
        },
        location="string",
        name="string",
        network="string",
        project="string",
        request_id="string",
        service_connection_token_id="string")
    
    const serviceConnectionTokenResource = new google_native.networkconnectivity.v1.ServiceConnectionToken("serviceConnectionTokenResource", {
        description: "string",
        etag: "string",
        labels: {
            string: "string",
        },
        location: "string",
        name: "string",
        network: "string",
        project: "string",
        requestId: "string",
        serviceConnectionTokenId: "string",
    });
    
    type: google-native:networkconnectivity/v1:ServiceConnectionToken
    properties:
        description: string
        etag: string
        labels:
            string: string
        location: string
        name: string
        network: string
        project: string
        requestId: string
        serviceConnectionTokenId: string
    

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

    Description string
    A description of this resource.
    Etag string
    Optional. The etag is computed by the server, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
    Labels Dictionary<string, string>
    User-defined labels.
    Location string
    Name string
    Immutable. The name of a ServiceConnectionToken. Format: projects/{project}/locations/{location}/ServiceConnectionTokens/{service_connection_token} See: https://google.aip.dev/122#fields-representing-resource-names
    Network string
    The resource path of the network associated with this token. Example: projects/{projectNumOrId}/global/networks/{resourceId}.
    Project string
    RequestId string
    Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
    ServiceConnectionTokenId string
    Optional. Resource ID (i.e. 'foo' in '[...]/projects/p/locations/l/ServiceConnectionTokens/foo') See https://google.aip.dev/122#resource-id-segments Unique per location. If one is not provided, one will be generated.
    Description string
    A description of this resource.
    Etag string
    Optional. The etag is computed by the server, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
    Labels map[string]string
    User-defined labels.
    Location string
    Name string
    Immutable. The name of a ServiceConnectionToken. Format: projects/{project}/locations/{location}/ServiceConnectionTokens/{service_connection_token} See: https://google.aip.dev/122#fields-representing-resource-names
    Network string
    The resource path of the network associated with this token. Example: projects/{projectNumOrId}/global/networks/{resourceId}.
    Project string
    RequestId string
    Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
    ServiceConnectionTokenId string
    Optional. Resource ID (i.e. 'foo' in '[...]/projects/p/locations/l/ServiceConnectionTokens/foo') See https://google.aip.dev/122#resource-id-segments Unique per location. If one is not provided, one will be generated.
    description String
    A description of this resource.
    etag String
    Optional. The etag is computed by the server, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
    labels Map<String,String>
    User-defined labels.
    location String
    name String
    Immutable. The name of a ServiceConnectionToken. Format: projects/{project}/locations/{location}/ServiceConnectionTokens/{service_connection_token} See: https://google.aip.dev/122#fields-representing-resource-names
    network String
    The resource path of the network associated with this token. Example: projects/{projectNumOrId}/global/networks/{resourceId}.
    project String
    requestId String
    Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
    serviceConnectionTokenId String
    Optional. Resource ID (i.e. 'foo' in '[...]/projects/p/locations/l/ServiceConnectionTokens/foo') See https://google.aip.dev/122#resource-id-segments Unique per location. If one is not provided, one will be generated.
    description string
    A description of this resource.
    etag string
    Optional. The etag is computed by the server, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
    labels {[key: string]: string}
    User-defined labels.
    location string
    name string
    Immutable. The name of a ServiceConnectionToken. Format: projects/{project}/locations/{location}/ServiceConnectionTokens/{service_connection_token} See: https://google.aip.dev/122#fields-representing-resource-names
    network string
    The resource path of the network associated with this token. Example: projects/{projectNumOrId}/global/networks/{resourceId}.
    project string
    requestId string
    Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
    serviceConnectionTokenId string
    Optional. Resource ID (i.e. 'foo' in '[...]/projects/p/locations/l/ServiceConnectionTokens/foo') See https://google.aip.dev/122#resource-id-segments Unique per location. If one is not provided, one will be generated.
    description str
    A description of this resource.
    etag str
    Optional. The etag is computed by the server, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
    labels Mapping[str, str]
    User-defined labels.
    location str
    name str
    Immutable. The name of a ServiceConnectionToken. Format: projects/{project}/locations/{location}/ServiceConnectionTokens/{service_connection_token} See: https://google.aip.dev/122#fields-representing-resource-names
    network str
    The resource path of the network associated with this token. Example: projects/{projectNumOrId}/global/networks/{resourceId}.
    project str
    request_id str
    Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
    service_connection_token_id str
    Optional. Resource ID (i.e. 'foo' in '[...]/projects/p/locations/l/ServiceConnectionTokens/foo') See https://google.aip.dev/122#resource-id-segments Unique per location. If one is not provided, one will be generated.
    description String
    A description of this resource.
    etag String
    Optional. The etag is computed by the server, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
    labels Map<String>
    User-defined labels.
    location String
    name String
    Immutable. The name of a ServiceConnectionToken. Format: projects/{project}/locations/{location}/ServiceConnectionTokens/{service_connection_token} See: https://google.aip.dev/122#fields-representing-resource-names
    network String
    The resource path of the network associated with this token. Example: projects/{projectNumOrId}/global/networks/{resourceId}.
    project String
    requestId String
    Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
    serviceConnectionTokenId String
    Optional. Resource ID (i.e. 'foo' in '[...]/projects/p/locations/l/ServiceConnectionTokens/foo') See https://google.aip.dev/122#resource-id-segments Unique per location. If one is not provided, one will be generated.

    Outputs

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

    CreateTime string
    Time when the ServiceConnectionToken was created.
    ExpireTime string
    The time to which this token is valid.
    Id string
    The provider-assigned unique ID for this managed resource.
    Token string
    The token generated by Automation.
    UpdateTime string
    Time when the ServiceConnectionToken was updated.
    CreateTime string
    Time when the ServiceConnectionToken was created.
    ExpireTime string
    The time to which this token is valid.
    Id string
    The provider-assigned unique ID for this managed resource.
    Token string
    The token generated by Automation.
    UpdateTime string
    Time when the ServiceConnectionToken was updated.
    createTime String
    Time when the ServiceConnectionToken was created.
    expireTime String
    The time to which this token is valid.
    id String
    The provider-assigned unique ID for this managed resource.
    token String
    The token generated by Automation.
    updateTime String
    Time when the ServiceConnectionToken was updated.
    createTime string
    Time when the ServiceConnectionToken was created.
    expireTime string
    The time to which this token is valid.
    id string
    The provider-assigned unique ID for this managed resource.
    token string
    The token generated by Automation.
    updateTime string
    Time when the ServiceConnectionToken was updated.
    create_time str
    Time when the ServiceConnectionToken was created.
    expire_time str
    The time to which this token is valid.
    id str
    The provider-assigned unique ID for this managed resource.
    token str
    The token generated by Automation.
    update_time str
    Time when the ServiceConnectionToken was updated.
    createTime String
    Time when the ServiceConnectionToken was created.
    expireTime String
    The time to which this token is valid.
    id String
    The provider-assigned unique ID for this managed resource.
    token String
    The token generated by Automation.
    updateTime String
    Time when the ServiceConnectionToken was updated.

    Package Details

    Repository
    Google Cloud Native pulumi/pulumi-google-native
    License
    Apache-2.0
    google-native logo

    Google Cloud Native is in preview. Google Cloud Classic is fully supported.

    Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi