Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.networkservices/v1beta1.ServiceBinding
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
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.
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"),
})
var google_nativeServiceBindingResource = new ServiceBinding("google-nativeServiceBindingResource", 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
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,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 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.
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
Google Cloud Native is in preview. Google Cloud Classic is fully supported.