UNPKG

@huaweicloudos/pulumi

Version:

A Pulumi package for creating and managing Huaweicloud cloud resources.

139 lines (138 loc) 4.88 kB
import * as pulumi from "@pulumi/pulumi"; /** * Manages a CFW DNS resolution resource within HuaweiCloud. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as pulumi from "@huaweicloudos/pulumi"; * * const config = new pulumi.Config(); * const fwInstanceId = config.requireObject("fwInstanceId"); * const defaultDnsServers = config.requireObject("defaultDnsServers"); * const customDnsServers = config.requireObject("customDnsServers"); * const healthCheckDomainName = config.requireObject("healthCheckDomainName"); * const test = new huaweicloud.cfw.DnsResolution("test", { * fwInstanceId: fwInstanceId, * defaultDnsServers: defaultDnsServers, * customDnsServers: customDnsServers, * healthCheckDomainName: healthCheckDomainName, * }); * ``` * * ## Import * * The DNS resolution resource can be imported using the firewall instance ID, e.g. bash * * ```sh * $ pulumi import huaweicloud:Cfw/dnsResolution:DnsResolution test <fw_instance_id> * ``` */ export declare class DnsResolution extends pulumi.CustomResource { /** * Get an existing DnsResolution 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?: DnsResolutionState, opts?: pulumi.CustomResourceOptions): DnsResolution; /** * Returns true if the given object is an instance of DnsResolution. 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 DnsResolution; /** * The custom DNS servers. * Currently, only two custom DNS server addresses can be specified. */ readonly customDnsServers: pulumi.Output<string[] | undefined>; /** * The default DNS servers. */ readonly defaultDnsServers: pulumi.Output<string[] | undefined>; /** * The ID of the firewall. * Changing this creates a new resource. */ readonly fwInstanceId: pulumi.Output<string>; /** * The health check domain name. */ readonly healthCheckDomainName: pulumi.Output<string>; /** * Specifies the region in which to create the resource. * If omitted, the provider-level region will be used. * Changing this creates a new resource. */ readonly region: pulumi.Output<string>; /** * Create a DnsResolution 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: DnsResolutionArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering DnsResolution resources. */ export interface DnsResolutionState { /** * The custom DNS servers. * Currently, only two custom DNS server addresses can be specified. */ customDnsServers?: pulumi.Input<pulumi.Input<string>[]>; /** * The default DNS servers. */ defaultDnsServers?: pulumi.Input<pulumi.Input<string>[]>; /** * The ID of the firewall. * Changing this creates a new resource. */ fwInstanceId?: pulumi.Input<string>; /** * The health check domain name. */ healthCheckDomainName?: pulumi.Input<string>; /** * Specifies the region in which to create the resource. * If omitted, the provider-level region will be used. * Changing this creates a new resource. */ region?: pulumi.Input<string>; } /** * The set of arguments for constructing a DnsResolution resource. */ export interface DnsResolutionArgs { /** * The custom DNS servers. * Currently, only two custom DNS server addresses can be specified. */ customDnsServers?: pulumi.Input<pulumi.Input<string>[]>; /** * The default DNS servers. */ defaultDnsServers?: pulumi.Input<pulumi.Input<string>[]>; /** * The ID of the firewall. * Changing this creates a new resource. */ fwInstanceId: pulumi.Input<string>; /** * The health check domain name. */ healthCheckDomainName?: pulumi.Input<string>; /** * Specifies the region in which to create the resource. * If omitted, the provider-level region will be used. * Changing this creates a new resource. */ region?: pulumi.Input<string>; }