import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This resource provides the Action Create Zone From Zone File resource in Oracle Cloud Infrastructure DNS service. * * Creates a new zone from a zone file in the specified compartment. Not supported for private zones. * * After the zone has been created, it should be further managed by importing it to an `oci.Dns.Zone` resource. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testActionCreateZoneFromZoneFile = new oci.dns.ActionCreateZoneFromZoneFile("test_action_create_zone_from_zone_file", { * createZoneFromZoneFileDetails: actionCreateZoneFromZoneFileCreateZoneFromZoneFileDetails, * compartmentId: compartmentId, * scope: actionCreateZoneFromZoneFileScope, * viewId: testView.id, * }); * ``` * * ## Import * * ActionCreateZoneFromZoneFile can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:Dns/actionCreateZoneFromZoneFile:ActionCreateZoneFromZoneFile test_action_create_zone_from_zone_file "id" * ``` */ export declare class ActionCreateZoneFromZoneFile extends pulumi.CustomResource { /** * Get an existing ActionCreateZoneFromZoneFile 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?: ActionCreateZoneFromZoneFileState, opts?: pulumi.CustomResourceOptions): ActionCreateZoneFromZoneFile; /** * Returns true if the given object is an instance of ActionCreateZoneFromZoneFile. 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 ActionCreateZoneFromZoneFile; /** * The OCID of the compartment the resource belongs to. */ readonly compartmentId: pulumi.Output; /** * The zone file contents. */ readonly createZoneFromZoneFileDetails: pulumi.Output; /** * 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). */ readonly definedTags: pulumi.Output<{ [key: string]: string; }>; readonly dnssecConfigs: pulumi.Output; readonly dnssecState: pulumi.Output; /** * External secondary servers for the zone. This field is currently not supported when `zoneType` is `SECONDARY` or `scope` is `PRIVATE`. */ readonly externalDownstreams: pulumi.Output; /** * External master servers for the zone. `externalMasters` becomes a required parameter when the `zoneType` value is `SECONDARY`. */ readonly externalMasters: pulumi.Output; /** * 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). */ 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 name of the zone. */ readonly name: pulumi.Output; /** * The authoritative nameservers for the zone. */ readonly nameservers: 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 serial of the zone. As seen in the zone's SOA record. */ readonly serial: pulumi.Output; /** * The current state of the zone 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; /** * Version is the never-repeating, totally-orderable, version of the zone, from which the serial field of the zone's SOA record is derived. */ readonly version: pulumi.Output; /** * The OCID of the view the resource is associated with. * * ** IMPORTANT ** * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values */ readonly viewId: pulumi.Output; /** * The Oracle Cloud Infrastructure nameservers that transfer the zone data with external nameservers. */ readonly zoneTransferServers: pulumi.Output; /** * The type of the zone. Must be either `PRIMARY` or `SECONDARY`. `SECONDARY` is only supported for GLOBAL zones. */ readonly zoneType: pulumi.Output; /** * Create a ActionCreateZoneFromZoneFile 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: ActionCreateZoneFromZoneFileArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ActionCreateZoneFromZoneFile resources. */ export interface ActionCreateZoneFromZoneFileState { /** * The OCID of the compartment the resource belongs to. */ compartmentId?: pulumi.Input; /** * The zone file contents. */ createZoneFromZoneFileDetails?: pulumi.Input; /** * 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). */ definedTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; dnssecConfigs?: pulumi.Input[] | undefined>; dnssecState?: pulumi.Input; /** * External secondary servers for the zone. This field is currently not supported when `zoneType` is `SECONDARY` or `scope` is `PRIVATE`. */ externalDownstreams?: pulumi.Input[] | undefined>; /** * External master servers for the zone. `externalMasters` becomes a required parameter when the `zoneType` value is `SECONDARY`. */ externalMasters?: pulumi.Input[] | undefined>; /** * 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). */ 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 name of the zone. */ name?: pulumi.Input; /** * The authoritative nameservers for the zone. */ nameservers?: 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 serial of the zone. As seen in the zone's SOA record. */ serial?: pulumi.Input; /** * The current state of the zone 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; /** * Version is the never-repeating, totally-orderable, version of the zone, from which the serial field of the zone's SOA record is derived. */ version?: pulumi.Input; /** * The OCID of the view the resource is associated with. * * ** IMPORTANT ** * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values */ viewId?: pulumi.Input; /** * The Oracle Cloud Infrastructure nameservers that transfer the zone data with external nameservers. */ zoneTransferServers?: pulumi.Input[] | undefined>; /** * The type of the zone. Must be either `PRIMARY` or `SECONDARY`. `SECONDARY` is only supported for GLOBAL zones. */ zoneType?: pulumi.Input; } /** * The set of arguments for constructing a ActionCreateZoneFromZoneFile resource. */ export interface ActionCreateZoneFromZoneFileArgs { /** * The OCID of the compartment the resource belongs to. */ compartmentId: pulumi.Input; /** * The zone file contents. */ createZoneFromZoneFileDetails: pulumi.Input; /** * Specifies to operate only on resources that have a matching DNS scope. */ scope?: pulumi.Input; /** * The OCID of the view the resource is associated with. * * ** IMPORTANT ** * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values */ viewId?: pulumi.Input; } //# sourceMappingURL=actionCreateZoneFromZoneFile.d.ts.map