import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Enables you to manage DNS CAA Records within Azure DNS. * * > **Note:** [The Azure DNS API has a throttle limit of 500 read (GET) operations per 5 minutes](https://docs.microsoft.com/azure/azure-resource-manager/management/request-limits-and-throttling#network-throttling) - whilst the default read timeouts will work for most cases - in larger configurations you may need to set a larger read timeout then the default 5min. Although, we'd generally recommend that you split the resources out into smaller Terraform configurations to avoid the problem entirely. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = new azure.core.ResourceGroup("example", { * name: "example-resources", * location: "West Europe", * }); * const exampleZone = new azure.dns.Zone("example", { * name: "mydomain.com", * resourceGroupName: example.name, * }); * const exampleCaaRecord = new azure.dns.CaaRecord("example", { * name: "test", * zoneName: exampleZone.name, * resourceGroupName: example.name, * ttl: 300, * records: [ * { * flags: 0, * tag: "issue", * value: "example.com", * }, * { * flags: 0, * tag: "issue", * value: "example.net", * }, * { * flags: 0, * tag: "issuewild", * value: ";", * }, * { * flags: 0, * tag: "iodef", * value: "mailto:user@nonexisting.tld", * }, * ], * tags: { * Environment: "Production", * }, * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.Network` - 2018-05-01 * * ## Import * * CAA records can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:dns/caaRecord:CaaRecord example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Network/dnsZones/zone1/CAA/myrecord1 * ``` */ export declare class CaaRecord extends pulumi.CustomResource { /** * Get an existing CaaRecord 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?: CaaRecordState, opts?: pulumi.CustomResourceOptions): CaaRecord; /** * Returns true if the given object is an instance of CaaRecord. 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 CaaRecord; /** * The FQDN of the DNS CAA Record. */ readonly fqdn: pulumi.Output; /** * The name of the DNS CAA Record. If you are creating the record in the apex of the zone use `"@"` as the name. Changing this forces a new resource to be created. */ readonly name: pulumi.Output; /** * A list of values that make up the CAA record. Each `record` block supports fields documented below. */ readonly records: pulumi.Output; /** * Specifies the resource group where the DNS Zone (parent resource) exists. Changing this forces a new resource to be created. */ readonly resourceGroupName: pulumi.Output; /** * A mapping of tags to assign to the resource. */ readonly tags: pulumi.Output<{ [key: string]: string; } | undefined>; /** * The Time To Live (TTL) of the DNS record in seconds. */ readonly ttl: pulumi.Output; /** * Specifies the DNS Zone where the resource exists. Changing this forces a new resource to be created. */ readonly zoneName: pulumi.Output; /** * Create a CaaRecord 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: CaaRecordArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering CaaRecord resources. */ export interface CaaRecordState { /** * The FQDN of the DNS CAA Record. */ fqdn?: pulumi.Input; /** * The name of the DNS CAA Record. If you are creating the record in the apex of the zone use `"@"` as the name. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * A list of values that make up the CAA record. Each `record` block supports fields documented below. */ records?: pulumi.Input[]>; /** * Specifies the resource group where the DNS Zone (parent resource) exists. Changing this forces a new resource to be created. */ resourceGroupName?: pulumi.Input; /** * A mapping of tags to assign to the resource. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * The Time To Live (TTL) of the DNS record in seconds. */ ttl?: pulumi.Input; /** * Specifies the DNS Zone where the resource exists. Changing this forces a new resource to be created. */ zoneName?: pulumi.Input; } /** * The set of arguments for constructing a CaaRecord resource. */ export interface CaaRecordArgs { /** * The name of the DNS CAA Record. If you are creating the record in the apex of the zone use `"@"` as the name. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * A list of values that make up the CAA record. Each `record` block supports fields documented below. */ records: pulumi.Input[]>; /** * Specifies the resource group where the DNS Zone (parent resource) exists. Changing this forces a new resource to be created. */ resourceGroupName: pulumi.Input; /** * A mapping of tags to assign to the resource. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * The Time To Live (TTL) of the DNS record in seconds. */ ttl: pulumi.Input; /** * Specifies the DNS Zone where the resource exists. Changing this forces a new resource to be created. */ zoneName: pulumi.Input; }