EndpointAttachmentArgs

data class EndpointAttachmentArgs(val endpointAttachmentId: Output<String>? = null, val location: Output<String>? = null, val orgId: Output<String>? = null, val serviceAttachment: Output<String>? = null) : ConvertibleToJava<EndpointAttachmentArgs>

Apigee Endpoint Attachment. To get more information about EndpointAttachment, see:

Example Usage

Apigee Endpoint Attachment Basic

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.organizations.OrganizationsFunctions;
import com.pulumi.gcp.compute.Network;
import com.pulumi.gcp.compute.GlobalAddress;
import com.pulumi.gcp.compute.GlobalAddressArgs;
import com.pulumi.gcp.servicenetworking.Connection;
import com.pulumi.gcp.servicenetworking.ConnectionArgs;
import com.pulumi.gcp.apigee.Organization;
import com.pulumi.gcp.apigee.OrganizationArgs;
import com.pulumi.gcp.apigee.EndpointAttachment;
import com.pulumi.gcp.apigee.EndpointAttachmentArgs;
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) {
final var current = OrganizationsFunctions.getClientConfig();
var apigeeNetwork = new Network("apigeeNetwork");
var apigeeRange = new GlobalAddress("apigeeRange", GlobalAddressArgs.builder()
.purpose("VPC_PEERING")
.addressType("INTERNAL")
.prefixLength(16)
.network(apigeeNetwork.id())
.build());
var apigeeVpcConnection = new Connection("apigeeVpcConnection", ConnectionArgs.builder()
.network(apigeeNetwork.id())
.service("servicenetworking.googleapis.com")
.reservedPeeringRanges(apigeeRange.name())
.build());
var apigeeOrg = new Organization("apigeeOrg", OrganizationArgs.builder()
.analyticsRegion("us-central1")
.projectId(current.applyValue(getClientConfigResult -> getClientConfigResult.project()))
.authorizedNetwork(apigeeNetwork.id())
.build(), CustomResourceOptions.builder()
.dependsOn(apigeeVpcConnection)
.build());
var apigeeEndpointAttachment = new EndpointAttachment("apigeeEndpointAttachment", EndpointAttachmentArgs.builder()
.orgId(apigeeOrg.id())
.endpointAttachmentId("test1")
.location("{google_compute_service_attachment location}")
.serviceAttachment("{google_compute_service_attachment id}")
.build());
}
}

Import

EndpointAttachment can be imported using any of these accepted formats

$ pulumi import gcp:apigee/endpointAttachment:EndpointAttachment default {{org_id}}/endpointAttachments/{{endpoint_attachment_id}}
$ pulumi import gcp:apigee/endpointAttachment:EndpointAttachment default {{org_id}}/{{endpoint_attachment_id}}

Constructors

Link copied to clipboard
constructor(endpointAttachmentId: Output<String>? = null, location: Output<String>? = null, orgId: Output<String>? = null, serviceAttachment: Output<String>? = null)

Properties

Link copied to clipboard
val endpointAttachmentId: Output<String>? = null

ID of the endpoint attachment.

Link copied to clipboard
val location: Output<String>? = null

Location of the endpoint attachment.

Link copied to clipboard
val orgId: Output<String>? = null

The Apigee Organization associated with the Apigee instance, in the format organizations/{{org_name}}.

Link copied to clipboard
val serviceAttachment: Output<String>? = null

Format: projects//regions//serviceAttachments/* //*/

Functions

Link copied to clipboard
open override fun toJava(): EndpointAttachmentArgs