@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
186 lines (185 loc) • 6.03 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Tunnel destination groups represent resources that have the same tunnel access restrictions.
*
* To get more information about TunnelDestGroup, see:
*
* * [API documentation](https://cloud.google.com/iap/docs/reference/rest/v1/projects.iap_tunnel.locations.destGroups)
* * How-to Guides
* * [Set up IAP TCP forwarding with an IP address or hostname in a Google Cloud or non-Google Cloud environment](https://cloud.google.com/iap/docs/tcp-by-host)
*
* ## Example Usage
*
* ### Iap Destgroup
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const destGroup = new gcp.iap.TunnelDestGroup("dest_group", {
* region: "us-central1",
* groupName: "testgroup_79169",
* cidrs: [
* "10.1.0.0/16",
* "192.168.10.0/24",
* ],
* });
* ```
*
* ## Import
*
* TunnelDestGroup can be imported using any of these accepted formats:
*
* * `projects/{{project}}/iap_tunnel/locations/{{region}}/destGroups/{{group_name}}`
*
* * `{{project}}/iap_tunnel/locations/{{region}}/destGroups/{{group_name}}`
*
* * `{{project}}/{{region}}/{{group_name}}`
*
* * `{{region}}/destGroups/{{group_name}}`
*
* * `{{region}}/{{group_name}}`
*
* * `{{group_name}}`
*
* When using the `pulumi import` command, TunnelDestGroup can be imported using one of the formats above. For example:
*
* ```sh
* $ pulumi import gcp:iap/tunnelDestGroup:TunnelDestGroup default projects/{{project}}/iap_tunnel/locations/{{region}}/destGroups/{{group_name}}
* ```
*
* ```sh
* $ pulumi import gcp:iap/tunnelDestGroup:TunnelDestGroup default {{project}}/iap_tunnel/locations/{{region}}/destGroups/{{group_name}}
* ```
*
* ```sh
* $ pulumi import gcp:iap/tunnelDestGroup:TunnelDestGroup default {{project}}/{{region}}/{{group_name}}
* ```
*
* ```sh
* $ pulumi import gcp:iap/tunnelDestGroup:TunnelDestGroup default {{region}}/destGroups/{{group_name}}
* ```
*
* ```sh
* $ pulumi import gcp:iap/tunnelDestGroup:TunnelDestGroup default {{region}}/{{group_name}}
* ```
*
* ```sh
* $ pulumi import gcp:iap/tunnelDestGroup:TunnelDestGroup default {{group_name}}
* ```
*/
export declare class TunnelDestGroup extends pulumi.CustomResource {
/**
* Get an existing TunnelDestGroup 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?: TunnelDestGroupState, opts?: pulumi.CustomResourceOptions): TunnelDestGroup;
/**
* Returns true if the given object is an instance of TunnelDestGroup. 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 TunnelDestGroup;
/**
* List of CIDRs that this group applies to.
*/
readonly cidrs: pulumi.Output<string[] | undefined>;
/**
* List of FQDNs that this group applies to.
*/
readonly fqdns: pulumi.Output<string[] | undefined>;
/**
* Unique tunnel destination group name.
*
*
* - - -
*/
readonly groupName: pulumi.Output<string>;
/**
* Full resource name.
*/
readonly name: 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 region of the tunnel group. Must be the same as the network resources in the group.
*/
readonly region: pulumi.Output<string>;
/**
* Create a TunnelDestGroup 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: TunnelDestGroupArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering TunnelDestGroup resources.
*/
export interface TunnelDestGroupState {
/**
* List of CIDRs that this group applies to.
*/
cidrs?: pulumi.Input<pulumi.Input<string>[]>;
/**
* List of FQDNs that this group applies to.
*/
fqdns?: pulumi.Input<pulumi.Input<string>[]>;
/**
* Unique tunnel destination group name.
*
*
* - - -
*/
groupName?: pulumi.Input<string>;
/**
* Full resource name.
*/
name?: 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 region of the tunnel group. Must be the same as the network resources in the group.
*/
region?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a TunnelDestGroup resource.
*/
export interface TunnelDestGroupArgs {
/**
* List of CIDRs that this group applies to.
*/
cidrs?: pulumi.Input<pulumi.Input<string>[]>;
/**
* List of FQDNs that this group applies to.
*/
fqdns?: pulumi.Input<pulumi.Input<string>[]>;
/**
* Unique tunnel destination group name.
*
*
* - - -
*/
groupName: 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 region of the tunnel group. Must be the same as the network resources in the group.
*/
region?: pulumi.Input<string>;
}