UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

204 lines (203 loc) 7.41 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Provides a resource to manage privatelink vpc endpoint service * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@pulumi/volcengine"; * import * as volcengine from "@volcengine/pulumi"; * * const fooZones = volcengine.ecs.getZones({}); * const fooVpc = new volcengine.vpc.Vpc("fooVpc", { * vpcName: "acc-test-vpc", * cidrBlock: "172.16.0.0/16", * }); * const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", { * subnetName: "acc-test-subnet", * cidrBlock: "172.16.0.0/24", * zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id), * vpcId: fooVpc.id, * }); * const fooClb = new volcengine.clb.Clb("fooClb", { * type: "public", * subnetId: fooSubnet.id, * loadBalancerSpec: "small_1", * description: "acc-test-demo", * loadBalancerName: "acc-test-clb", * loadBalancerBillingType: "PostPaid", * eipBillingConfig: { * isp: "BGP", * eipBillingType: "PostPaidByBandwidth", * bandwidth: 1, * }, * tags: [{ * key: "k1", * value: "v1", * }], * }); * const fooVpcEndpointService = new volcengine.privatelink.VpcEndpointService("fooVpcEndpointService", { * resources: [{ * resourceId: fooClb.id, * resourceType: "CLB", * }], * description: "acc-test", * autoAcceptEnabled: true, * }); * ``` * * ## Import * * VpcEndpointService can be imported using the id, e.g. * * ```sh * $ pulumi import volcengine:privatelink/vpcEndpointService:VpcEndpointService default epsvc-2fe630gurkl37k5gfuy33**** * ``` * It is recommended to bind resources using the resources' field in this resource instead of using vpc_endpoint_service_resource. * For operations that jointly use this resource and vpc_endpoint_service_resource, use lifecycle ignore_changes to suppress changes to the resources field. */ export declare class VpcEndpointService extends pulumi.CustomResource { /** * Get an existing VpcEndpointService 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?: VpcEndpointServiceState, opts?: pulumi.CustomResourceOptions): VpcEndpointService; /** * Returns true if the given object is an instance of VpcEndpointService. 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 VpcEndpointService; /** * Whether auto accept node connect. */ readonly autoAcceptEnabled: pulumi.Output<boolean | undefined>; /** * The create time of service. */ readonly creationTime: pulumi.Output<string>; /** * The description of service. */ readonly description: pulumi.Output<string | undefined>; /** * The resources info. When create vpc endpoint service, the resource must exist. It is recommended to bind resources using the resources' field in this resource instead of using vpc_endpoint_service_resource. For operations that jointly use this resource and vpc_endpoint_service_resource, use lifecycle ignoreChanges to suppress changes to the resources field. */ readonly resources: pulumi.Output<outputs.privatelink.VpcEndpointServiceResource[]>; /** * The domain of service. */ readonly serviceDomain: pulumi.Output<string>; /** * The Id of service. */ readonly serviceId: pulumi.Output<string>; /** * The name of service. */ readonly serviceName: pulumi.Output<string>; /** * The resource type of service. */ readonly serviceResourceType: pulumi.Output<string>; /** * The type of service. */ readonly serviceType: pulumi.Output<string>; /** * The status of service. */ readonly status: pulumi.Output<string>; /** * The update time of service. */ readonly updateTime: pulumi.Output<string>; /** * The IDs of zones. */ readonly zoneIds: pulumi.Output<string[]>; /** * Create a VpcEndpointService 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: VpcEndpointServiceArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering VpcEndpointService resources. */ export interface VpcEndpointServiceState { /** * Whether auto accept node connect. */ autoAcceptEnabled?: pulumi.Input<boolean>; /** * The create time of service. */ creationTime?: pulumi.Input<string>; /** * The description of service. */ description?: pulumi.Input<string>; /** * The resources info. When create vpc endpoint service, the resource must exist. It is recommended to bind resources using the resources' field in this resource instead of using vpc_endpoint_service_resource. For operations that jointly use this resource and vpc_endpoint_service_resource, use lifecycle ignoreChanges to suppress changes to the resources field. */ resources?: pulumi.Input<pulumi.Input<inputs.privatelink.VpcEndpointServiceResource>[]>; /** * The domain of service. */ serviceDomain?: pulumi.Input<string>; /** * The Id of service. */ serviceId?: pulumi.Input<string>; /** * The name of service. */ serviceName?: pulumi.Input<string>; /** * The resource type of service. */ serviceResourceType?: pulumi.Input<string>; /** * The type of service. */ serviceType?: pulumi.Input<string>; /** * The status of service. */ status?: pulumi.Input<string>; /** * The update time of service. */ updateTime?: pulumi.Input<string>; /** * The IDs of zones. */ zoneIds?: pulumi.Input<pulumi.Input<string>[]>; } /** * The set of arguments for constructing a VpcEndpointService resource. */ export interface VpcEndpointServiceArgs { /** * Whether auto accept node connect. */ autoAcceptEnabled?: pulumi.Input<boolean>; /** * The description of service. */ description?: pulumi.Input<string>; /** * The resources info. When create vpc endpoint service, the resource must exist. It is recommended to bind resources using the resources' field in this resource instead of using vpc_endpoint_service_resource. For operations that jointly use this resource and vpc_endpoint_service_resource, use lifecycle ignoreChanges to suppress changes to the resources field. */ resources: pulumi.Input<pulumi.Input<inputs.privatelink.VpcEndpointServiceResource>[]>; }