@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
109 lines • 4.13 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Get a specific [service attachment](https://cloud.google.com/vpc/docs/configure-private-service-connect-services) within a region. For more information see the
* [official documentation](https://cloud.google.com/vpc/docs/configure-private-service-connect-services)
* and [API](https://cloud.google.com/compute/docs/reference/rest/v1/serviceAttachments/get).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const _default = gcp.compute.getServiceAttachment({
* project: "my-project",
* name: "my-service-attachment",
* region: "us-west2",
* });
* ```
*/
export declare function getServiceAttachment(args: GetServiceAttachmentArgs, opts?: pulumi.InvokeOptions): Promise<GetServiceAttachmentResult>;
/**
* A collection of arguments for invoking getServiceAttachment.
*/
export interface GetServiceAttachmentArgs {
/**
* The name of the service attachment to retrieve.
*/
name: string;
/**
* The ID of the project in which the resource belongs.
* If it is not provided, the provider project is used.
*/
project?: string;
/**
* The region in which the service attachment resides.
* If it is not provided, the provider region is used.
*/
region?: string;
}
/**
* A collection of values returned by getServiceAttachment.
*/
export interface GetServiceAttachmentResult {
readonly connectedEndpoints: outputs.compute.GetServiceAttachmentConnectedEndpoint[];
readonly connectionPreference: string;
readonly consumerAcceptLists: outputs.compute.GetServiceAttachmentConsumerAcceptList[];
readonly consumerRejectLists: string[];
readonly deletionPolicy: string;
readonly description: string;
readonly domainNames: string[];
readonly enableProxyProtocol: boolean;
readonly fingerprint: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly name: string;
readonly natSubnets: string[];
readonly project?: string;
readonly propagatedConnectionLimit: number;
readonly pscServiceAttachmentIds: outputs.compute.GetServiceAttachmentPscServiceAttachmentId[];
readonly reconcileConnections: boolean;
readonly region?: string;
readonly selfLink: string;
readonly sendPropagatedConnectionLimitIfZero: boolean;
readonly showNatIps: boolean;
readonly targetService: string;
readonly tunnelingConfigs: outputs.compute.GetServiceAttachmentTunnelingConfig[];
}
/**
* Get a specific [service attachment](https://cloud.google.com/vpc/docs/configure-private-service-connect-services) within a region. For more information see the
* [official documentation](https://cloud.google.com/vpc/docs/configure-private-service-connect-services)
* and [API](https://cloud.google.com/compute/docs/reference/rest/v1/serviceAttachments/get).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const _default = gcp.compute.getServiceAttachment({
* project: "my-project",
* name: "my-service-attachment",
* region: "us-west2",
* });
* ```
*/
export declare function getServiceAttachmentOutput(args: GetServiceAttachmentOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetServiceAttachmentResult>;
/**
* A collection of arguments for invoking getServiceAttachment.
*/
export interface GetServiceAttachmentOutputArgs {
/**
* The name of the service attachment to retrieve.
*/
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 | undefined>;
/**
* The region in which the service attachment resides.
* If it is not provided, the provider region is used.
*/
region?: pulumi.Input<string | undefined>;
}
//# sourceMappingURL=getServiceAttachment.d.ts.map