UNPKG

@pulumi/gcp

Version:

A Pulumi package for creating and managing Google Cloud Platform resources.

302 lines (301 loc) • 11.8 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * A deployment group aggregates many zonal intercept backends (deployments) * into a single global intercept service. Consumers can connect this service * using an endpoint group. * * ## Example Usage * * ### Network Security Intercept Deployment Group Basic * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const network = new gcp.compute.Network("network", { * name: "example-network", * autoCreateSubnetworks: false, * }); * const _default = new gcp.networksecurity.InterceptDeploymentGroup("default", { * interceptDeploymentGroupId: "example-dg", * location: "global", * network: network.id, * description: "some description", * labels: { * foo: "bar", * }, * }); * ``` * * ## Import * * InterceptDeploymentGroup can be imported using any of these accepted formats: * * * `projects/{{project}}/locations/{{location}}/interceptDeploymentGroups/{{intercept_deployment_group_id}}` * * * `{{project}}/{{location}}/{{intercept_deployment_group_id}}` * * * `{{location}}/{{intercept_deployment_group_id}}` * * When using the `pulumi import` command, InterceptDeploymentGroup can be imported using one of the formats above. For example: * * ```sh * $ pulumi import gcp:networksecurity/interceptDeploymentGroup:InterceptDeploymentGroup default projects/{{project}}/locations/{{location}}/interceptDeploymentGroups/{{intercept_deployment_group_id}} * ``` * * ```sh * $ pulumi import gcp:networksecurity/interceptDeploymentGroup:InterceptDeploymentGroup default {{project}}/{{location}}/{{intercept_deployment_group_id}} * ``` * * ```sh * $ pulumi import gcp:networksecurity/interceptDeploymentGroup:InterceptDeploymentGroup default {{location}}/{{intercept_deployment_group_id}} * ``` */ export declare class InterceptDeploymentGroup extends pulumi.CustomResource { /** * Get an existing InterceptDeploymentGroup resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: InterceptDeploymentGroupState, opts?: pulumi.CustomResourceOptions): InterceptDeploymentGroup; /** * Returns true if the given object is an instance of InterceptDeploymentGroup. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is InterceptDeploymentGroup; /** * The list of endpoint groups that are connected to this resource. * Structure is documented below. */ readonly connectedEndpointGroups: pulumi.Output<outputs.networksecurity.InterceptDeploymentGroupConnectedEndpointGroup[]>; /** * The timestamp when the resource was created. * See https://google.aip.dev/148#timestamps. */ readonly createTime: pulumi.Output<string>; /** * User-provided description of the deployment group. * Used as additional context for the deployment group. */ readonly description: pulumi.Output<string | undefined>; /** * All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services. */ readonly effectiveLabels: pulumi.Output<{ [key: string]: string; }>; /** * The ID to use for the new deployment group, which will become the final * component of the deployment group's resource name. */ readonly interceptDeploymentGroupId: pulumi.Output<string>; /** * Labels are key/value pairs that help to organize and filter resources. * **Note**: This field is non-authoritative, and will only manage the labels present in your configuration. * Please refer to the field `effectiveLabels` for all of the labels present on the resource. */ readonly labels: pulumi.Output<{ [key: string]: string; } | undefined>; /** * The cloud location of the deployment group, currently restricted to `global`. */ readonly location: pulumi.Output<string>; /** * The list of locations where the deployment group is present. * Structure is documented below. */ readonly locations: pulumi.Output<outputs.networksecurity.InterceptDeploymentGroupLocation[]>; /** * (Output) * The connected endpoint group's resource name, for example: * `projects/123456789/locations/global/interceptEndpointGroups/my-eg`. * See https://google.aip.dev/124. */ readonly name: pulumi.Output<string>; /** * The network that will be used for all child deployments, for example: * `projects/{project}/global/networks/{network}`. * See https://google.aip.dev/124. */ readonly network: pulumi.Output<string>; /** * The ID of the project in which the resource belongs. * If it is not provided, the provider project is used. */ readonly project: pulumi.Output<string>; /** * The combination of labels configured directly on the resource * and default labels configured on the provider. */ readonly pulumiLabels: pulumi.Output<{ [key: string]: string; }>; /** * The current state of the resource does not match the user's intended state, * and the system is working to reconcile them. This is part of the normal * operation (e.g. adding a new deployment to the group) * See https://google.aip.dev/128. */ readonly reconciling: pulumi.Output<boolean>; /** * (Output) * The current state of the association in this location. * Possible values: * STATE_UNSPECIFIED * ACTIVE * OUT_OF_SYNC */ readonly state: pulumi.Output<string>; /** * The timestamp when the resource was most recently updated. * See https://google.aip.dev/148#timestamps. */ readonly updateTime: pulumi.Output<string>; /** * Create a InterceptDeploymentGroup resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: InterceptDeploymentGroupArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering InterceptDeploymentGroup resources. */ export interface InterceptDeploymentGroupState { /** * The list of endpoint groups that are connected to this resource. * Structure is documented below. */ connectedEndpointGroups?: pulumi.Input<pulumi.Input<inputs.networksecurity.InterceptDeploymentGroupConnectedEndpointGroup>[]>; /** * The timestamp when the resource was created. * See https://google.aip.dev/148#timestamps. */ createTime?: pulumi.Input<string>; /** * User-provided description of the deployment group. * Used as additional context for the deployment group. */ description?: pulumi.Input<string>; /** * All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services. */ effectiveLabels?: pulumi.Input<{ [key: string]: pulumi.Input<string>; }>; /** * The ID to use for the new deployment group, which will become the final * component of the deployment group's resource name. */ interceptDeploymentGroupId?: pulumi.Input<string>; /** * Labels are key/value pairs that help to organize and filter resources. * **Note**: This field is non-authoritative, and will only manage the labels present in your configuration. * Please refer to the field `effectiveLabels` for all of the labels present on the resource. */ labels?: pulumi.Input<{ [key: string]: pulumi.Input<string>; }>; /** * The cloud location of the deployment group, currently restricted to `global`. */ location?: pulumi.Input<string>; /** * The list of locations where the deployment group is present. * Structure is documented below. */ locations?: pulumi.Input<pulumi.Input<inputs.networksecurity.InterceptDeploymentGroupLocation>[]>; /** * (Output) * The connected endpoint group's resource name, for example: * `projects/123456789/locations/global/interceptEndpointGroups/my-eg`. * See https://google.aip.dev/124. */ name?: pulumi.Input<string>; /** * The network that will be used for all child deployments, for example: * `projects/{project}/global/networks/{network}`. * See https://google.aip.dev/124. */ network?: pulumi.Input<string>; /** * The ID of the project in which the resource belongs. * If it is not provided, the provider project is used. */ project?: pulumi.Input<string>; /** * The combination of labels configured directly on the resource * and default labels configured on the provider. */ pulumiLabels?: pulumi.Input<{ [key: string]: pulumi.Input<string>; }>; /** * The current state of the resource does not match the user's intended state, * and the system is working to reconcile them. This is part of the normal * operation (e.g. adding a new deployment to the group) * See https://google.aip.dev/128. */ reconciling?: pulumi.Input<boolean>; /** * (Output) * The current state of the association in this location. * Possible values: * STATE_UNSPECIFIED * ACTIVE * OUT_OF_SYNC */ state?: pulumi.Input<string>; /** * The timestamp when the resource was most recently updated. * See https://google.aip.dev/148#timestamps. */ updateTime?: pulumi.Input<string>; } /** * The set of arguments for constructing a InterceptDeploymentGroup resource. */ export interface InterceptDeploymentGroupArgs { /** * User-provided description of the deployment group. * Used as additional context for the deployment group. */ description?: pulumi.Input<string>; /** * The ID to use for the new deployment group, which will become the final * component of the deployment group's resource name. */ interceptDeploymentGroupId: pulumi.Input<string>; /** * Labels are key/value pairs that help to organize and filter resources. * **Note**: This field is non-authoritative, and will only manage the labels present in your configuration. * Please refer to the field `effectiveLabels` for all of the labels present on the resource. */ labels?: pulumi.Input<{ [key: string]: pulumi.Input<string>; }>; /** * The cloud location of the deployment group, currently restricted to `global`. */ location: pulumi.Input<string>; /** * The network that will be used for all child deployments, for example: * `projects/{project}/global/networks/{network}`. * See https://google.aip.dev/124. */ network: pulumi.Input<string>; /** * The ID of the project in which the resource belongs. * If it is not provided, the provider project is used. */ project?: pulumi.Input<string>; }