This package is deprecated. Active development has stopped. We recommend using the Google Cloud package instead.
published on Wednesday, Nov 29, 2023 by Pulumi
This package is deprecated. Active development has stopped. We recommend using the Google Cloud package instead.
published on Wednesday, Nov 29, 2023 by Pulumi
Creates a new ServiceBinding in a given project and location.
Create ServiceBinding Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ServiceBinding(name: string, args: ServiceBindingArgs, opts?: CustomResourceOptions);@overload
def ServiceBinding(resource_name: str,
args: ServiceBindingArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ServiceBinding(resource_name: str,
opts: Optional[ResourceOptions] = None,
service: Optional[str] = None,
service_binding_id: Optional[str] = None,
description: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
location: Optional[str] = None,
name: Optional[str] = None,
project: Optional[str] = None)func NewServiceBinding(ctx *Context, name string, args ServiceBindingArgs, opts ...ResourceOption) (*ServiceBinding, error)public ServiceBinding(string name, ServiceBindingArgs args, CustomResourceOptions? opts = null)
public ServiceBinding(String name, ServiceBindingArgs args)
public ServiceBinding(String name, ServiceBindingArgs args, CustomResourceOptions options)
type: google-native:networkservices/v1beta1:ServiceBinding
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "google-native_networkservices_v1beta1_service_binding" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args ServiceBindingArgs
- 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 ServiceBindingArgs
- 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 ServiceBindingArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ServiceBindingArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ServiceBindingArgs
- 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 google_nativeServiceBindingResource = new GoogleNative.NetworkServices.V1Beta1.ServiceBinding("google-nativeServiceBindingResource", new()
{
Service = "string",
ServiceBindingId = "string",
Description = "string",
Labels =
{
{ "string", "string" },
},
Location = "string",
Name = "string",
Project = "string",
});
example, err := networkservicesv1beta1.NewServiceBinding(ctx, "google-nativeServiceBindingResource", &networkservicesv1beta1.ServiceBindingArgs{
Service: pulumi.String("string"),
ServiceBindingId: pulumi.String("string"),
Description: pulumi.String("string"),
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
Location: pulumi.String("string"),
Name: pulumi.String("string"),
Project: pulumi.String("string"),
})
resource "google-native_networkservices_v1beta1_service_binding" "google-nativeServiceBindingResource" {
lifecycle {
create_before_destroy = true
}
service = "string"
service_binding_id = "string"
description = "string"
labels = {
"string" = "string"
}
location = "string"
name = "string"
project = "string"
}
var google_nativeServiceBindingResource = new com.pulumi.googlenative.networkservices_v1beta1.ServiceBinding("google-nativeServiceBindingResource", com.pulumi.googlenative.networkservices_v1beta1.ServiceBindingArgs.builder()
.service("string")
.serviceBindingId("string")
.description("string")
.labels(Map.of("string", "string"))
.location("string")
.name("string")
.project("string")
.build());
google_native_service_binding_resource = google_native.networkservices.v1beta1.ServiceBinding("google-nativeServiceBindingResource",
service="string",
service_binding_id="string",
description="string",
labels={
"string": "string",
},
location="string",
name="string",
project="string")
const google_nativeServiceBindingResource = new google_native.networkservices.v1beta1.ServiceBinding("google-nativeServiceBindingResource", {
service: "string",
serviceBindingId: "string",
description: "string",
labels: {
string: "string",
},
location: "string",
name: "string",
project: "string",
});
type: google-native:networkservices/v1beta1:ServiceBinding
properties:
description: string
labels:
string: string
location: string
name: string
project: string
service: string
serviceBindingId: string
ServiceBinding 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 ServiceBinding resource accepts the following input properties:
- Service string
- The full Service Directory Service name of the format projects//locations//namespaces//services/
- Service
Binding stringId - Required. Short name of the ServiceBinding resource to be created.
- Description string
- Optional. A free-text description of the resource. Max length 1024 characters.
- Labels Dictionary<string, string>
- Optional. Set of label tags associated with the ServiceBinding resource.
- Location string
- Name string
- Name of the ServiceBinding resource. It matches pattern
projects/*/locations/global/serviceBindings/service_binding_name. - Project string
- Service string
- The full Service Directory Service name of the format projects//locations//namespaces//services/
- Service
Binding stringId - Required. Short name of the ServiceBinding resource to be created.
- Description string
- Optional. A free-text description of the resource. Max length 1024 characters.
- Labels map[string]string
- Optional. Set of label tags associated with the ServiceBinding resource.
- Location string
- Name string
- Name of the ServiceBinding resource. It matches pattern
projects/*/locations/global/serviceBindings/service_binding_name. - Project string
- service string
- The full Service Directory Service name of the format projects//locations//namespaces//services/
- service_
binding_ stringid - Required. Short name of the ServiceBinding resource to be created.
- description string
- Optional. A free-text description of the resource. Max length 1024 characters.
- labels map(string)
- Optional. Set of label tags associated with the ServiceBinding resource.
- location string
- name string
- Name of the ServiceBinding resource. It matches pattern
projects/*/locations/global/serviceBindings/service_binding_name. - project string
- service String
- The full Service Directory Service name of the format projects//locations//namespaces//services/
- service
Binding StringId - Required. Short name of the ServiceBinding resource to be created.
- description String
- Optional. A free-text description of the resource. Max length 1024 characters.
- labels Map<String,String>
- Optional. Set of label tags associated with the ServiceBinding resource.
- location String
- name String
- Name of the ServiceBinding resource. It matches pattern
projects/*/locations/global/serviceBindings/service_binding_name. - project String
- service string
- The full Service Directory Service name of the format projects//locations//namespaces//services/
- service
Binding stringId - Required. Short name of the ServiceBinding resource to be created.
- description string
- Optional. A free-text description of the resource. Max length 1024 characters.
- labels {[key: string]: string}
- Optional. Set of label tags associated with the ServiceBinding resource.
- location string
- name string
- Name of the ServiceBinding resource. It matches pattern
projects/*/locations/global/serviceBindings/service_binding_name. - project string
- service str
- The full Service Directory Service name of the format projects//locations//namespaces//services/
- service_
binding_ strid - Required. Short name of the ServiceBinding resource to be created.
- description str
- Optional. A free-text description of the resource. Max length 1024 characters.
- labels Mapping[str, str]
- Optional. Set of label tags associated with the ServiceBinding resource.
- location str
- name str
- Name of the ServiceBinding resource. It matches pattern
projects/*/locations/global/serviceBindings/service_binding_name. - project str
- service String
- The full Service Directory Service name of the format projects//locations//namespaces//services/
- service
Binding StringId - Required. Short name of the ServiceBinding resource to be created.
- description String
- Optional. A free-text description of the resource. Max length 1024 characters.
- labels Map<String>
- Optional. Set of label tags associated with the ServiceBinding resource.
- location String
- name String
- Name of the ServiceBinding resource. It matches pattern
projects/*/locations/global/serviceBindings/service_binding_name. - project String
Outputs
All input properties are implicitly available as output properties. Additionally, the ServiceBinding resource produces the following output properties:
- Create
Time string - The timestamp when the resource was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Service
Id string - The unique identifier of the Service Directory Service against which the Service Binding resource is validated. This is populated when the Service Binding resource is used in another resource (like Backend Service). This is of the UUID4 format.
- Update
Time string - The timestamp when the resource was updated.
- Create
Time string - The timestamp when the resource was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Service
Id string - The unique identifier of the Service Directory Service against which the Service Binding resource is validated. This is populated when the Service Binding resource is used in another resource (like Backend Service). This is of the UUID4 format.
- Update
Time string - The timestamp when the resource was updated.
- create_
time string - The timestamp when the resource was created.
- id string
- The provider-assigned unique ID for this managed resource.
- service_
id string - The unique identifier of the Service Directory Service against which the Service Binding resource is validated. This is populated when the Service Binding resource is used in another resource (like Backend Service). This is of the UUID4 format.
- update_
time string - The timestamp when the resource was updated.
- create
Time String - The timestamp when the resource was created.
- id String
- The provider-assigned unique ID for this managed resource.
- service
Id String - The unique identifier of the Service Directory Service against which the Service Binding resource is validated. This is populated when the Service Binding resource is used in another resource (like Backend Service). This is of the UUID4 format.
- update
Time String - The timestamp when the resource was updated.
- create
Time string - The timestamp when the resource was created.
- id string
- The provider-assigned unique ID for this managed resource.
- service
Id string - The unique identifier of the Service Directory Service against which the Service Binding resource is validated. This is populated when the Service Binding resource is used in another resource (like Backend Service). This is of the UUID4 format.
- update
Time string - The timestamp when the resource was updated.
- create_
time str - The timestamp when the resource was created.
- id str
- The provider-assigned unique ID for this managed resource.
- service_
id str - The unique identifier of the Service Directory Service against which the Service Binding resource is validated. This is populated when the Service Binding resource is used in another resource (like Backend Service). This is of the UUID4 format.
- update_
time str - The timestamp when the resource was updated.
- create
Time String - The timestamp when the resource was created.
- id String
- The provider-assigned unique ID for this managed resource.
- service
Id String - The unique identifier of the Service Directory Service against which the Service Binding resource is validated. This is populated when the Service Binding resource is used in another resource (like Backend Service). This is of the UUID4 format.
- update
Time String - The timestamp when the resource was updated.
Look up Existing ServiceBinding Resource
Get an existing ServiceBinding 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>, opts?: CustomResourceOptions): ServiceBinding@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None) -> ServiceBindingfunc GetServiceBinding(ctx *Context, name string, id IDInput, state *ServiceBindingState, opts ...ResourceOption) (*ServiceBinding, error)public static ServiceBinding Get(string name, Input<string> id, CustomResourceOptions? opts = null)public static ServiceBinding get(String name, Output<String> id, CustomResourceOptions options)resources: existingServiceBinding: type: google-native:networkservices/v1beta1:ServiceBinding get: id: ${id}import {
to = google-native_networkservices_v1beta1_service_binding.example
id = "${id}"
}
- name string
- The unique name of the resulting resource.
- id Input<ID>
- The unique provider ID of the resource to look up.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resulting resource.
- id str
- The unique provider ID of the resource to look up.
- 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 resulting resource.
- id IDInput
- The unique provider ID of the resource to look up.
- state ServiceBindingState
- Pass nil. This resource has no state arguments.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resulting resource.
- id Input<string>
- The unique provider ID of the resource to look up.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resulting resource.
- id Output<String>
- The unique provider ID of the resource to look up.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
This package is deprecated. Active development has stopped. We recommend using the Google Cloud package instead.
published on Wednesday, Nov 29, 2023 by Pulumi