ServiceBinding

class ServiceBinding : KotlinCustomResource

Example Usage

Network Services Service Binding Basic

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.servicedirectory.Namespace;
import com.pulumi.gcp.servicedirectory.NamespaceArgs;
import com.pulumi.gcp.servicedirectory.Service;
import com.pulumi.gcp.servicedirectory.ServiceArgs;
import com.pulumi.gcp.networkservices.ServiceBinding;
import com.pulumi.gcp.networkservices.ServiceBindingArgs;
import com.pulumi.resources.CustomResourceOptions;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var defaultNamespace = new Namespace("defaultNamespace", NamespaceArgs.builder()
.namespaceId("my-namespace")
.location("us-central1")
.build(), CustomResourceOptions.builder()
.provider(google_beta)
.build());
var defaultService = new Service("defaultService", ServiceArgs.builder()
.serviceId("my-service")
.namespace(defaultNamespace.id())
.metadata(Map.ofEntries(
Map.entry("stage", "prod"),
Map.entry("region", "us-central1")
))
.build(), CustomResourceOptions.builder()
.provider(google_beta)
.build());
var defaultServiceBinding = new ServiceBinding("defaultServiceBinding", ServiceBindingArgs.builder()
.labels(Map.of("foo", "bar"))
.description("my description")
.service(defaultService.id())
.build(), CustomResourceOptions.builder()
.provider(google_beta)
.build());
}
}

Import

ServiceBinding can be imported using any of these accepted formats

$ pulumi import gcp:networkservices/serviceBinding:ServiceBinding default projects/{{project}}/locations/global/serviceBindings/{{name}}
$ pulumi import gcp:networkservices/serviceBinding:ServiceBinding default {{project}}/{{name}}
$ pulumi import gcp:networkservices/serviceBinding:ServiceBinding default {{name}}

Properties

Link copied to clipboard
val createTime: Output<String>

Time the ServiceBinding was created in UTC.

Link copied to clipboard
val description: Output<String>?

A free-text description of the resource. Max length 1024 characters.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val labels: Output<Map<String, String>>?

Set of label tags associated with the ServiceBinding resource.

Link copied to clipboard
val name: Output<String>

Name of the ServiceBinding resource.

Link copied to clipboard
val project: Output<String>

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val service: Output<String>

The full Service Directory Service name of the format projects//locations//namespaces//services/ ////

Link copied to clipboard
val updateTime: Output<String>

Time the ServiceBinding was updated in UTC.

Link copied to clipboard
val urn: Output<String>