UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

199 lines (198 loc) 7.69 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Provides a resource to manage private zone resolver endpoint * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@volcengine/pulumi"; * * const foo = new volcengine.private_zone.ResolverEndpoint("foo", { * ipConfigs: [ * { * azId: "cn-beijing-a", * ip: "172.16.0.2", * subnetId: "subnet-mj2o4co2m2v45smt1bx1****", * }, * { * azId: "cn-beijing-a", * ip: "172.16.0.3", * subnetId: "subnet-mj2o4co2m2v45smt1bx1****", * }, * { * azId: "cn-beijing-a", * ip: "172.16.0.4", * subnetId: "subnet-mj2o4co2m2v45smt1bx1****", * }, * { * azId: "cn-beijing-a", * ip: "172.16.0.5", * subnetId: "subnet-mj2o4co2m2v45smt1bx1****", * }, * ], * projectName: "default", * tags: [{ * key: "k1", * value: "v1", * }], * vpcId: "vpc-13f9uuuqfdjb43n6nu5p1****", * vpcRegion: "cn-beijing", * }); * ``` * * ## Import * * PrivateZoneResolverEndpoint can be imported using the id, e.g. * * ```sh * $ pulumi import volcengine:private_zone/resolverEndpoint:ResolverEndpoint default resource_id * ``` */ export declare class ResolverEndpoint extends pulumi.CustomResource { /** * Get an existing ResolverEndpoint 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?: ResolverEndpointState, opts?: pulumi.CustomResourceOptions): ResolverEndpoint; /** * Returns true if the given object is an instance of ResolverEndpoint. 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 ResolverEndpoint; /** * DNS request forwarding direction for terminal nodes. OUTBOUND: (default) Outbound terminal nodes forward DNS query requests from within the VPC to external DNS servers. INBOUND: Inbound terminal nodes forward DNS query requests from external sources to resolvers. */ readonly direction: pulumi.Output<string | undefined>; /** * Availability zones, subnets, and IP configurations of terminal nodes. */ readonly ipConfigs: pulumi.Output<outputs.private_zone.ResolverEndpointIpConfig[]>; /** * The name of the private zone resolver endpoint. */ readonly name: pulumi.Output<string>; /** * The project name of the private zone resolver endpoint. */ readonly projectName: pulumi.Output<string>; /** * The security group ID of the endpoint. */ readonly securityGroupId: pulumi.Output<string>; /** * Tags. */ readonly tags: pulumi.Output<outputs.private_zone.ResolverEndpointTag[] | undefined>; /** * The VPC ID of the endpoint. */ readonly vpcId: pulumi.Output<string>; /** * The VPC region of the endpoint. */ readonly vpcRegion: pulumi.Output<string>; /** * The vpc trns of the private zone resolver endpoint. Format: trn:vpc:region:accountId:vpc/vpcId. This field is only effected when creating resource. * When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignoreChanges ignore changes in fields. */ readonly vpcTrns: pulumi.Output<string[] | undefined>; /** * Create a ResolverEndpoint 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: ResolverEndpointArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ResolverEndpoint resources. */ export interface ResolverEndpointState { /** * DNS request forwarding direction for terminal nodes. OUTBOUND: (default) Outbound terminal nodes forward DNS query requests from within the VPC to external DNS servers. INBOUND: Inbound terminal nodes forward DNS query requests from external sources to resolvers. */ direction?: pulumi.Input<string>; /** * Availability zones, subnets, and IP configurations of terminal nodes. */ ipConfigs?: pulumi.Input<pulumi.Input<inputs.private_zone.ResolverEndpointIpConfig>[]>; /** * The name of the private zone resolver endpoint. */ name?: pulumi.Input<string>; /** * The project name of the private zone resolver endpoint. */ projectName?: pulumi.Input<string>; /** * The security group ID of the endpoint. */ securityGroupId?: pulumi.Input<string>; /** * Tags. */ tags?: pulumi.Input<pulumi.Input<inputs.private_zone.ResolverEndpointTag>[]>; /** * The VPC ID of the endpoint. */ vpcId?: pulumi.Input<string>; /** * The VPC region of the endpoint. */ vpcRegion?: pulumi.Input<string>; /** * The vpc trns of the private zone resolver endpoint. Format: trn:vpc:region:accountId:vpc/vpcId. This field is only effected when creating resource. * When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignoreChanges ignore changes in fields. */ vpcTrns?: pulumi.Input<pulumi.Input<string>[]>; } /** * The set of arguments for constructing a ResolverEndpoint resource. */ export interface ResolverEndpointArgs { /** * DNS request forwarding direction for terminal nodes. OUTBOUND: (default) Outbound terminal nodes forward DNS query requests from within the VPC to external DNS servers. INBOUND: Inbound terminal nodes forward DNS query requests from external sources to resolvers. */ direction?: pulumi.Input<string>; /** * Availability zones, subnets, and IP configurations of terminal nodes. */ ipConfigs: pulumi.Input<pulumi.Input<inputs.private_zone.ResolverEndpointIpConfig>[]>; /** * The name of the private zone resolver endpoint. */ name?: pulumi.Input<string>; /** * The project name of the private zone resolver endpoint. */ projectName?: pulumi.Input<string>; /** * The security group ID of the endpoint. */ securityGroupId?: pulumi.Input<string>; /** * Tags. */ tags?: pulumi.Input<pulumi.Input<inputs.private_zone.ResolverEndpointTag>[]>; /** * The VPC ID of the endpoint. */ vpcId: pulumi.Input<string>; /** * The VPC region of the endpoint. */ vpcRegion: pulumi.Input<string>; /** * The vpc trns of the private zone resolver endpoint. Format: trn:vpc:region:accountId:vpc/vpcId. This field is only effected when creating resource. * When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignoreChanges ignore changes in fields. */ vpcTrns?: pulumi.Input<pulumi.Input<string>[]>; }