import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This resource provides the Resolver resource in Oracle Cloud Infrastructure DNS service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/dns/latest/Resolver * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/dns * * Updates the specified resolver with your new information. * * Note: Resolvers are associated with VCNs and created when a VCN is created. Wait until the created VCN's state shows as Available in the OCI Console before updating DNS resolver properties. * A VCN cannot be deleted while its resolver has resolver endpoints. Additionally, a resolver endpoint cannot be deleted if it is referenced in the resolver's rules. To remove rules from a resolver, update the resolver resource. * * Destroy behavior: This resource does not delete the underlying DNS Resolver. The resolver itself is deleted only when the attached VCN is deleted. When this Terraform resource is destroyed, managed properties on the resolver (for example, attached views and rules) are cleared so the VCN can be deleted. * * Default view behavior on VCN delete: If the resolver's default view contains customer-created zones, deleting the VCN (which deletes the resolver) can convert that default view into a non-protected regular view. That view may persist even if it was never imported into Terraform state. To avoid orphaned resources, either delete the zones from the default view before deleting the VCN, or plan to clean up the resulting view afterward. * * ## Import * * Resolvers can be imported using their OCID, e.g. * * ```sh * $ pulumi import oci:Dns/resolver:Resolver test_resolver "id" * ``` */ export declare class Resolver extends pulumi.CustomResource { /** * Get an existing Resolver 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, state?: ResolverState, opts?: pulumi.CustomResourceOptions): Resolver; /** * Returns true if the given object is an instance of Resolver. 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 Resolver; /** * The OCID of the attached VCN. */ readonly attachedVcnId: pulumi.Output; /** * (Updatable) The attached views. Views are evaluated in order. */ readonly attachedViews: pulumi.Output; /** * (Updatable) The OCID of the owning compartment. */ readonly compartmentId: pulumi.Output; /** * The OCID of the default view. */ readonly defaultViewId: pulumi.Output; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). * * **Example:** `{"Operations": {"CostCenter": "42"}}` */ readonly definedTags: pulumi.Output<{ [key: string]: string; }>; /** * (Updatable) The display name of the resolver. */ readonly displayName: pulumi.Output; /** * Read-only array of endpoints for the resolver. */ readonly endpoints: pulumi.Output; /** * (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). * * **Example:** `{"Department": "Finance"}` */ readonly freeformTags: pulumi.Output<{ [key: string]: string; }>; /** * A Boolean flag indicating whether or not parts of the resource are unable to be explicitly managed. */ readonly isProtected: pulumi.Output; /** * The OCID of the target resolver. */ readonly resolverId: pulumi.Output; /** * (Updatable) Rules for the resolver. Rules are evaluated in order, and only the first matching rule will have its action applied. */ readonly rules: pulumi.Output; /** * Specifies to operate only on resources that have a matching DNS scope. */ readonly scope: pulumi.Output; /** * The canonical absolute URL of the resource. */ readonly self: pulumi.Output; /** * The current state of the resource. */ readonly state: pulumi.Output; /** * The date and time the resource was created in "YYYY-MM-ddThh:mm:ssZ" format with a Z offset, as defined by RFC 3339. */ readonly timeCreated: pulumi.Output; /** * The date and time the resource was last updated in "YYYY-MM-ddThh:mm:ssZ" format with a Z offset, as defined by RFC 3339. */ readonly timeUpdated: pulumi.Output; /** * Create a Resolver 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: ResolverArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Resolver resources. */ export interface ResolverState { /** * The OCID of the attached VCN. */ attachedVcnId?: pulumi.Input; /** * (Updatable) The attached views. Views are evaluated in order. */ attachedViews?: pulumi.Input[] | undefined>; /** * (Updatable) The OCID of the owning compartment. */ compartmentId?: pulumi.Input; /** * The OCID of the default view. */ defaultViewId?: pulumi.Input; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). * * **Example:** `{"Operations": {"CostCenter": "42"}}` */ definedTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) The display name of the resolver. */ displayName?: pulumi.Input; /** * Read-only array of endpoints for the resolver. */ endpoints?: pulumi.Input[] | undefined>; /** * (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). * * **Example:** `{"Department": "Finance"}` */ freeformTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * A Boolean flag indicating whether or not parts of the resource are unable to be explicitly managed. */ isProtected?: pulumi.Input; /** * The OCID of the target resolver. */ resolverId?: pulumi.Input; /** * (Updatable) Rules for the resolver. Rules are evaluated in order, and only the first matching rule will have its action applied. */ rules?: pulumi.Input[] | undefined>; /** * Specifies to operate only on resources that have a matching DNS scope. */ scope?: pulumi.Input; /** * The canonical absolute URL of the resource. */ self?: pulumi.Input; /** * The current state of the resource. */ state?: pulumi.Input; /** * The date and time the resource was created in "YYYY-MM-ddThh:mm:ssZ" format with a Z offset, as defined by RFC 3339. */ timeCreated?: pulumi.Input; /** * The date and time the resource was last updated in "YYYY-MM-ddThh:mm:ssZ" format with a Z offset, as defined by RFC 3339. */ timeUpdated?: pulumi.Input; } /** * The set of arguments for constructing a Resolver resource. */ export interface ResolverArgs { /** * (Updatable) The attached views. Views are evaluated in order. */ attachedViews?: pulumi.Input[] | undefined>; /** * (Updatable) The OCID of the owning compartment. */ compartmentId?: pulumi.Input; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). * * **Example:** `{"Operations": {"CostCenter": "42"}}` */ definedTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) The display name of the resolver. */ displayName?: pulumi.Input; /** * (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). * * **Example:** `{"Department": "Finance"}` */ freeformTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * The OCID of the target resolver. */ resolverId: pulumi.Input; /** * (Updatable) Rules for the resolver. Rules are evaluated in order, and only the first matching rule will have its action applied. */ rules?: pulumi.Input[] | undefined>; /** * Specifies to operate only on resources that have a matching DNS scope. */ scope?: pulumi.Input; } //# sourceMappingURL=resolver.d.ts.map