@pulumi/azure-native
Version:
[](https://slack.pulumi.com) [](https://npmjs.com/package/@pulumi/azure-native) [ • 8.35 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
/**
* Describes a DNS record set (a collection of DNS records with the same name and type).
*
* Uses Azure REST API version 2023-07-01-preview.
*
* Other available API versions: 2015-05-04-preview, 2016-04-01, 2017-09-01, 2017-10-01, 2018-03-01-preview, 2018-05-01. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native dns [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
*/
export declare class RecordSet extends pulumi.CustomResource {
/**
* Get an existing RecordSet 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 opts Optional settings to control the behavior of the CustomResource.
*/
static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): RecordSet;
/**
* Returns true if the given object is an instance of RecordSet. 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 RecordSet;
/**
* The list of A records in the record set.
*/
readonly aRecords: pulumi.Output<outputs.dns.ARecordResponse[] | undefined>;
/**
* The list of AAAA records in the record set.
*/
readonly aaaaRecords: pulumi.Output<outputs.dns.AaaaRecordResponse[] | undefined>;
/**
* The Azure API version of the resource.
*/
readonly azureApiVersion: pulumi.Output<string>;
/**
* The list of CAA records in the record set.
*/
readonly caaRecords: pulumi.Output<outputs.dns.CaaRecordResponse[] | undefined>;
/**
* The CNAME record in the record set.
*/
readonly cnameRecord: pulumi.Output<outputs.dns.CnameRecordResponse | undefined>;
/**
* The list of DS records in the record set.
*/
readonly dsRecords: pulumi.Output<outputs.dns.DsRecordResponse[] | undefined>;
/**
* The etag of the record set.
*/
readonly etag: pulumi.Output<string | undefined>;
/**
* Fully qualified domain name of the record set.
*/
readonly fqdn: pulumi.Output<string>;
/**
* The metadata attached to the record set.
*/
readonly metadata: pulumi.Output<{
[key: string]: string;
} | undefined>;
/**
* The list of MX records in the record set.
*/
readonly mxRecords: pulumi.Output<outputs.dns.MxRecordResponse[] | undefined>;
/**
* The name of the resource
*/
readonly name: pulumi.Output<string>;
/**
* The list of NAPTR records in the record set.
*/
readonly naptrRecords: pulumi.Output<outputs.dns.NaptrRecordResponse[] | undefined>;
/**
* The list of NS records in the record set.
*/
readonly nsRecords: pulumi.Output<outputs.dns.NsRecordResponse[] | undefined>;
/**
* provisioning State of the record set.
*/
readonly provisioningState: pulumi.Output<string>;
/**
* The list of PTR records in the record set.
*/
readonly ptrRecords: pulumi.Output<outputs.dns.PtrRecordResponse[] | undefined>;
/**
* The SOA record in the record set.
*/
readonly soaRecord: pulumi.Output<outputs.dns.SoaRecordResponse | undefined>;
/**
* The list of SRV records in the record set.
*/
readonly srvRecords: pulumi.Output<outputs.dns.SrvRecordResponse[] | undefined>;
/**
* Azure Resource Manager metadata containing createdBy and modifiedBy information.
*/
readonly systemData: pulumi.Output<outputs.dns.SystemDataResponse>;
/**
* A reference to an azure resource from where the dns resource value is taken.
*/
readonly targetResource: pulumi.Output<outputs.dns.SubResourceResponse | undefined>;
/**
* The list of TLSA records in the record set.
*/
readonly tlsaRecords: pulumi.Output<outputs.dns.TlsaRecordResponse[] | undefined>;
/**
* A reference to an azure traffic manager profile resource from where the dns resource value is taken.
*/
readonly trafficManagementProfile: pulumi.Output<outputs.dns.SubResourceResponse | undefined>;
/**
* The TTL (time-to-live) of the records in the record set.
*/
readonly ttl: pulumi.Output<number | undefined>;
/**
* The list of TXT records in the record set.
*/
readonly txtRecords: pulumi.Output<outputs.dns.TxtRecordResponse[] | undefined>;
/**
* The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
*/
readonly type: pulumi.Output<string>;
/**
* Create a RecordSet 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: RecordSetArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* The set of arguments for constructing a RecordSet resource.
*/
export interface RecordSetArgs {
/**
* The list of A records in the record set.
*/
aRecords?: pulumi.Input<pulumi.Input<inputs.dns.ARecordArgs>[]>;
/**
* The list of AAAA records in the record set.
*/
aaaaRecords?: pulumi.Input<pulumi.Input<inputs.dns.AaaaRecordArgs>[]>;
/**
* The list of CAA records in the record set.
*/
caaRecords?: pulumi.Input<pulumi.Input<inputs.dns.CaaRecordArgs>[]>;
/**
* The CNAME record in the record set.
*/
cnameRecord?: pulumi.Input<inputs.dns.CnameRecordArgs>;
/**
* The list of DS records in the record set.
*/
dsRecords?: pulumi.Input<pulumi.Input<inputs.dns.DsRecordArgs>[]>;
/**
* The metadata attached to the record set.
*/
metadata?: pulumi.Input<{
[key: string]: pulumi.Input<string>;
}>;
/**
* The list of MX records in the record set.
*/
mxRecords?: pulumi.Input<pulumi.Input<inputs.dns.MxRecordArgs>[]>;
/**
* The list of NAPTR records in the record set.
*/
naptrRecords?: pulumi.Input<pulumi.Input<inputs.dns.NaptrRecordArgs>[]>;
/**
* The list of NS records in the record set.
*/
nsRecords?: pulumi.Input<pulumi.Input<inputs.dns.NsRecordArgs>[]>;
/**
* The list of PTR records in the record set.
*/
ptrRecords?: pulumi.Input<pulumi.Input<inputs.dns.PtrRecordArgs>[]>;
/**
* The type of DNS record in this record set.
*/
recordType: pulumi.Input<string>;
/**
* The name of the record set, relative to the name of the zone.
*/
relativeRecordSetName?: pulumi.Input<string>;
/**
* The name of the resource group. The name is case insensitive.
*/
resourceGroupName: pulumi.Input<string>;
/**
* The SOA record in the record set.
*/
soaRecord?: pulumi.Input<inputs.dns.SoaRecordArgs>;
/**
* The list of SRV records in the record set.
*/
srvRecords?: pulumi.Input<pulumi.Input<inputs.dns.SrvRecordArgs>[]>;
/**
* A reference to an azure resource from where the dns resource value is taken.
*/
targetResource?: pulumi.Input<inputs.dns.SubResourceArgs>;
/**
* The list of TLSA records in the record set.
*/
tlsaRecords?: pulumi.Input<pulumi.Input<inputs.dns.TlsaRecordArgs>[]>;
/**
* A reference to an azure traffic manager profile resource from where the dns resource value is taken.
*/
trafficManagementProfile?: pulumi.Input<inputs.dns.SubResourceArgs>;
/**
* The TTL (time-to-live) of the records in the record set.
*/
ttl?: pulumi.Input<number>;
/**
* The list of TXT records in the record set.
*/
txtRecords?: pulumi.Input<pulumi.Input<inputs.dns.TxtRecordArgs>[]>;
/**
* The name of the DNS zone (without a terminating dot).
*/
zoneName: pulumi.Input<string>;
}