dns

package
v5.36.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 2, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ARecord

type ARecord struct {
	pulumi.CustomResourceState

	// The FQDN of the DNS A Record.
	Fqdn pulumi.StringOutput `pulumi:"fqdn"`
	// The name of the DNS A Record. Changing this forces a new resource to be created.
	Name pulumi.StringOutput `pulumi:"name"`
	// List of IPv4 Addresses. Conflicts with `targetResourceId`.
	Records pulumi.StringArrayOutput `pulumi:"records"`
	// Specifies the resource group where the DNS Zone (parent resource) exists. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"`
	// A mapping of tags to assign to the resource.
	Tags pulumi.StringMapOutput `pulumi:"tags"`
	// The Azure resource id of the target object. Conflicts with `records`.
	TargetResourceId pulumi.StringPtrOutput `pulumi:"targetResourceId"`
	// The Time To Live (TTL) of the DNS record in seconds.
	Ttl pulumi.IntOutput `pulumi:"ttl"`
	// Specifies the DNS Zone where the resource exists. Changing this forces a new resource to be created.
	ZoneName pulumi.StringOutput `pulumi:"zoneName"`
}

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/dns"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		exampleZone, err := dns.NewZone(ctx, "exampleZone", &dns.ZoneArgs{
			ResourceGroupName: exampleResourceGroup.Name,
		})
		if err != nil {
			return err
		}
		_, err = dns.NewARecord(ctx, "exampleARecord", &dns.ARecordArgs{
			ZoneName:          exampleZone.Name,
			ResourceGroupName: exampleResourceGroup.Name,
			Ttl:               pulumi.Int(300),
			Records: pulumi.StringArray{
				pulumi.String("10.0.180.17"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` ### Alias Record)

```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/dns"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/network"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		exampleZone, err := dns.NewZone(ctx, "exampleZone", &dns.ZoneArgs{
			ResourceGroupName: exampleResourceGroup.Name,
		})
		if err != nil {
			return err
		}
		examplePublicIp, err := network.NewPublicIp(ctx, "examplePublicIp", &network.PublicIpArgs{
			Location:          exampleResourceGroup.Location,
			ResourceGroupName: exampleResourceGroup.Name,
			AllocationMethod:  pulumi.String("Dynamic"),
			IpVersion:         pulumi.String("IPv4"),
		})
		if err != nil {
			return err
		}
		_, err = dns.NewARecord(ctx, "exampleARecord", &dns.ARecordArgs{
			ZoneName:          exampleZone.Name,
			ResourceGroupName: exampleResourceGroup.Name,
			Ttl:               pulumi.Int(300),
			TargetResourceId:  examplePublicIp.ID(),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

A records can be imported using the `resource id`, e.g.

```sh

$ pulumi import azure:dns/aRecord:ARecord example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Network/dnsZones/zone1/A/myrecord1

```

func GetARecord

func GetARecord(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ARecordState, opts ...pulumi.ResourceOption) (*ARecord, error)

GetARecord gets an existing ARecord resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewARecord

func NewARecord(ctx *pulumi.Context,
	name string, args *ARecordArgs, opts ...pulumi.ResourceOption) (*ARecord, error)

NewARecord registers a new resource with the given unique name, arguments, and options.

func (*ARecord) ElementType

func (*ARecord) ElementType() reflect.Type

func (*ARecord) ToARecordOutput

func (i *ARecord) ToARecordOutput() ARecordOutput

func (*ARecord) ToARecordOutputWithContext

func (i *ARecord) ToARecordOutputWithContext(ctx context.Context) ARecordOutput

type ARecordArgs

type ARecordArgs struct {
	// The name of the DNS A Record. Changing this forces a new resource to be created.
	Name pulumi.StringPtrInput
	// List of IPv4 Addresses. Conflicts with `targetResourceId`.
	Records pulumi.StringArrayInput
	// Specifies the resource group where the DNS Zone (parent resource) exists. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringInput
	// A mapping of tags to assign to the resource.
	Tags pulumi.StringMapInput
	// The Azure resource id of the target object. Conflicts with `records`.
	TargetResourceId pulumi.StringPtrInput
	// The Time To Live (TTL) of the DNS record in seconds.
	Ttl pulumi.IntInput
	// Specifies the DNS Zone where the resource exists. Changing this forces a new resource to be created.
	ZoneName pulumi.StringInput
}

The set of arguments for constructing a ARecord resource.

func (ARecordArgs) ElementType

func (ARecordArgs) ElementType() reflect.Type

type ARecordArray

type ARecordArray []ARecordInput

func (ARecordArray) ElementType

func (ARecordArray) ElementType() reflect.Type

func (ARecordArray) ToARecordArrayOutput

func (i ARecordArray) ToARecordArrayOutput() ARecordArrayOutput

func (ARecordArray) ToARecordArrayOutputWithContext

func (i ARecordArray) ToARecordArrayOutputWithContext(ctx context.Context) ARecordArrayOutput

type ARecordArrayInput

type ARecordArrayInput interface {
	pulumi.Input

	ToARecordArrayOutput() ARecordArrayOutput
	ToARecordArrayOutputWithContext(context.Context) ARecordArrayOutput
}

ARecordArrayInput is an input type that accepts ARecordArray and ARecordArrayOutput values. You can construct a concrete instance of `ARecordArrayInput` via:

ARecordArray{ ARecordArgs{...} }

type ARecordArrayOutput

type ARecordArrayOutput struct{ *pulumi.OutputState }

func (ARecordArrayOutput) ElementType

func (ARecordArrayOutput) ElementType() reflect.Type

func (ARecordArrayOutput) Index

func (ARecordArrayOutput) ToARecordArrayOutput

func (o ARecordArrayOutput) ToARecordArrayOutput() ARecordArrayOutput

func (ARecordArrayOutput) ToARecordArrayOutputWithContext

func (o ARecordArrayOutput) ToARecordArrayOutputWithContext(ctx context.Context) ARecordArrayOutput

type ARecordInput

type ARecordInput interface {
	pulumi.Input

	ToARecordOutput() ARecordOutput
	ToARecordOutputWithContext(ctx context.Context) ARecordOutput
}

type ARecordMap

type ARecordMap map[string]ARecordInput

func (ARecordMap) ElementType

func (ARecordMap) ElementType() reflect.Type

func (ARecordMap) ToARecordMapOutput

func (i ARecordMap) ToARecordMapOutput() ARecordMapOutput

func (ARecordMap) ToARecordMapOutputWithContext

func (i ARecordMap) ToARecordMapOutputWithContext(ctx context.Context) ARecordMapOutput

type ARecordMapInput

type ARecordMapInput interface {
	pulumi.Input

	ToARecordMapOutput() ARecordMapOutput
	ToARecordMapOutputWithContext(context.Context) ARecordMapOutput
}

ARecordMapInput is an input type that accepts ARecordMap and ARecordMapOutput values. You can construct a concrete instance of `ARecordMapInput` via:

ARecordMap{ "key": ARecordArgs{...} }

type ARecordMapOutput

type ARecordMapOutput struct{ *pulumi.OutputState }

func (ARecordMapOutput) ElementType

func (ARecordMapOutput) ElementType() reflect.Type

func (ARecordMapOutput) MapIndex

func (ARecordMapOutput) ToARecordMapOutput

func (o ARecordMapOutput) ToARecordMapOutput() ARecordMapOutput

func (ARecordMapOutput) ToARecordMapOutputWithContext

func (o ARecordMapOutput) ToARecordMapOutputWithContext(ctx context.Context) ARecordMapOutput

type ARecordOutput

type ARecordOutput struct{ *pulumi.OutputState }

func (ARecordOutput) ElementType

func (ARecordOutput) ElementType() reflect.Type

func (ARecordOutput) Fqdn added in v5.5.0

The FQDN of the DNS A Record.

func (ARecordOutput) Name added in v5.5.0

The name of the DNS A Record. Changing this forces a new resource to be created.

func (ARecordOutput) Records added in v5.5.0

List of IPv4 Addresses. Conflicts with `targetResourceId`.

func (ARecordOutput) ResourceGroupName added in v5.5.0

func (o ARecordOutput) ResourceGroupName() pulumi.StringOutput

Specifies the resource group where the DNS Zone (parent resource) exists. Changing this forces a new resource to be created.

func (ARecordOutput) Tags added in v5.5.0

A mapping of tags to assign to the resource.

func (ARecordOutput) TargetResourceId added in v5.5.0

func (o ARecordOutput) TargetResourceId() pulumi.StringPtrOutput

The Azure resource id of the target object. Conflicts with `records`.

func (ARecordOutput) ToARecordOutput

func (o ARecordOutput) ToARecordOutput() ARecordOutput

func (ARecordOutput) ToARecordOutputWithContext

func (o ARecordOutput) ToARecordOutputWithContext(ctx context.Context) ARecordOutput

func (ARecordOutput) Ttl added in v5.5.0

func (o ARecordOutput) Ttl() pulumi.IntOutput

The Time To Live (TTL) of the DNS record in seconds.

func (ARecordOutput) ZoneName added in v5.5.0

func (o ARecordOutput) ZoneName() pulumi.StringOutput

Specifies the DNS Zone where the resource exists. Changing this forces a new resource to be created.

type ARecordState

type ARecordState struct {
	// The FQDN of the DNS A Record.
	Fqdn pulumi.StringPtrInput
	// The name of the DNS A Record. Changing this forces a new resource to be created.
	Name pulumi.StringPtrInput
	// List of IPv4 Addresses. Conflicts with `targetResourceId`.
	Records pulumi.StringArrayInput
	// Specifies the resource group where the DNS Zone (parent resource) exists. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringPtrInput
	// A mapping of tags to assign to the resource.
	Tags pulumi.StringMapInput
	// The Azure resource id of the target object. Conflicts with `records`.
	TargetResourceId pulumi.StringPtrInput
	// The Time To Live (TTL) of the DNS record in seconds.
	Ttl pulumi.IntPtrInput
	// Specifies the DNS Zone where the resource exists. Changing this forces a new resource to be created.
	ZoneName pulumi.StringPtrInput
}

func (ARecordState) ElementType

func (ARecordState) ElementType() reflect.Type

type AaaaRecord

type AaaaRecord struct {
	pulumi.CustomResourceState

	// The FQDN of the DNS AAAA Record.
	Fqdn pulumi.StringOutput `pulumi:"fqdn"`
	// The name of the DNS AAAA Record. Changing this forces a new resource to be created.
	Name pulumi.StringOutput `pulumi:"name"`
	// List of IPv6 Addresses. Conflicts with `targetResourceId`.
	Records pulumi.StringArrayOutput `pulumi:"records"`
	// Specifies the resource group where the DNS Zone (parent resource) exists. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"`
	// A mapping of tags to assign to the resource.
	Tags pulumi.StringMapOutput `pulumi:"tags"`
	// The Azure resource id of the target object. Conflicts with `records`.
	TargetResourceId pulumi.StringPtrOutput `pulumi:"targetResourceId"`
	// The Time To Live (TTL) of the DNS record in seconds.
	Ttl pulumi.IntOutput `pulumi:"ttl"`
	// Specifies the DNS Zone where the resource exists. Changing this forces a new resource to be created.
	ZoneName pulumi.StringOutput `pulumi:"zoneName"`
}

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/dns"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		exampleZone, err := dns.NewZone(ctx, "exampleZone", &dns.ZoneArgs{
			ResourceGroupName: exampleResourceGroup.Name,
		})
		if err != nil {
			return err
		}
		_, err = dns.NewAaaaRecord(ctx, "exampleAaaaRecord", &dns.AaaaRecordArgs{
			ZoneName:          exampleZone.Name,
			ResourceGroupName: exampleResourceGroup.Name,
			Ttl:               pulumi.Int(300),
			Records: pulumi.StringArray{
				pulumi.String("2001:db8::1:0:0:1"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` ### Alias Record)

```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/dns"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/network"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		exampleZone, err := dns.NewZone(ctx, "exampleZone", &dns.ZoneArgs{
			ResourceGroupName: exampleResourceGroup.Name,
		})
		if err != nil {
			return err
		}
		examplePublicIp, err := network.NewPublicIp(ctx, "examplePublicIp", &network.PublicIpArgs{
			Location:          exampleResourceGroup.Location,
			ResourceGroupName: exampleResourceGroup.Name,
			AllocationMethod:  pulumi.String("Dynamic"),
			IpVersion:         pulumi.String("IPv6"),
		})
		if err != nil {
			return err
		}
		_, err = dns.NewAaaaRecord(ctx, "exampleAaaaRecord", &dns.AaaaRecordArgs{
			ZoneName:          exampleZone.Name,
			ResourceGroupName: exampleResourceGroup.Name,
			Ttl:               pulumi.Int(300),
			TargetResourceId:  examplePublicIp.ID(),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

AAAA records can be imported using the `resource id`, e.g.

```sh

$ pulumi import azure:dns/aaaaRecord:AaaaRecord example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Network/dnsZones/zone1/AAAA/myrecord1

```

func GetAaaaRecord

func GetAaaaRecord(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *AaaaRecordState, opts ...pulumi.ResourceOption) (*AaaaRecord, error)

GetAaaaRecord gets an existing AaaaRecord resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewAaaaRecord

func NewAaaaRecord(ctx *pulumi.Context,
	name string, args *AaaaRecordArgs, opts ...pulumi.ResourceOption) (*AaaaRecord, error)

NewAaaaRecord registers a new resource with the given unique name, arguments, and options.

func (*AaaaRecord) ElementType

func (*AaaaRecord) ElementType() reflect.Type

func (*AaaaRecord) ToAaaaRecordOutput

func (i *AaaaRecord) ToAaaaRecordOutput() AaaaRecordOutput

func (*AaaaRecord) ToAaaaRecordOutputWithContext

func (i *AaaaRecord) ToAaaaRecordOutputWithContext(ctx context.Context) AaaaRecordOutput

type AaaaRecordArgs

type AaaaRecordArgs struct {
	// The name of the DNS AAAA Record. Changing this forces a new resource to be created.
	Name pulumi.StringPtrInput
	// List of IPv6 Addresses. Conflicts with `targetResourceId`.
	Records pulumi.StringArrayInput
	// Specifies the resource group where the DNS Zone (parent resource) exists. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringInput
	// A mapping of tags to assign to the resource.
	Tags pulumi.StringMapInput
	// The Azure resource id of the target object. Conflicts with `records`.
	TargetResourceId pulumi.StringPtrInput
	// The Time To Live (TTL) of the DNS record in seconds.
	Ttl pulumi.IntInput
	// Specifies the DNS Zone where the resource exists. Changing this forces a new resource to be created.
	ZoneName pulumi.StringInput
}

The set of arguments for constructing a AaaaRecord resource.

func (AaaaRecordArgs) ElementType

func (AaaaRecordArgs) ElementType() reflect.Type

type AaaaRecordArray

type AaaaRecordArray []AaaaRecordInput

func (AaaaRecordArray) ElementType

func (AaaaRecordArray) ElementType() reflect.Type

func (AaaaRecordArray) ToAaaaRecordArrayOutput

func (i AaaaRecordArray) ToAaaaRecordArrayOutput() AaaaRecordArrayOutput

func (AaaaRecordArray) ToAaaaRecordArrayOutputWithContext

func (i AaaaRecordArray) ToAaaaRecordArrayOutputWithContext(ctx context.Context) AaaaRecordArrayOutput

type AaaaRecordArrayInput

type AaaaRecordArrayInput interface {
	pulumi.Input

	ToAaaaRecordArrayOutput() AaaaRecordArrayOutput
	ToAaaaRecordArrayOutputWithContext(context.Context) AaaaRecordArrayOutput
}

AaaaRecordArrayInput is an input type that accepts AaaaRecordArray and AaaaRecordArrayOutput values. You can construct a concrete instance of `AaaaRecordArrayInput` via:

AaaaRecordArray{ AaaaRecordArgs{...} }

type AaaaRecordArrayOutput

type AaaaRecordArrayOutput struct{ *pulumi.OutputState }

func (AaaaRecordArrayOutput) ElementType

func (AaaaRecordArrayOutput) ElementType() reflect.Type

func (AaaaRecordArrayOutput) Index

func (AaaaRecordArrayOutput) ToAaaaRecordArrayOutput

func (o AaaaRecordArrayOutput) ToAaaaRecordArrayOutput() AaaaRecordArrayOutput

func (AaaaRecordArrayOutput) ToAaaaRecordArrayOutputWithContext

func (o AaaaRecordArrayOutput) ToAaaaRecordArrayOutputWithContext(ctx context.Context) AaaaRecordArrayOutput

type AaaaRecordInput

type AaaaRecordInput interface {
	pulumi.Input

	ToAaaaRecordOutput() AaaaRecordOutput
	ToAaaaRecordOutputWithContext(ctx context.Context) AaaaRecordOutput
}

type AaaaRecordMap

type AaaaRecordMap map[string]AaaaRecordInput

func (AaaaRecordMap) ElementType

func (AaaaRecordMap) ElementType() reflect.Type

func (AaaaRecordMap) ToAaaaRecordMapOutput

func (i AaaaRecordMap) ToAaaaRecordMapOutput() AaaaRecordMapOutput

func (AaaaRecordMap) ToAaaaRecordMapOutputWithContext

func (i AaaaRecordMap) ToAaaaRecordMapOutputWithContext(ctx context.Context) AaaaRecordMapOutput

type AaaaRecordMapInput

type AaaaRecordMapInput interface {
	pulumi.Input

	ToAaaaRecordMapOutput() AaaaRecordMapOutput
	ToAaaaRecordMapOutputWithContext(context.Context) AaaaRecordMapOutput
}

AaaaRecordMapInput is an input type that accepts AaaaRecordMap and AaaaRecordMapOutput values. You can construct a concrete instance of `AaaaRecordMapInput` via:

AaaaRecordMap{ "key": AaaaRecordArgs{...} }

type AaaaRecordMapOutput

type AaaaRecordMapOutput struct{ *pulumi.OutputState }

func (AaaaRecordMapOutput) ElementType

func (AaaaRecordMapOutput) ElementType() reflect.Type

func (AaaaRecordMapOutput) MapIndex

func (AaaaRecordMapOutput) ToAaaaRecordMapOutput

func (o AaaaRecordMapOutput) ToAaaaRecordMapOutput() AaaaRecordMapOutput

func (AaaaRecordMapOutput) ToAaaaRecordMapOutputWithContext

func (o AaaaRecordMapOutput) ToAaaaRecordMapOutputWithContext(ctx context.Context) AaaaRecordMapOutput

type AaaaRecordOutput

type AaaaRecordOutput struct{ *pulumi.OutputState }

func (AaaaRecordOutput) ElementType

func (AaaaRecordOutput) ElementType() reflect.Type

func (AaaaRecordOutput) Fqdn added in v5.5.0

The FQDN of the DNS AAAA Record.

func (AaaaRecordOutput) Name added in v5.5.0

The name of the DNS AAAA Record. Changing this forces a new resource to be created.

func (AaaaRecordOutput) Records added in v5.5.0

List of IPv6 Addresses. Conflicts with `targetResourceId`.

func (AaaaRecordOutput) ResourceGroupName added in v5.5.0

func (o AaaaRecordOutput) ResourceGroupName() pulumi.StringOutput

Specifies the resource group where the DNS Zone (parent resource) exists. Changing this forces a new resource to be created.

func (AaaaRecordOutput) Tags added in v5.5.0

A mapping of tags to assign to the resource.

func (AaaaRecordOutput) TargetResourceId added in v5.5.0

func (o AaaaRecordOutput) TargetResourceId() pulumi.StringPtrOutput

The Azure resource id of the target object. Conflicts with `records`.

func (AaaaRecordOutput) ToAaaaRecordOutput

func (o AaaaRecordOutput) ToAaaaRecordOutput() AaaaRecordOutput

func (AaaaRecordOutput) ToAaaaRecordOutputWithContext

func (o AaaaRecordOutput) ToAaaaRecordOutputWithContext(ctx context.Context) AaaaRecordOutput

func (AaaaRecordOutput) Ttl added in v5.5.0

The Time To Live (TTL) of the DNS record in seconds.

func (AaaaRecordOutput) ZoneName added in v5.5.0

func (o AaaaRecordOutput) ZoneName() pulumi.StringOutput

Specifies the DNS Zone where the resource exists. Changing this forces a new resource to be created.

type AaaaRecordState

type AaaaRecordState struct {
	// The FQDN of the DNS AAAA Record.
	Fqdn pulumi.StringPtrInput
	// The name of the DNS AAAA Record. Changing this forces a new resource to be created.
	Name pulumi.StringPtrInput
	// List of IPv6 Addresses. Conflicts with `targetResourceId`.
	Records pulumi.StringArrayInput
	// Specifies the resource group where the DNS Zone (parent resource) exists. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringPtrInput
	// A mapping of tags to assign to the resource.
	Tags pulumi.StringMapInput
	// The Azure resource id of the target object. Conflicts with `records`.
	TargetResourceId pulumi.StringPtrInput
	// The Time To Live (TTL) of the DNS record in seconds.
	Ttl pulumi.IntPtrInput
	// Specifies the DNS Zone where the resource exists. Changing this forces a new resource to be created.
	ZoneName pulumi.StringPtrInput
}

func (AaaaRecordState) ElementType

func (AaaaRecordState) ElementType() reflect.Type

type CNameRecord

type CNameRecord struct {
	pulumi.CustomResourceState

	// The FQDN of the DNS CName Record.
	Fqdn pulumi.StringOutput `pulumi:"fqdn"`
	// The name of the DNS CNAME Record. Changing this forces a new resource to be created.
	Name pulumi.StringOutput `pulumi:"name"`
	// The target of the CNAME.
	Record pulumi.StringPtrOutput `pulumi:"record"`
	// Specifies the resource group where the DNS Zone (parent resource) exists. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"`
	// A mapping of tags to assign to the resource.
	Tags pulumi.StringMapOutput `pulumi:"tags"`
	// The Azure resource id of the target object. Conflicts with `record`.
	TargetResourceId pulumi.StringPtrOutput `pulumi:"targetResourceId"`
	// The Time To Live (TTL) of the DNS record in seconds.
	Ttl pulumi.IntOutput `pulumi:"ttl"`
	// Specifies the DNS Zone where the resource exists. Changing this forces a new resource to be created.
	ZoneName pulumi.StringOutput `pulumi:"zoneName"`
}

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/dns"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		exampleZone, err := dns.NewZone(ctx, "exampleZone", &dns.ZoneArgs{
			ResourceGroupName: exampleResourceGroup.Name,
		})
		if err != nil {
			return err
		}
		_, err = dns.NewCNameRecord(ctx, "exampleCNameRecord", &dns.CNameRecordArgs{
			ZoneName:          exampleZone.Name,
			ResourceGroupName: exampleResourceGroup.Name,
			Ttl:               pulumi.Int(300),
			Record:            pulumi.String("contoso.com"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` ### Alias Record)

```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/dns"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		exampleZone, err := dns.NewZone(ctx, "exampleZone", &dns.ZoneArgs{
			ResourceGroupName: exampleResourceGroup.Name,
		})
		if err != nil {
			return err
		}
		target, err := dns.NewCNameRecord(ctx, "target", &dns.CNameRecordArgs{
			ZoneName:          exampleZone.Name,
			ResourceGroupName: exampleResourceGroup.Name,
			Ttl:               pulumi.Int(300),
			Record:            pulumi.String("contoso.com"),
		})
		if err != nil {
			return err
		}
		_, err = dns.NewCNameRecord(ctx, "exampleCNameRecord", &dns.CNameRecordArgs{
			ZoneName:          exampleZone.Name,
			ResourceGroupName: exampleResourceGroup.Name,
			Ttl:               pulumi.Int(300),
			TargetResourceId:  target.ID(),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

CNAME records can be imported using the `resource id`, e.g.

```sh

$ pulumi import azure:dns/cNameRecord:CNameRecord example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Network/dnsZones/zone1/CNAME/myrecord1

```

func GetCNameRecord

func GetCNameRecord(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *CNameRecordState, opts ...pulumi.ResourceOption) (*CNameRecord, error)

GetCNameRecord gets an existing CNameRecord resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewCNameRecord

func NewCNameRecord(ctx *pulumi.Context,
	name string, args *CNameRecordArgs, opts ...pulumi.ResourceOption) (*CNameRecord, error)

NewCNameRecord registers a new resource with the given unique name, arguments, and options.

func (*CNameRecord) ElementType

func (*CNameRecord) ElementType() reflect.Type

func (*CNameRecord) ToCNameRecordOutput

func (i *CNameRecord) ToCNameRecordOutput() CNameRecordOutput

func (*CNameRecord) ToCNameRecordOutputWithContext

func (i *CNameRecord) ToCNameRecordOutputWithContext(ctx context.Context) CNameRecordOutput

type CNameRecordArgs

type CNameRecordArgs struct {
	// The name of the DNS CNAME Record. Changing this forces a new resource to be created.
	Name pulumi.StringPtrInput
	// The target of the CNAME.
	Record pulumi.StringPtrInput
	// Specifies the resource group where the DNS Zone (parent resource) exists. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringInput
	// A mapping of tags to assign to the resource.
	Tags pulumi.StringMapInput
	// The Azure resource id of the target object. Conflicts with `record`.
	TargetResourceId pulumi.StringPtrInput
	// The Time To Live (TTL) of the DNS record in seconds.
	Ttl pulumi.IntInput
	// Specifies the DNS Zone where the resource exists. Changing this forces a new resource to be created.
	ZoneName pulumi.StringInput
}

The set of arguments for constructing a CNameRecord resource.

func (CNameRecordArgs) ElementType

func (CNameRecordArgs) ElementType() reflect.Type

type CNameRecordArray

type CNameRecordArray []CNameRecordInput

func (CNameRecordArray) ElementType

func (CNameRecordArray) ElementType() reflect.Type

func (CNameRecordArray) ToCNameRecordArrayOutput

func (i CNameRecordArray) ToCNameRecordArrayOutput() CNameRecordArrayOutput

func (CNameRecordArray) ToCNameRecordArrayOutputWithContext

func (i CNameRecordArray) ToCNameRecordArrayOutputWithContext(ctx context.Context) CNameRecordArrayOutput

type CNameRecordArrayInput

type CNameRecordArrayInput interface {
	pulumi.Input

	ToCNameRecordArrayOutput() CNameRecordArrayOutput
	ToCNameRecordArrayOutputWithContext(context.Context) CNameRecordArrayOutput
}

CNameRecordArrayInput is an input type that accepts CNameRecordArray and CNameRecordArrayOutput values. You can construct a concrete instance of `CNameRecordArrayInput` via:

CNameRecordArray{ CNameRecordArgs{...} }

type CNameRecordArrayOutput

type CNameRecordArrayOutput struct{ *pulumi.OutputState }

func (CNameRecordArrayOutput) ElementType

func (CNameRecordArrayOutput) ElementType() reflect.Type

func (CNameRecordArrayOutput) Index

func (CNameRecordArrayOutput) ToCNameRecordArrayOutput

func (o CNameRecordArrayOutput) ToCNameRecordArrayOutput() CNameRecordArrayOutput

func (CNameRecordArrayOutput) ToCNameRecordArrayOutputWithContext

func (o CNameRecordArrayOutput) ToCNameRecordArrayOutputWithContext(ctx context.Context) CNameRecordArrayOutput

type CNameRecordInput

type CNameRecordInput interface {
	pulumi.Input

	ToCNameRecordOutput() CNameRecordOutput
	ToCNameRecordOutputWithContext(ctx context.Context) CNameRecordOutput
}

type CNameRecordMap

type CNameRecordMap map[string]CNameRecordInput

func (CNameRecordMap) ElementType

func (CNameRecordMap) ElementType() reflect.Type

func (CNameRecordMap) ToCNameRecordMapOutput

func (i CNameRecordMap) ToCNameRecordMapOutput() CNameRecordMapOutput

func (CNameRecordMap) ToCNameRecordMapOutputWithContext

func (i CNameRecordMap) ToCNameRecordMapOutputWithContext(ctx context.Context) CNameRecordMapOutput

type CNameRecordMapInput

type CNameRecordMapInput interface {
	pulumi.Input

	ToCNameRecordMapOutput() CNameRecordMapOutput
	ToCNameRecordMapOutputWithContext(context.Context) CNameRecordMapOutput
}

CNameRecordMapInput is an input type that accepts CNameRecordMap and CNameRecordMapOutput values. You can construct a concrete instance of `CNameRecordMapInput` via:

CNameRecordMap{ "key": CNameRecordArgs{...} }

type CNameRecordMapOutput

type CNameRecordMapOutput struct{ *pulumi.OutputState }

func (CNameRecordMapOutput) ElementType

func (CNameRecordMapOutput) ElementType() reflect.Type

func (CNameRecordMapOutput) MapIndex

func (CNameRecordMapOutput) ToCNameRecordMapOutput

func (o CNameRecordMapOutput) ToCNameRecordMapOutput() CNameRecordMapOutput

func (CNameRecordMapOutput) ToCNameRecordMapOutputWithContext

func (o CNameRecordMapOutput) ToCNameRecordMapOutputWithContext(ctx context.Context) CNameRecordMapOutput

type CNameRecordOutput

type CNameRecordOutput struct{ *pulumi.OutputState }

func (CNameRecordOutput) ElementType

func (CNameRecordOutput) ElementType() reflect.Type

func (CNameRecordOutput) Fqdn added in v5.5.0

The FQDN of the DNS CName Record.

func (CNameRecordOutput) Name added in v5.5.0

The name of the DNS CNAME Record. Changing this forces a new resource to be created.

func (CNameRecordOutput) Record added in v5.5.0

The target of the CNAME.

func (CNameRecordOutput) ResourceGroupName added in v5.5.0

func (o CNameRecordOutput) ResourceGroupName() pulumi.StringOutput

Specifies the resource group where the DNS Zone (parent resource) exists. Changing this forces a new resource to be created.

func (CNameRecordOutput) Tags added in v5.5.0

A mapping of tags to assign to the resource.

func (CNameRecordOutput) TargetResourceId added in v5.5.0

func (o CNameRecordOutput) TargetResourceId() pulumi.StringPtrOutput

The Azure resource id of the target object. Conflicts with `record`.

func (CNameRecordOutput) ToCNameRecordOutput

func (o CNameRecordOutput) ToCNameRecordOutput() CNameRecordOutput

func (CNameRecordOutput) ToCNameRecordOutputWithContext

func (o CNameRecordOutput) ToCNameRecordOutputWithContext(ctx context.Context) CNameRecordOutput

func (CNameRecordOutput) Ttl added in v5.5.0

The Time To Live (TTL) of the DNS record in seconds.

func (CNameRecordOutput) ZoneName added in v5.5.0

func (o CNameRecordOutput) ZoneName() pulumi.StringOutput

Specifies the DNS Zone where the resource exists. Changing this forces a new resource to be created.

type CNameRecordState

type CNameRecordState struct {
	// The FQDN of the DNS CName Record.
	Fqdn pulumi.StringPtrInput
	// The name of the DNS CNAME Record. Changing this forces a new resource to be created.
	Name pulumi.StringPtrInput
	// The target of the CNAME.
	Record pulumi.StringPtrInput
	// Specifies the resource group where the DNS Zone (parent resource) exists. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringPtrInput
	// A mapping of tags to assign to the resource.
	Tags pulumi.StringMapInput
	// The Azure resource id of the target object. Conflicts with `record`.
	TargetResourceId pulumi.StringPtrInput
	// The Time To Live (TTL) of the DNS record in seconds.
	Ttl pulumi.IntPtrInput
	// Specifies the DNS Zone where the resource exists. Changing this forces a new resource to be created.
	ZoneName pulumi.StringPtrInput
}

func (CNameRecordState) ElementType

func (CNameRecordState) ElementType() reflect.Type

type CaaRecord

type CaaRecord struct {
	pulumi.CustomResourceState

	// The FQDN of the DNS CAA Record.
	Fqdn pulumi.StringOutput `pulumi:"fqdn"`
	// 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.StringOutput `pulumi:"name"`
	// A list of values that make up the CAA record. Each `record` block supports fields documented below.
	Records CaaRecordRecordArrayOutput `pulumi:"records"`
	// Specifies the resource group where the DNS Zone (parent resource) exists. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"`
	// A mapping of tags to assign to the resource.
	Tags pulumi.StringMapOutput `pulumi:"tags"`
	// The Time To Live (TTL) of the DNS record in seconds.
	Ttl pulumi.IntOutput `pulumi:"ttl"`
	// Specifies the DNS Zone where the resource exists. Changing this forces a new resource to be created.
	ZoneName pulumi.StringOutput `pulumi:"zoneName"`
}

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/dns"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		exampleZone, err := dns.NewZone(ctx, "exampleZone", &dns.ZoneArgs{
			ResourceGroupName: exampleResourceGroup.Name,
		})
		if err != nil {
			return err
		}
		_, err = dns.NewCaaRecord(ctx, "exampleCaaRecord", &dns.CaaRecordArgs{
			ZoneName:          exampleZone.Name,
			ResourceGroupName: exampleResourceGroup.Name,
			Ttl:               pulumi.Int(300),
			Records: dns.CaaRecordRecordArray{
				&dns.CaaRecordRecordArgs{
					Flags: pulumi.Int(0),
					Tag:   pulumi.String("issue"),
					Value: pulumi.String("example.com"),
				},
				&dns.CaaRecordRecordArgs{
					Flags: pulumi.Int(0),
					Tag:   pulumi.String("issue"),
					Value: pulumi.String("example.net"),
				},
				&dns.CaaRecordRecordArgs{
					Flags: pulumi.Int(0),
					Tag:   pulumi.String("issuewild"),
					Value: pulumi.String(";"),
				},
				&dns.CaaRecordRecordArgs{
					Flags: pulumi.Int(0),
					Tag:   pulumi.String("iodef"),
					Value: pulumi.String("mailto:user@nonexisting.tld"),
				},
			},
			Tags: pulumi.StringMap{
				"Environment": pulumi.String("Production"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## 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

```

func GetCaaRecord

func GetCaaRecord(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *CaaRecordState, opts ...pulumi.ResourceOption) (*CaaRecord, error)

GetCaaRecord gets an existing CaaRecord resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewCaaRecord

func NewCaaRecord(ctx *pulumi.Context,
	name string, args *CaaRecordArgs, opts ...pulumi.ResourceOption) (*CaaRecord, error)

NewCaaRecord registers a new resource with the given unique name, arguments, and options.

func (*CaaRecord) ElementType

func (*CaaRecord) ElementType() reflect.Type

func (*CaaRecord) ToCaaRecordOutput

func (i *CaaRecord) ToCaaRecordOutput() CaaRecordOutput

func (*CaaRecord) ToCaaRecordOutputWithContext

func (i *CaaRecord) ToCaaRecordOutputWithContext(ctx context.Context) CaaRecordOutput

type CaaRecordArgs

type CaaRecordArgs struct {
	// 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.StringPtrInput
	// A list of values that make up the CAA record. Each `record` block supports fields documented below.
	Records CaaRecordRecordArrayInput
	// Specifies the resource group where the DNS Zone (parent resource) exists. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringInput
	// A mapping of tags to assign to the resource.
	Tags pulumi.StringMapInput
	// The Time To Live (TTL) of the DNS record in seconds.
	Ttl pulumi.IntInput
	// Specifies the DNS Zone where the resource exists. Changing this forces a new resource to be created.
	ZoneName pulumi.StringInput
}

The set of arguments for constructing a CaaRecord resource.

func (CaaRecordArgs) ElementType

func (CaaRecordArgs) ElementType() reflect.Type

type CaaRecordArray

type CaaRecordArray []CaaRecordInput

func (CaaRecordArray) ElementType

func (CaaRecordArray) ElementType() reflect.Type

func (CaaRecordArray) ToCaaRecordArrayOutput

func (i CaaRecordArray) ToCaaRecordArrayOutput() CaaRecordArrayOutput

func (CaaRecordArray) ToCaaRecordArrayOutputWithContext

func (i CaaRecordArray) ToCaaRecordArrayOutputWithContext(ctx context.Context) CaaRecordArrayOutput

type CaaRecordArrayInput

type CaaRecordArrayInput interface {
	pulumi.Input

	ToCaaRecordArrayOutput() CaaRecordArrayOutput
	ToCaaRecordArrayOutputWithContext(context.Context) CaaRecordArrayOutput
}

CaaRecordArrayInput is an input type that accepts CaaRecordArray and CaaRecordArrayOutput values. You can construct a concrete instance of `CaaRecordArrayInput` via:

CaaRecordArray{ CaaRecordArgs{...} }

type CaaRecordArrayOutput

type CaaRecordArrayOutput struct{ *pulumi.OutputState }

func (CaaRecordArrayOutput) ElementType

func (CaaRecordArrayOutput) ElementType() reflect.Type

func (CaaRecordArrayOutput) Index

func (CaaRecordArrayOutput) ToCaaRecordArrayOutput

func (o CaaRecordArrayOutput) ToCaaRecordArrayOutput() CaaRecordArrayOutput

func (CaaRecordArrayOutput) ToCaaRecordArrayOutputWithContext

func (o CaaRecordArrayOutput) ToCaaRecordArrayOutputWithContext(ctx context.Context) CaaRecordArrayOutput

type CaaRecordInput

type CaaRecordInput interface {
	pulumi.Input

	ToCaaRecordOutput() CaaRecordOutput
	ToCaaRecordOutputWithContext(ctx context.Context) CaaRecordOutput
}

type CaaRecordMap

type CaaRecordMap map[string]CaaRecordInput

func (CaaRecordMap) ElementType

func (CaaRecordMap) ElementType() reflect.Type

func (CaaRecordMap) ToCaaRecordMapOutput

func (i CaaRecordMap) ToCaaRecordMapOutput() CaaRecordMapOutput

func (CaaRecordMap) ToCaaRecordMapOutputWithContext

func (i CaaRecordMap) ToCaaRecordMapOutputWithContext(ctx context.Context) CaaRecordMapOutput

type CaaRecordMapInput

type CaaRecordMapInput interface {
	pulumi.Input

	ToCaaRecordMapOutput() CaaRecordMapOutput
	ToCaaRecordMapOutputWithContext(context.Context) CaaRecordMapOutput
}

CaaRecordMapInput is an input type that accepts CaaRecordMap and CaaRecordMapOutput values. You can construct a concrete instance of `CaaRecordMapInput` via:

CaaRecordMap{ "key": CaaRecordArgs{...} }

type CaaRecordMapOutput

type CaaRecordMapOutput struct{ *pulumi.OutputState }

func (CaaRecordMapOutput) ElementType

func (CaaRecordMapOutput) ElementType() reflect.Type

func (CaaRecordMapOutput) MapIndex

func (CaaRecordMapOutput) ToCaaRecordMapOutput

func (o CaaRecordMapOutput) ToCaaRecordMapOutput() CaaRecordMapOutput

func (CaaRecordMapOutput) ToCaaRecordMapOutputWithContext

func (o CaaRecordMapOutput) ToCaaRecordMapOutputWithContext(ctx context.Context) CaaRecordMapOutput

type CaaRecordOutput

type CaaRecordOutput struct{ *pulumi.OutputState }

func (CaaRecordOutput) ElementType

func (CaaRecordOutput) ElementType() reflect.Type

func (CaaRecordOutput) Fqdn added in v5.5.0

The FQDN of the DNS CAA Record.

func (CaaRecordOutput) Name added in v5.5.0

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.

func (CaaRecordOutput) Records added in v5.5.0

A list of values that make up the CAA record. Each `record` block supports fields documented below.

func (CaaRecordOutput) ResourceGroupName added in v5.5.0

func (o CaaRecordOutput) ResourceGroupName() pulumi.StringOutput

Specifies the resource group where the DNS Zone (parent resource) exists. Changing this forces a new resource to be created.

func (CaaRecordOutput) Tags added in v5.5.0

A mapping of tags to assign to the resource.

func (CaaRecordOutput) ToCaaRecordOutput

func (o CaaRecordOutput) ToCaaRecordOutput() CaaRecordOutput

func (CaaRecordOutput) ToCaaRecordOutputWithContext

func (o CaaRecordOutput) ToCaaRecordOutputWithContext(ctx context.Context) CaaRecordOutput

func (CaaRecordOutput) Ttl added in v5.5.0

The Time To Live (TTL) of the DNS record in seconds.

func (CaaRecordOutput) ZoneName added in v5.5.0

func (o CaaRecordOutput) ZoneName() pulumi.StringOutput

Specifies the DNS Zone where the resource exists. Changing this forces a new resource to be created.

type CaaRecordRecord

type CaaRecordRecord struct {
	// Extensible CAA flags, currently only 1 is implemented to set the issuer critical flag.
	Flags int `pulumi:"flags"`
	// A property tag, options are `issue`, `issuewild` and `iodef`.
	Tag string `pulumi:"tag"`
	// A property value such as a registrar domain.
	Value string `pulumi:"value"`
}

type CaaRecordRecordArgs

type CaaRecordRecordArgs struct {
	// Extensible CAA flags, currently only 1 is implemented to set the issuer critical flag.
	Flags pulumi.IntInput `pulumi:"flags"`
	// A property tag, options are `issue`, `issuewild` and `iodef`.
	Tag pulumi.StringInput `pulumi:"tag"`
	// A property value such as a registrar domain.
	Value pulumi.StringInput `pulumi:"value"`
}

func (CaaRecordRecordArgs) ElementType

func (CaaRecordRecordArgs) ElementType() reflect.Type

func (CaaRecordRecordArgs) ToCaaRecordRecordOutput

func (i CaaRecordRecordArgs) ToCaaRecordRecordOutput() CaaRecordRecordOutput

func (CaaRecordRecordArgs) ToCaaRecordRecordOutputWithContext

func (i CaaRecordRecordArgs) ToCaaRecordRecordOutputWithContext(ctx context.Context) CaaRecordRecordOutput

type CaaRecordRecordArray

type CaaRecordRecordArray []CaaRecordRecordInput

func (CaaRecordRecordArray) ElementType

func (CaaRecordRecordArray) ElementType() reflect.Type

func (CaaRecordRecordArray) ToCaaRecordRecordArrayOutput

func (i CaaRecordRecordArray) ToCaaRecordRecordArrayOutput() CaaRecordRecordArrayOutput

func (CaaRecordRecordArray) ToCaaRecordRecordArrayOutputWithContext

func (i CaaRecordRecordArray) ToCaaRecordRecordArrayOutputWithContext(ctx context.Context) CaaRecordRecordArrayOutput

type CaaRecordRecordArrayInput

type CaaRecordRecordArrayInput interface {
	pulumi.Input

	ToCaaRecordRecordArrayOutput() CaaRecordRecordArrayOutput
	ToCaaRecordRecordArrayOutputWithContext(context.Context) CaaRecordRecordArrayOutput
}

CaaRecordRecordArrayInput is an input type that accepts CaaRecordRecordArray and CaaRecordRecordArrayOutput values. You can construct a concrete instance of `CaaRecordRecordArrayInput` via:

CaaRecordRecordArray{ CaaRecordRecordArgs{...} }

type CaaRecordRecordArrayOutput

type CaaRecordRecordArrayOutput struct{ *pulumi.OutputState }

func (CaaRecordRecordArrayOutput) ElementType

func (CaaRecordRecordArrayOutput) ElementType() reflect.Type

func (CaaRecordRecordArrayOutput) Index

func (CaaRecordRecordArrayOutput) ToCaaRecordRecordArrayOutput

func (o CaaRecordRecordArrayOutput) ToCaaRecordRecordArrayOutput() CaaRecordRecordArrayOutput

func (CaaRecordRecordArrayOutput) ToCaaRecordRecordArrayOutputWithContext

func (o CaaRecordRecordArrayOutput) ToCaaRecordRecordArrayOutputWithContext(ctx context.Context) CaaRecordRecordArrayOutput

type CaaRecordRecordInput

type CaaRecordRecordInput interface {
	pulumi.Input

	ToCaaRecordRecordOutput() CaaRecordRecordOutput
	ToCaaRecordRecordOutputWithContext(context.Context) CaaRecordRecordOutput
}

CaaRecordRecordInput is an input type that accepts CaaRecordRecordArgs and CaaRecordRecordOutput values. You can construct a concrete instance of `CaaRecordRecordInput` via:

CaaRecordRecordArgs{...}

type CaaRecordRecordOutput

type CaaRecordRecordOutput struct{ *pulumi.OutputState }

func (CaaRecordRecordOutput) ElementType

func (CaaRecordRecordOutput) ElementType() reflect.Type

func (CaaRecordRecordOutput) Flags

Extensible CAA flags, currently only 1 is implemented to set the issuer critical flag.

func (CaaRecordRecordOutput) Tag

A property tag, options are `issue`, `issuewild` and `iodef`.

func (CaaRecordRecordOutput) ToCaaRecordRecordOutput

func (o CaaRecordRecordOutput) ToCaaRecordRecordOutput() CaaRecordRecordOutput

func (CaaRecordRecordOutput) ToCaaRecordRecordOutputWithContext

func (o CaaRecordRecordOutput) ToCaaRecordRecordOutputWithContext(ctx context.Context) CaaRecordRecordOutput

func (CaaRecordRecordOutput) Value

A property value such as a registrar domain.

type CaaRecordState

type CaaRecordState struct {
	// The FQDN of the DNS CAA Record.
	Fqdn pulumi.StringPtrInput
	// 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.StringPtrInput
	// A list of values that make up the CAA record. Each `record` block supports fields documented below.
	Records CaaRecordRecordArrayInput
	// Specifies the resource group where the DNS Zone (parent resource) exists. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringPtrInput
	// A mapping of tags to assign to the resource.
	Tags pulumi.StringMapInput
	// The Time To Live (TTL) of the DNS record in seconds.
	Ttl pulumi.IntPtrInput
	// Specifies the DNS Zone where the resource exists. Changing this forces a new resource to be created.
	ZoneName pulumi.StringPtrInput
}

func (CaaRecordState) ElementType

func (CaaRecordState) ElementType() reflect.Type

type GetAAAARecordArgs added in v5.16.0

type GetAAAARecordArgs struct {
	// The name of the DNS AAAA Record.
	Name string `pulumi:"name"`
	// Specifies the resource group where the DNS Zone (parent resource) exists.
	ResourceGroupName string `pulumi:"resourceGroupName"`
	// Specifies the DNS Zone where the resource exists.
	ZoneName string `pulumi:"zoneName"`
}

A collection of arguments for invoking getAAAARecord.

type GetAAAARecordOutputArgs added in v5.16.0

type GetAAAARecordOutputArgs struct {
	// The name of the DNS AAAA Record.
	Name pulumi.StringInput `pulumi:"name"`
	// Specifies the resource group where the DNS Zone (parent resource) exists.
	ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"`
	// Specifies the DNS Zone where the resource exists.
	ZoneName pulumi.StringInput `pulumi:"zoneName"`
}

A collection of arguments for invoking getAAAARecord.

func (GetAAAARecordOutputArgs) ElementType added in v5.16.0

func (GetAAAARecordOutputArgs) ElementType() reflect.Type

type GetAAAARecordResult added in v5.16.0

type GetAAAARecordResult struct {
	// The FQDN of the DNS AAAA Record.
	Fqdn string `pulumi:"fqdn"`
	// The provider-assigned unique ID for this managed resource.
	Id   string `pulumi:"id"`
	Name string `pulumi:"name"`
	// List of IPv6 Addresses.
	Records           []string `pulumi:"records"`
	ResourceGroupName string   `pulumi:"resourceGroupName"`
	// A mapping of tags assigned to the resource.
	Tags map[string]string `pulumi:"tags"`
	// The Azure resource id of the target object from where the dns resource value is taken.
	TargetResourceId string `pulumi:"targetResourceId"`
	// The Time To Live (TTL) of the DNS record in seconds.
	Ttl      int    `pulumi:"ttl"`
	ZoneName string `pulumi:"zoneName"`
}

A collection of values returned by getAAAARecord.

func GetAAAARecord added in v5.16.0

func GetAAAARecord(ctx *pulumi.Context, args *GetAAAARecordArgs, opts ...pulumi.InvokeOption) (*GetAAAARecordResult, error)

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/dns"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := dns.NewAaaaRecord(ctx, "example", &dns.AaaaRecordArgs{
			ZoneName:          pulumi.String("test-zone"),
			ResourceGroupName: pulumi.String("test-rg"),
		})
		if err != nil {
			return err
		}
		ctx.Export("dnsAaaaRecordId", example.ID())
		return nil
	})
}

```

type GetAAAARecordResultOutput added in v5.16.0

type GetAAAARecordResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getAAAARecord.

func GetAAAARecordOutput added in v5.16.0

func GetAAAARecordOutput(ctx *pulumi.Context, args GetAAAARecordOutputArgs, opts ...pulumi.InvokeOption) GetAAAARecordResultOutput

func (GetAAAARecordResultOutput) ElementType added in v5.16.0

func (GetAAAARecordResultOutput) ElementType() reflect.Type

func (GetAAAARecordResultOutput) Fqdn added in v5.16.0

The FQDN of the DNS AAAA Record.

func (GetAAAARecordResultOutput) Id added in v5.16.0

The provider-assigned unique ID for this managed resource.

func (GetAAAARecordResultOutput) Name added in v5.16.0

func (GetAAAARecordResultOutput) Records added in v5.16.0

List of IPv6 Addresses.

func (GetAAAARecordResultOutput) ResourceGroupName added in v5.16.0

func (o GetAAAARecordResultOutput) ResourceGroupName() pulumi.StringOutput

func (GetAAAARecordResultOutput) Tags added in v5.16.0

A mapping of tags assigned to the resource.

func (GetAAAARecordResultOutput) TargetResourceId added in v5.16.0

func (o GetAAAARecordResultOutput) TargetResourceId() pulumi.StringOutput

The Azure resource id of the target object from where the dns resource value is taken.

func (GetAAAARecordResultOutput) ToGetAAAARecordResultOutput added in v5.16.0

func (o GetAAAARecordResultOutput) ToGetAAAARecordResultOutput() GetAAAARecordResultOutput

func (GetAAAARecordResultOutput) ToGetAAAARecordResultOutputWithContext added in v5.16.0

func (o GetAAAARecordResultOutput) ToGetAAAARecordResultOutputWithContext(ctx context.Context) GetAAAARecordResultOutput

func (GetAAAARecordResultOutput) Ttl added in v5.16.0

The Time To Live (TTL) of the DNS record in seconds.

func (GetAAAARecordResultOutput) ZoneName added in v5.16.0

type GetCAARecordArgs added in v5.16.0

type GetCAARecordArgs struct {
	// The name of the DNS CAA Record.
	Name string `pulumi:"name"`
	// Specifies the resource group where the DNS Zone (parent resource) exists.
	ResourceGroupName string `pulumi:"resourceGroupName"`
	// Specifies the DNS Zone where the resource exists.
	ZoneName string `pulumi:"zoneName"`
}

A collection of arguments for invoking getCAARecord.

type GetCAARecordOutputArgs added in v5.16.0

type GetCAARecordOutputArgs struct {
	// The name of the DNS CAA Record.
	Name pulumi.StringInput `pulumi:"name"`
	// Specifies the resource group where the DNS Zone (parent resource) exists.
	ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"`
	// Specifies the DNS Zone where the resource exists.
	ZoneName pulumi.StringInput `pulumi:"zoneName"`
}

A collection of arguments for invoking getCAARecord.

func (GetCAARecordOutputArgs) ElementType added in v5.16.0

func (GetCAARecordOutputArgs) ElementType() reflect.Type

type GetCAARecordRecord added in v5.16.0

type GetCAARecordRecord struct {
	// Extensible CAA flags, currently only 1 is implemented to set the issuer critical flag.
	Flags int `pulumi:"flags"`
	// A property tag, options are `issue`, `issuewild` and `iodef`.
	Tag string `pulumi:"tag"`
	// A property value such as a registrar domain.
	Value string `pulumi:"value"`
}

type GetCAARecordRecordArgs added in v5.16.0

type GetCAARecordRecordArgs struct {
	// Extensible CAA flags, currently only 1 is implemented to set the issuer critical flag.
	Flags pulumi.IntInput `pulumi:"flags"`
	// A property tag, options are `issue`, `issuewild` and `iodef`.
	Tag pulumi.StringInput `pulumi:"tag"`
	// A property value such as a registrar domain.
	Value pulumi.StringInput `pulumi:"value"`
}

func (GetCAARecordRecordArgs) ElementType added in v5.16.0

func (GetCAARecordRecordArgs) ElementType() reflect.Type

func (GetCAARecordRecordArgs) ToGetCAARecordRecordOutput added in v5.16.0

func (i GetCAARecordRecordArgs) ToGetCAARecordRecordOutput() GetCAARecordRecordOutput

func (GetCAARecordRecordArgs) ToGetCAARecordRecordOutputWithContext added in v5.16.0

func (i GetCAARecordRecordArgs) ToGetCAARecordRecordOutputWithContext(ctx context.Context) GetCAARecordRecordOutput

type GetCAARecordRecordArray added in v5.16.0

type GetCAARecordRecordArray []GetCAARecordRecordInput

func (GetCAARecordRecordArray) ElementType added in v5.16.0

func (GetCAARecordRecordArray) ElementType() reflect.Type

func (GetCAARecordRecordArray) ToGetCAARecordRecordArrayOutput added in v5.16.0

func (i GetCAARecordRecordArray) ToGetCAARecordRecordArrayOutput() GetCAARecordRecordArrayOutput

func (GetCAARecordRecordArray) ToGetCAARecordRecordArrayOutputWithContext added in v5.16.0

func (i GetCAARecordRecordArray) ToGetCAARecordRecordArrayOutputWithContext(ctx context.Context) GetCAARecordRecordArrayOutput

type GetCAARecordRecordArrayInput added in v5.16.0

type GetCAARecordRecordArrayInput interface {
	pulumi.Input

	ToGetCAARecordRecordArrayOutput() GetCAARecordRecordArrayOutput
	ToGetCAARecordRecordArrayOutputWithContext(context.Context) GetCAARecordRecordArrayOutput
}

GetCAARecordRecordArrayInput is an input type that accepts GetCAARecordRecordArray and GetCAARecordRecordArrayOutput values. You can construct a concrete instance of `GetCAARecordRecordArrayInput` via:

GetCAARecordRecordArray{ GetCAARecordRecordArgs{...} }

type GetCAARecordRecordArrayOutput added in v5.16.0

type GetCAARecordRecordArrayOutput struct{ *pulumi.OutputState }

func (GetCAARecordRecordArrayOutput) ElementType added in v5.16.0

func (GetCAARecordRecordArrayOutput) Index added in v5.16.0

func (GetCAARecordRecordArrayOutput) ToGetCAARecordRecordArrayOutput added in v5.16.0

func (o GetCAARecordRecordArrayOutput) ToGetCAARecordRecordArrayOutput() GetCAARecordRecordArrayOutput

func (GetCAARecordRecordArrayOutput) ToGetCAARecordRecordArrayOutputWithContext added in v5.16.0

func (o GetCAARecordRecordArrayOutput) ToGetCAARecordRecordArrayOutputWithContext(ctx context.Context) GetCAARecordRecordArrayOutput

type GetCAARecordRecordInput added in v5.16.0

type GetCAARecordRecordInput interface {
	pulumi.Input

	ToGetCAARecordRecordOutput() GetCAARecordRecordOutput
	ToGetCAARecordRecordOutputWithContext(context.Context) GetCAARecordRecordOutput
}

GetCAARecordRecordInput is an input type that accepts GetCAARecordRecordArgs and GetCAARecordRecordOutput values. You can construct a concrete instance of `GetCAARecordRecordInput` via:

GetCAARecordRecordArgs{...}

type GetCAARecordRecordOutput added in v5.16.0

type GetCAARecordRecordOutput struct{ *pulumi.OutputState }

func (GetCAARecordRecordOutput) ElementType added in v5.16.0

func (GetCAARecordRecordOutput) ElementType() reflect.Type

func (GetCAARecordRecordOutput) Flags added in v5.16.0

Extensible CAA flags, currently only 1 is implemented to set the issuer critical flag.

func (GetCAARecordRecordOutput) Tag added in v5.16.0

A property tag, options are `issue`, `issuewild` and `iodef`.

func (GetCAARecordRecordOutput) ToGetCAARecordRecordOutput added in v5.16.0

func (o GetCAARecordRecordOutput) ToGetCAARecordRecordOutput() GetCAARecordRecordOutput

func (GetCAARecordRecordOutput) ToGetCAARecordRecordOutputWithContext added in v5.16.0

func (o GetCAARecordRecordOutput) ToGetCAARecordRecordOutputWithContext(ctx context.Context) GetCAARecordRecordOutput

func (GetCAARecordRecordOutput) Value added in v5.16.0

A property value such as a registrar domain.

type GetCAARecordResult added in v5.16.0

type GetCAARecordResult struct {
	// The FQDN of the DNS CAA Record.
	Fqdn string `pulumi:"fqdn"`
	// The provider-assigned unique ID for this managed resource.
	Id   string `pulumi:"id"`
	Name string `pulumi:"name"`
	// A list of values that make up the CAA record. Each `record` block supports fields documented below.
	Records           []GetCAARecordRecord `pulumi:"records"`
	ResourceGroupName string               `pulumi:"resourceGroupName"`
	// A mapping of tags assigned to the resource.
	Tags map[string]string `pulumi:"tags"`
	// The Time To Live (TTL) of the DNS record in seconds.
	Ttl      int    `pulumi:"ttl"`
	ZoneName string `pulumi:"zoneName"`
}

A collection of values returned by getCAARecord.

func GetCAARecord added in v5.16.0

func GetCAARecord(ctx *pulumi.Context, args *GetCAARecordArgs, opts ...pulumi.InvokeOption) (*GetCAARecordResult, error)

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/dns"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := dns.NewCaaRecord(ctx, "example", &dns.CaaRecordArgs{
			ZoneName:          pulumi.String("test-zone"),
			ResourceGroupName: pulumi.String("test-rg"),
		})
		if err != nil {
			return err
		}
		ctx.Export("dnsCaaRecordId", example.ID())
		return nil
	})
}

```

type GetCAARecordResultOutput added in v5.16.0

type GetCAARecordResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getCAARecord.

func GetCAARecordOutput added in v5.16.0

func GetCAARecordOutput(ctx *pulumi.Context, args GetCAARecordOutputArgs, opts ...pulumi.InvokeOption) GetCAARecordResultOutput

func (GetCAARecordResultOutput) ElementType added in v5.16.0

func (GetCAARecordResultOutput) ElementType() reflect.Type

func (GetCAARecordResultOutput) Fqdn added in v5.16.0

The FQDN of the DNS CAA Record.

func (GetCAARecordResultOutput) Id added in v5.16.0

The provider-assigned unique ID for this managed resource.

func (GetCAARecordResultOutput) Name added in v5.16.0

func (GetCAARecordResultOutput) Records added in v5.16.0

A list of values that make up the CAA record. Each `record` block supports fields documented below.

func (GetCAARecordResultOutput) ResourceGroupName added in v5.16.0

func (o GetCAARecordResultOutput) ResourceGroupName() pulumi.StringOutput

func (GetCAARecordResultOutput) Tags added in v5.16.0

A mapping of tags assigned to the resource.

func (GetCAARecordResultOutput) ToGetCAARecordResultOutput added in v5.16.0

func (o GetCAARecordResultOutput) ToGetCAARecordResultOutput() GetCAARecordResultOutput

func (GetCAARecordResultOutput) ToGetCAARecordResultOutputWithContext added in v5.16.0

func (o GetCAARecordResultOutput) ToGetCAARecordResultOutputWithContext(ctx context.Context) GetCAARecordResultOutput

func (GetCAARecordResultOutput) Ttl added in v5.16.0

The Time To Live (TTL) of the DNS record in seconds.

func (GetCAARecordResultOutput) ZoneName added in v5.16.0

type GetCnameRecordArgs added in v5.16.0

type GetCnameRecordArgs struct {
	// The name of the DNS CNAME Record.
	Name string `pulumi:"name"`
	// Specifies the resource group where the DNS Zone (parent resource) exists.
	ResourceGroupName string `pulumi:"resourceGroupName"`
	// Specifies the DNS Zone where the resource exists.
	ZoneName string `pulumi:"zoneName"`
}

A collection of arguments for invoking getCnameRecord.

type GetCnameRecordOutputArgs added in v5.16.0

type GetCnameRecordOutputArgs struct {
	// The name of the DNS CNAME Record.
	Name pulumi.StringInput `pulumi:"name"`
	// Specifies the resource group where the DNS Zone (parent resource) exists.
	ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"`
	// Specifies the DNS Zone where the resource exists.
	ZoneName pulumi.StringInput `pulumi:"zoneName"`
}

A collection of arguments for invoking getCnameRecord.

func (GetCnameRecordOutputArgs) ElementType added in v5.16.0

func (GetCnameRecordOutputArgs) ElementType() reflect.Type

type GetCnameRecordResult added in v5.16.0

type GetCnameRecordResult struct {
	// The FQDN of the DNS CName Record.
	Fqdn string `pulumi:"fqdn"`
	// The provider-assigned unique ID for this managed resource.
	Id   string `pulumi:"id"`
	Name string `pulumi:"name"`
	// The target of the CNAME.
	Record            string `pulumi:"record"`
	ResourceGroupName string `pulumi:"resourceGroupName"`
	// A mapping of tags assigned to the resource.
	Tags map[string]string `pulumi:"tags"`
	// The Azure resource id of the target object from where the dns resource value is taken.
	TargetResourceId string `pulumi:"targetResourceId"`
	// The Time To Live (TTL) of the DNS record in seconds.
	Ttl      int    `pulumi:"ttl"`
	ZoneName string `pulumi:"zoneName"`
}

A collection of values returned by getCnameRecord.

func GetCnameRecord added in v5.16.0

func GetCnameRecord(ctx *pulumi.Context, args *GetCnameRecordArgs, opts ...pulumi.InvokeOption) (*GetCnameRecordResult, error)

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/dns"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := dns.NewCNameRecord(ctx, "example", &dns.CNameRecordArgs{
			ZoneName:          pulumi.String("test-zone"),
			ResourceGroupName: pulumi.String("test-rg"),
		})
		if err != nil {
			return err
		}
		ctx.Export("dnsCnameRecordId", example.ID())
		return nil
	})
}

```

type GetCnameRecordResultOutput added in v5.16.0

type GetCnameRecordResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getCnameRecord.

func GetCnameRecordOutput added in v5.16.0

func GetCnameRecordOutput(ctx *pulumi.Context, args GetCnameRecordOutputArgs, opts ...pulumi.InvokeOption) GetCnameRecordResultOutput

func (GetCnameRecordResultOutput) ElementType added in v5.16.0

func (GetCnameRecordResultOutput) ElementType() reflect.Type

func (GetCnameRecordResultOutput) Fqdn added in v5.16.0

The FQDN of the DNS CName Record.

func (GetCnameRecordResultOutput) Id added in v5.16.0

The provider-assigned unique ID for this managed resource.

func (GetCnameRecordResultOutput) Name added in v5.16.0

func (GetCnameRecordResultOutput) Record added in v5.16.0

The target of the CNAME.

func (GetCnameRecordResultOutput) ResourceGroupName added in v5.16.0

func (o GetCnameRecordResultOutput) ResourceGroupName() pulumi.StringOutput

func (GetCnameRecordResultOutput) Tags added in v5.16.0

A mapping of tags assigned to the resource.

func (GetCnameRecordResultOutput) TargetResourceId added in v5.16.0

func (o GetCnameRecordResultOutput) TargetResourceId() pulumi.StringOutput

The Azure resource id of the target object from where the dns resource value is taken.

func (GetCnameRecordResultOutput) ToGetCnameRecordResultOutput added in v5.16.0

func (o GetCnameRecordResultOutput) ToGetCnameRecordResultOutput() GetCnameRecordResultOutput

func (GetCnameRecordResultOutput) ToGetCnameRecordResultOutputWithContext added in v5.16.0

func (o GetCnameRecordResultOutput) ToGetCnameRecordResultOutputWithContext(ctx context.Context) GetCnameRecordResultOutput

func (GetCnameRecordResultOutput) Ttl added in v5.16.0

The Time To Live (TTL) of the DNS record in seconds.

func (GetCnameRecordResultOutput) ZoneName added in v5.16.0

type GetMxRecordRecord added in v5.16.0

type GetMxRecordRecord struct {
	// The mail server responsible for the domain covered by the MX record.
	Exchange string `pulumi:"exchange"`
	// String representing the "preference” value of the MX records. Records with lower preference value take priority.
	Preference string `pulumi:"preference"`
}

type GetMxRecordRecordArgs added in v5.16.0

type GetMxRecordRecordArgs struct {
	// The mail server responsible for the domain covered by the MX record.
	Exchange pulumi.StringInput `pulumi:"exchange"`
	// String representing the "preference” value of the MX records. Records with lower preference value take priority.
	Preference pulumi.StringInput `pulumi:"preference"`
}

func (GetMxRecordRecordArgs) ElementType added in v5.16.0

func (GetMxRecordRecordArgs) ElementType() reflect.Type

func (GetMxRecordRecordArgs) ToGetMxRecordRecordOutput added in v5.16.0

func (i GetMxRecordRecordArgs) ToGetMxRecordRecordOutput() GetMxRecordRecordOutput

func (GetMxRecordRecordArgs) ToGetMxRecordRecordOutputWithContext added in v5.16.0

func (i GetMxRecordRecordArgs) ToGetMxRecordRecordOutputWithContext(ctx context.Context) GetMxRecordRecordOutput

type GetMxRecordRecordArray added in v5.16.0

type GetMxRecordRecordArray []GetMxRecordRecordInput

func (GetMxRecordRecordArray) ElementType added in v5.16.0

func (GetMxRecordRecordArray) ElementType() reflect.Type

func (GetMxRecordRecordArray) ToGetMxRecordRecordArrayOutput added in v5.16.0

func (i GetMxRecordRecordArray) ToGetMxRecordRecordArrayOutput() GetMxRecordRecordArrayOutput

func (GetMxRecordRecordArray) ToGetMxRecordRecordArrayOutputWithContext added in v5.16.0

func (i GetMxRecordRecordArray) ToGetMxRecordRecordArrayOutputWithContext(ctx context.Context) GetMxRecordRecordArrayOutput

type GetMxRecordRecordArrayInput added in v5.16.0

type GetMxRecordRecordArrayInput interface {
	pulumi.Input

	ToGetMxRecordRecordArrayOutput() GetMxRecordRecordArrayOutput
	ToGetMxRecordRecordArrayOutputWithContext(context.Context) GetMxRecordRecordArrayOutput
}

GetMxRecordRecordArrayInput is an input type that accepts GetMxRecordRecordArray and GetMxRecordRecordArrayOutput values. You can construct a concrete instance of `GetMxRecordRecordArrayInput` via:

GetMxRecordRecordArray{ GetMxRecordRecordArgs{...} }

type GetMxRecordRecordArrayOutput added in v5.16.0

type GetMxRecordRecordArrayOutput struct{ *pulumi.OutputState }

func (GetMxRecordRecordArrayOutput) ElementType added in v5.16.0

func (GetMxRecordRecordArrayOutput) Index added in v5.16.0

func (GetMxRecordRecordArrayOutput) ToGetMxRecordRecordArrayOutput added in v5.16.0

func (o GetMxRecordRecordArrayOutput) ToGetMxRecordRecordArrayOutput() GetMxRecordRecordArrayOutput

func (GetMxRecordRecordArrayOutput) ToGetMxRecordRecordArrayOutputWithContext added in v5.16.0

func (o GetMxRecordRecordArrayOutput) ToGetMxRecordRecordArrayOutputWithContext(ctx context.Context) GetMxRecordRecordArrayOutput

type GetMxRecordRecordInput added in v5.16.0

type GetMxRecordRecordInput interface {
	pulumi.Input

	ToGetMxRecordRecordOutput() GetMxRecordRecordOutput
	ToGetMxRecordRecordOutputWithContext(context.Context) GetMxRecordRecordOutput
}

GetMxRecordRecordInput is an input type that accepts GetMxRecordRecordArgs and GetMxRecordRecordOutput values. You can construct a concrete instance of `GetMxRecordRecordInput` via:

GetMxRecordRecordArgs{...}

type GetMxRecordRecordOutput added in v5.16.0

type GetMxRecordRecordOutput struct{ *pulumi.OutputState }

func (GetMxRecordRecordOutput) ElementType added in v5.16.0

func (GetMxRecordRecordOutput) ElementType() reflect.Type

func (GetMxRecordRecordOutput) Exchange added in v5.16.0

The mail server responsible for the domain covered by the MX record.

func (GetMxRecordRecordOutput) Preference added in v5.16.0

String representing the "preference” value of the MX records. Records with lower preference value take priority.

func (GetMxRecordRecordOutput) ToGetMxRecordRecordOutput added in v5.16.0

func (o GetMxRecordRecordOutput) ToGetMxRecordRecordOutput() GetMxRecordRecordOutput

func (GetMxRecordRecordOutput) ToGetMxRecordRecordOutputWithContext added in v5.16.0

func (o GetMxRecordRecordOutput) ToGetMxRecordRecordOutputWithContext(ctx context.Context) GetMxRecordRecordOutput

type GetSoaRecordArgs added in v5.16.0

type GetSoaRecordArgs struct {
	// The name of the DNS SOA Record.
	Name *string `pulumi:"name"`
	// Specifies the resource group where the DNS Zone (parent resource) exists.
	ResourceGroupName string `pulumi:"resourceGroupName"`
	// Specifies the DNS Zone where the resource exists.
	ZoneName string `pulumi:"zoneName"`
}

A collection of arguments for invoking getSoaRecord.

type GetSoaRecordOutputArgs added in v5.16.0

type GetSoaRecordOutputArgs struct {
	// The name of the DNS SOA Record.
	Name pulumi.StringPtrInput `pulumi:"name"`
	// Specifies the resource group where the DNS Zone (parent resource) exists.
	ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"`
	// Specifies the DNS Zone where the resource exists.
	ZoneName pulumi.StringInput `pulumi:"zoneName"`
}

A collection of arguments for invoking getSoaRecord.

func (GetSoaRecordOutputArgs) ElementType added in v5.16.0

func (GetSoaRecordOutputArgs) ElementType() reflect.Type

type GetSoaRecordResult added in v5.16.0

type GetSoaRecordResult struct {
	// The email contact for the SOA record.
	Email string `pulumi:"email"`
	// The expire time for the SOA record.
	ExpireTime int `pulumi:"expireTime"`
	// The FQDN of the DNS SOA Record.
	Fqdn string `pulumi:"fqdn"`
	// The domain name of the authoritative name server for the SOA record.
	HostName string `pulumi:"hostName"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The minimum Time To Live for the SOA record. By convention, it is used to determine the negative caching duration.
	MinimumTtl int `pulumi:"minimumTtl"`
	// The name of the DNS SOA Record.
	Name *string `pulumi:"name"`
	// The refresh time for the SOA record.
	RefreshTime       int    `pulumi:"refreshTime"`
	ResourceGroupName string `pulumi:"resourceGroupName"`
	// The retry time for the SOA record.
	RetryTime int `pulumi:"retryTime"`
	// The serial number for the SOA record.
	SerialNumber int `pulumi:"serialNumber"`
	// A mapping of tags assigned to the resource.
	Tags map[string]string `pulumi:"tags"`
	// The Time To Live (TTL) of the DNS record in seconds.
	Ttl      int    `pulumi:"ttl"`
	ZoneName string `pulumi:"zoneName"`
}

A collection of values returned by getSoaRecord.

func GetSoaRecord added in v5.16.0

func GetSoaRecord(ctx *pulumi.Context, args *GetSoaRecordArgs, opts ...pulumi.InvokeOption) (*GetSoaRecordResult, error)

type GetSoaRecordResultOutput added in v5.16.0

type GetSoaRecordResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getSoaRecord.

func GetSoaRecordOutput added in v5.16.0

func GetSoaRecordOutput(ctx *pulumi.Context, args GetSoaRecordOutputArgs, opts ...pulumi.InvokeOption) GetSoaRecordResultOutput

func (GetSoaRecordResultOutput) ElementType added in v5.16.0

func (GetSoaRecordResultOutput) ElementType() reflect.Type

func (GetSoaRecordResultOutput) Email added in v5.16.0

The email contact for the SOA record.

func (GetSoaRecordResultOutput) ExpireTime added in v5.16.0

func (o GetSoaRecordResultOutput) ExpireTime() pulumi.IntOutput

The expire time for the SOA record.

func (GetSoaRecordResultOutput) Fqdn added in v5.16.0

The FQDN of the DNS SOA Record.

func (GetSoaRecordResultOutput) HostName added in v5.16.0

The domain name of the authoritative name server for the SOA record.

func (GetSoaRecordResultOutput) Id added in v5.16.0

The provider-assigned unique ID for this managed resource.

func (GetSoaRecordResultOutput) MinimumTtl added in v5.16.0

func (o GetSoaRecordResultOutput) MinimumTtl() pulumi.IntOutput

The minimum Time To Live for the SOA record. By convention, it is used to determine the negative caching duration.

func (GetSoaRecordResultOutput) Name added in v5.16.0

The name of the DNS SOA Record.

func (GetSoaRecordResultOutput) RefreshTime added in v5.16.0

func (o GetSoaRecordResultOutput) RefreshTime() pulumi.IntOutput

The refresh time for the SOA record.

func (GetSoaRecordResultOutput) ResourceGroupName added in v5.16.0

func (o GetSoaRecordResultOutput) ResourceGroupName() pulumi.StringOutput

func (GetSoaRecordResultOutput) RetryTime added in v5.16.0

The retry time for the SOA record.

func (GetSoaRecordResultOutput) SerialNumber added in v5.16.0

func (o GetSoaRecordResultOutput) SerialNumber() pulumi.IntOutput

The serial number for the SOA record.

func (GetSoaRecordResultOutput) Tags added in v5.16.0

A mapping of tags assigned to the resource.

func (GetSoaRecordResultOutput) ToGetSoaRecordResultOutput added in v5.16.0

func (o GetSoaRecordResultOutput) ToGetSoaRecordResultOutput() GetSoaRecordResultOutput

func (GetSoaRecordResultOutput) ToGetSoaRecordResultOutputWithContext added in v5.16.0

func (o GetSoaRecordResultOutput) ToGetSoaRecordResultOutputWithContext(ctx context.Context) GetSoaRecordResultOutput

func (GetSoaRecordResultOutput) Ttl added in v5.16.0

The Time To Live (TTL) of the DNS record in seconds.

func (GetSoaRecordResultOutput) ZoneName added in v5.16.0

type GetSrvRecordRecord added in v5.16.0

type GetSrvRecordRecord struct {
	// Port the service is listening on.
	Port int `pulumi:"port"`
	// Priority of the SRV record.
	Priority int `pulumi:"priority"`
	// FQDN of the service.
	Target string `pulumi:"target"`
	// Weight of the SRV record.
	Weight int `pulumi:"weight"`
}

type GetSrvRecordRecordArgs added in v5.16.0

type GetSrvRecordRecordArgs struct {
	// Port the service is listening on.
	Port pulumi.IntInput `pulumi:"port"`
	// Priority of the SRV record.
	Priority pulumi.IntInput `pulumi:"priority"`
	// FQDN of the service.
	Target pulumi.StringInput `pulumi:"target"`
	// Weight of the SRV record.
	Weight pulumi.IntInput `pulumi:"weight"`
}

func (GetSrvRecordRecordArgs) ElementType added in v5.16.0

func (GetSrvRecordRecordArgs) ElementType() reflect.Type

func (GetSrvRecordRecordArgs) ToGetSrvRecordRecordOutput added in v5.16.0

func (i GetSrvRecordRecordArgs) ToGetSrvRecordRecordOutput() GetSrvRecordRecordOutput

func (GetSrvRecordRecordArgs) ToGetSrvRecordRecordOutputWithContext added in v5.16.0

func (i GetSrvRecordRecordArgs) ToGetSrvRecordRecordOutputWithContext(ctx context.Context) GetSrvRecordRecordOutput

type GetSrvRecordRecordArray added in v5.16.0

type GetSrvRecordRecordArray []GetSrvRecordRecordInput

func (GetSrvRecordRecordArray) ElementType added in v5.16.0

func (GetSrvRecordRecordArray) ElementType() reflect.Type

func (GetSrvRecordRecordArray) ToGetSrvRecordRecordArrayOutput added in v5.16.0

func (i GetSrvRecordRecordArray) ToGetSrvRecordRecordArrayOutput() GetSrvRecordRecordArrayOutput

func (GetSrvRecordRecordArray) ToGetSrvRecordRecordArrayOutputWithContext added in v5.16.0

func (i GetSrvRecordRecordArray) ToGetSrvRecordRecordArrayOutputWithContext(ctx context.Context) GetSrvRecordRecordArrayOutput

type GetSrvRecordRecordArrayInput added in v5.16.0

type GetSrvRecordRecordArrayInput interface {
	pulumi.Input

	ToGetSrvRecordRecordArrayOutput() GetSrvRecordRecordArrayOutput
	ToGetSrvRecordRecordArrayOutputWithContext(context.Context) GetSrvRecordRecordArrayOutput
}

GetSrvRecordRecordArrayInput is an input type that accepts GetSrvRecordRecordArray and GetSrvRecordRecordArrayOutput values. You can construct a concrete instance of `GetSrvRecordRecordArrayInput` via:

GetSrvRecordRecordArray{ GetSrvRecordRecordArgs{...} }

type GetSrvRecordRecordArrayOutput added in v5.16.0

type GetSrvRecordRecordArrayOutput struct{ *pulumi.OutputState }

func (GetSrvRecordRecordArrayOutput) ElementType added in v5.16.0

func (GetSrvRecordRecordArrayOutput) Index added in v5.16.0

func (GetSrvRecordRecordArrayOutput) ToGetSrvRecordRecordArrayOutput added in v5.16.0

func (o GetSrvRecordRecordArrayOutput) ToGetSrvRecordRecordArrayOutput() GetSrvRecordRecordArrayOutput

func (GetSrvRecordRecordArrayOutput) ToGetSrvRecordRecordArrayOutputWithContext added in v5.16.0

func (o GetSrvRecordRecordArrayOutput) ToGetSrvRecordRecordArrayOutputWithContext(ctx context.Context) GetSrvRecordRecordArrayOutput

type GetSrvRecordRecordInput added in v5.16.0

type GetSrvRecordRecordInput interface {
	pulumi.Input

	ToGetSrvRecordRecordOutput() GetSrvRecordRecordOutput
	ToGetSrvRecordRecordOutputWithContext(context.Context) GetSrvRecordRecordOutput
}

GetSrvRecordRecordInput is an input type that accepts GetSrvRecordRecordArgs and GetSrvRecordRecordOutput values. You can construct a concrete instance of `GetSrvRecordRecordInput` via:

GetSrvRecordRecordArgs{...}

type GetSrvRecordRecordOutput added in v5.16.0

type GetSrvRecordRecordOutput struct{ *pulumi.OutputState }

func (GetSrvRecordRecordOutput) ElementType added in v5.16.0

func (GetSrvRecordRecordOutput) ElementType() reflect.Type

func (GetSrvRecordRecordOutput) Port added in v5.16.0

Port the service is listening on.

func (GetSrvRecordRecordOutput) Priority added in v5.16.0

Priority of the SRV record.

func (GetSrvRecordRecordOutput) Target added in v5.16.0

FQDN of the service.

func (GetSrvRecordRecordOutput) ToGetSrvRecordRecordOutput added in v5.16.0

func (o GetSrvRecordRecordOutput) ToGetSrvRecordRecordOutput() GetSrvRecordRecordOutput

func (GetSrvRecordRecordOutput) ToGetSrvRecordRecordOutputWithContext added in v5.16.0

func (o GetSrvRecordRecordOutput) ToGetSrvRecordRecordOutputWithContext(ctx context.Context) GetSrvRecordRecordOutput

func (GetSrvRecordRecordOutput) Weight added in v5.16.0

Weight of the SRV record.

type GetTxtRecordRecord added in v5.16.0

type GetTxtRecordRecord struct {
	// The value of the record. Max length: 1024 characters
	Value string `pulumi:"value"`
}

type GetTxtRecordRecordArgs added in v5.16.0

type GetTxtRecordRecordArgs struct {
	// The value of the record. Max length: 1024 characters
	Value pulumi.StringInput `pulumi:"value"`
}

func (GetTxtRecordRecordArgs) ElementType added in v5.16.0

func (GetTxtRecordRecordArgs) ElementType() reflect.Type

func (GetTxtRecordRecordArgs) ToGetTxtRecordRecordOutput added in v5.16.0

func (i GetTxtRecordRecordArgs) ToGetTxtRecordRecordOutput() GetTxtRecordRecordOutput

func (GetTxtRecordRecordArgs) ToGetTxtRecordRecordOutputWithContext added in v5.16.0

func (i GetTxtRecordRecordArgs) ToGetTxtRecordRecordOutputWithContext(ctx context.Context) GetTxtRecordRecordOutput

type GetTxtRecordRecordArray added in v5.16.0

type GetTxtRecordRecordArray []GetTxtRecordRecordInput

func (GetTxtRecordRecordArray) ElementType added in v5.16.0

func (GetTxtRecordRecordArray) ElementType() reflect.Type

func (GetTxtRecordRecordArray) ToGetTxtRecordRecordArrayOutput added in v5.16.0

func (i GetTxtRecordRecordArray) ToGetTxtRecordRecordArrayOutput() GetTxtRecordRecordArrayOutput

func (GetTxtRecordRecordArray) ToGetTxtRecordRecordArrayOutputWithContext added in v5.16.0

func (i GetTxtRecordRecordArray) ToGetTxtRecordRecordArrayOutputWithContext(ctx context.Context) GetTxtRecordRecordArrayOutput

type GetTxtRecordRecordArrayInput added in v5.16.0

type GetTxtRecordRecordArrayInput interface {
	pulumi.Input

	ToGetTxtRecordRecordArrayOutput() GetTxtRecordRecordArrayOutput
	ToGetTxtRecordRecordArrayOutputWithContext(context.Context) GetTxtRecordRecordArrayOutput
}

GetTxtRecordRecordArrayInput is an input type that accepts GetTxtRecordRecordArray and GetTxtRecordRecordArrayOutput values. You can construct a concrete instance of `GetTxtRecordRecordArrayInput` via:

GetTxtRecordRecordArray{ GetTxtRecordRecordArgs{...} }

type GetTxtRecordRecordArrayOutput added in v5.16.0

type GetTxtRecordRecordArrayOutput struct{ *pulumi.OutputState }

func (GetTxtRecordRecordArrayOutput) ElementType added in v5.16.0

func (GetTxtRecordRecordArrayOutput) Index added in v5.16.0

func (GetTxtRecordRecordArrayOutput) ToGetTxtRecordRecordArrayOutput added in v5.16.0

func (o GetTxtRecordRecordArrayOutput) ToGetTxtRecordRecordArrayOutput() GetTxtRecordRecordArrayOutput

func (GetTxtRecordRecordArrayOutput) ToGetTxtRecordRecordArrayOutputWithContext added in v5.16.0

func (o GetTxtRecordRecordArrayOutput) ToGetTxtRecordRecordArrayOutputWithContext(ctx context.Context) GetTxtRecordRecordArrayOutput

type GetTxtRecordRecordInput added in v5.16.0

type GetTxtRecordRecordInput interface {
	pulumi.Input

	ToGetTxtRecordRecordOutput() GetTxtRecordRecordOutput
	ToGetTxtRecordRecordOutputWithContext(context.Context) GetTxtRecordRecordOutput
}

GetTxtRecordRecordInput is an input type that accepts GetTxtRecordRecordArgs and GetTxtRecordRecordOutput values. You can construct a concrete instance of `GetTxtRecordRecordInput` via:

GetTxtRecordRecordArgs{...}

type GetTxtRecordRecordOutput added in v5.16.0

type GetTxtRecordRecordOutput struct{ *pulumi.OutputState }

func (GetTxtRecordRecordOutput) ElementType added in v5.16.0

func (GetTxtRecordRecordOutput) ElementType() reflect.Type

func (GetTxtRecordRecordOutput) ToGetTxtRecordRecordOutput added in v5.16.0

func (o GetTxtRecordRecordOutput) ToGetTxtRecordRecordOutput() GetTxtRecordRecordOutput

func (GetTxtRecordRecordOutput) ToGetTxtRecordRecordOutputWithContext added in v5.16.0

func (o GetTxtRecordRecordOutput) ToGetTxtRecordRecordOutputWithContext(ctx context.Context) GetTxtRecordRecordOutput

func (GetTxtRecordRecordOutput) Value added in v5.16.0

The value of the record. Max length: 1024 characters

type LookupARecordArgs added in v5.16.0

type LookupARecordArgs struct {
	// The name of the DNS A Record.
	Name string `pulumi:"name"`
	// Specifies the resource group where the DNS Zone (parent resource) exists.
	ResourceGroupName string `pulumi:"resourceGroupName"`
	// Specifies the DNS Zone where the resource exists.
	ZoneName string `pulumi:"zoneName"`
}

A collection of arguments for invoking getARecord.

type LookupARecordOutputArgs added in v5.16.0

type LookupARecordOutputArgs struct {
	// The name of the DNS A Record.
	Name pulumi.StringInput `pulumi:"name"`
	// Specifies the resource group where the DNS Zone (parent resource) exists.
	ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"`
	// Specifies the DNS Zone where the resource exists.
	ZoneName pulumi.StringInput `pulumi:"zoneName"`
}

A collection of arguments for invoking getARecord.

func (LookupARecordOutputArgs) ElementType added in v5.16.0

func (LookupARecordOutputArgs) ElementType() reflect.Type

type LookupARecordResult added in v5.16.0

type LookupARecordResult struct {
	// The FQDN of the DNS A Record.
	Fqdn string `pulumi:"fqdn"`
	// The provider-assigned unique ID for this managed resource.
	Id   string `pulumi:"id"`
	Name string `pulumi:"name"`
	// List of IPv4 Addresses.
	Records           []string `pulumi:"records"`
	ResourceGroupName string   `pulumi:"resourceGroupName"`
	// A mapping of tags assigned to the DNS A Record.
	Tags map[string]string `pulumi:"tags"`
	// The Azure resource id of the target object from where the dns resource value is taken.
	TargetResourceId string `pulumi:"targetResourceId"`
	// The Time To Live (TTL) of the DNS record in seconds.
	Ttl      int    `pulumi:"ttl"`
	ZoneName string `pulumi:"zoneName"`
}

A collection of values returned by getARecord.

func LookupARecord added in v5.16.0

func LookupARecord(ctx *pulumi.Context, args *LookupARecordArgs, opts ...pulumi.InvokeOption) (*LookupARecordResult, error)

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/dns"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := dns.LookupARecord(ctx, &dns.LookupARecordArgs{
			Name:              "test",
			ZoneName:          "test-zone",
			ResourceGroupName: "test-rg",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("dnsARecordId", example.Id)
		return nil
	})
}

```

type LookupARecordResultOutput added in v5.16.0

type LookupARecordResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getARecord.

func LookupARecordOutput added in v5.16.0

func LookupARecordOutput(ctx *pulumi.Context, args LookupARecordOutputArgs, opts ...pulumi.InvokeOption) LookupARecordResultOutput

func (LookupARecordResultOutput) ElementType added in v5.16.0

func (LookupARecordResultOutput) ElementType() reflect.Type

func (LookupARecordResultOutput) Fqdn added in v5.16.0

The FQDN of the DNS A Record.

func (LookupARecordResultOutput) Id added in v5.16.0

The provider-assigned unique ID for this managed resource.

func (LookupARecordResultOutput) Name added in v5.16.0

func (LookupARecordResultOutput) Records added in v5.16.0

List of IPv4 Addresses.

func (LookupARecordResultOutput) ResourceGroupName added in v5.16.0

func (o LookupARecordResultOutput) ResourceGroupName() pulumi.StringOutput

func (LookupARecordResultOutput) Tags added in v5.16.0

A mapping of tags assigned to the DNS A Record.

func (LookupARecordResultOutput) TargetResourceId added in v5.16.0

func (o LookupARecordResultOutput) TargetResourceId() pulumi.StringOutput

The Azure resource id of the target object from where the dns resource value is taken.

func (LookupARecordResultOutput) ToLookupARecordResultOutput added in v5.16.0

func (o LookupARecordResultOutput) ToLookupARecordResultOutput() LookupARecordResultOutput

func (LookupARecordResultOutput) ToLookupARecordResultOutputWithContext added in v5.16.0

func (o LookupARecordResultOutput) ToLookupARecordResultOutputWithContext(ctx context.Context) LookupARecordResultOutput

func (LookupARecordResultOutput) Ttl added in v5.16.0

The Time To Live (TTL) of the DNS record in seconds.

func (LookupARecordResultOutput) ZoneName added in v5.16.0

type LookupMxRecordArgs added in v5.16.0

type LookupMxRecordArgs struct {
	// The name of the DNS MX Record.
	Name *string `pulumi:"name"`
	// Specifies the resource group where the DNS Zone (parent resource) exists.
	ResourceGroupName string `pulumi:"resourceGroupName"`
	// Specifies the DNS Zone where the resource exists.
	ZoneName string `pulumi:"zoneName"`
}

A collection of arguments for invoking getMxRecord.

type LookupMxRecordOutputArgs added in v5.16.0

type LookupMxRecordOutputArgs struct {
	// The name of the DNS MX Record.
	Name pulumi.StringPtrInput `pulumi:"name"`
	// Specifies the resource group where the DNS Zone (parent resource) exists.
	ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"`
	// Specifies the DNS Zone where the resource exists.
	ZoneName pulumi.StringInput `pulumi:"zoneName"`
}

A collection of arguments for invoking getMxRecord.

func (LookupMxRecordOutputArgs) ElementType added in v5.16.0

func (LookupMxRecordOutputArgs) ElementType() reflect.Type

type LookupMxRecordResult added in v5.16.0

type LookupMxRecordResult struct {
	// The FQDN of the DNS MX Record.
	Fqdn string `pulumi:"fqdn"`
	// The provider-assigned unique ID for this managed resource.
	Id   string  `pulumi:"id"`
	Name *string `pulumi:"name"`
	// A list of values that make up the MX record. Each `record` block supports fields documented below.
	Records           []GetMxRecordRecord `pulumi:"records"`
	ResourceGroupName string              `pulumi:"resourceGroupName"`
	// A mapping of tags assigned to the resource.
	Tags map[string]string `pulumi:"tags"`
	// The Time To Live (TTL) of the DNS record in seconds.
	Ttl      int    `pulumi:"ttl"`
	ZoneName string `pulumi:"zoneName"`
}

A collection of values returned by getMxRecord.

func LookupMxRecord added in v5.16.0

func LookupMxRecord(ctx *pulumi.Context, args *LookupMxRecordArgs, opts ...pulumi.InvokeOption) (*LookupMxRecordResult, error)

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/dns"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := dns.NewMxRecord(ctx, "example", &dns.MxRecordArgs{
			ZoneName:          pulumi.String("test-zone"),
			ResourceGroupName: pulumi.String("test-rg"),
		})
		if err != nil {
			return err
		}
		ctx.Export("dnsMxRecordId", example.ID())
		return nil
	})
}

```

type LookupMxRecordResultOutput added in v5.16.0

type LookupMxRecordResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getMxRecord.

func LookupMxRecordOutput added in v5.16.0

func LookupMxRecordOutput(ctx *pulumi.Context, args LookupMxRecordOutputArgs, opts ...pulumi.InvokeOption) LookupMxRecordResultOutput

func (LookupMxRecordResultOutput) ElementType added in v5.16.0

func (LookupMxRecordResultOutput) ElementType() reflect.Type

func (LookupMxRecordResultOutput) Fqdn added in v5.16.0

The FQDN of the DNS MX Record.

func (LookupMxRecordResultOutput) Id added in v5.16.0

The provider-assigned unique ID for this managed resource.

func (LookupMxRecordResultOutput) Name added in v5.16.0

func (LookupMxRecordResultOutput) Records added in v5.16.0

A list of values that make up the MX record. Each `record` block supports fields documented below.

func (LookupMxRecordResultOutput) ResourceGroupName added in v5.16.0

func (o LookupMxRecordResultOutput) ResourceGroupName() pulumi.StringOutput

func (LookupMxRecordResultOutput) Tags added in v5.16.0

A mapping of tags assigned to the resource.

func (LookupMxRecordResultOutput) ToLookupMxRecordResultOutput added in v5.16.0

func (o LookupMxRecordResultOutput) ToLookupMxRecordResultOutput() LookupMxRecordResultOutput

func (LookupMxRecordResultOutput) ToLookupMxRecordResultOutputWithContext added in v5.16.0

func (o LookupMxRecordResultOutput) ToLookupMxRecordResultOutputWithContext(ctx context.Context) LookupMxRecordResultOutput

func (LookupMxRecordResultOutput) Ttl added in v5.16.0

The Time To Live (TTL) of the DNS record in seconds.

func (LookupMxRecordResultOutput) ZoneName added in v5.16.0

type LookupNsRecordArgs added in v5.16.0

type LookupNsRecordArgs struct {
	// The name of the DNS NS Record.
	Name string `pulumi:"name"`
	// Specifies the resource group where the DNS Zone (parent resource) exists.
	ResourceGroupName string `pulumi:"resourceGroupName"`
	// Specifies the DNS Zone where the resource exists.
	ZoneName string `pulumi:"zoneName"`
}

A collection of arguments for invoking getNsRecord.

type LookupNsRecordOutputArgs added in v5.16.0

type LookupNsRecordOutputArgs struct {
	// The name of the DNS NS Record.
	Name pulumi.StringInput `pulumi:"name"`
	// Specifies the resource group where the DNS Zone (parent resource) exists.
	ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"`
	// Specifies the DNS Zone where the resource exists.
	ZoneName pulumi.StringInput `pulumi:"zoneName"`
}

A collection of arguments for invoking getNsRecord.

func (LookupNsRecordOutputArgs) ElementType added in v5.16.0

func (LookupNsRecordOutputArgs) ElementType() reflect.Type

type LookupNsRecordResult added in v5.16.0

type LookupNsRecordResult struct {
	// The FQDN of the DNS NS Record.
	Fqdn string `pulumi:"fqdn"`
	// The provider-assigned unique ID for this managed resource.
	Id   string `pulumi:"id"`
	Name string `pulumi:"name"`
	// A list of values that make up the NS record.
	Records           []string `pulumi:"records"`
	ResourceGroupName string   `pulumi:"resourceGroupName"`
	// A mapping of tags assigned to the resource.
	Tags map[string]string `pulumi:"tags"`
	// The Time To Live (TTL) of the DNS record in seconds.
	Ttl      int    `pulumi:"ttl"`
	ZoneName string `pulumi:"zoneName"`
}

A collection of values returned by getNsRecord.

func LookupNsRecord added in v5.16.0

func LookupNsRecord(ctx *pulumi.Context, args *LookupNsRecordArgs, opts ...pulumi.InvokeOption) (*LookupNsRecordResult, error)

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/dns"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := dns.NewNsRecord(ctx, "example", &dns.NsRecordArgs{
			ZoneName:          pulumi.String("test-zone"),
			ResourceGroupName: pulumi.String("test-rg"),
		})
		if err != nil {
			return err
		}
		ctx.Export("dnsNsRecordId", example.ID())
		return nil
	})
}

```

type LookupNsRecordResultOutput added in v5.16.0

type LookupNsRecordResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getNsRecord.

func LookupNsRecordOutput added in v5.16.0

func LookupNsRecordOutput(ctx *pulumi.Context, args LookupNsRecordOutputArgs, opts ...pulumi.InvokeOption) LookupNsRecordResultOutput

func (LookupNsRecordResultOutput) ElementType added in v5.16.0

func (LookupNsRecordResultOutput) ElementType() reflect.Type

func (LookupNsRecordResultOutput) Fqdn added in v5.16.0

The FQDN of the DNS NS Record.

func (LookupNsRecordResultOutput) Id added in v5.16.0

The provider-assigned unique ID for this managed resource.

func (LookupNsRecordResultOutput) Name added in v5.16.0

func (LookupNsRecordResultOutput) Records added in v5.16.0

A list of values that make up the NS record.

func (LookupNsRecordResultOutput) ResourceGroupName added in v5.16.0

func (o LookupNsRecordResultOutput) ResourceGroupName() pulumi.StringOutput

func (LookupNsRecordResultOutput) Tags added in v5.16.0

A mapping of tags assigned to the resource.

func (LookupNsRecordResultOutput) ToLookupNsRecordResultOutput added in v5.16.0

func (o LookupNsRecordResultOutput) ToLookupNsRecordResultOutput() LookupNsRecordResultOutput

func (LookupNsRecordResultOutput) ToLookupNsRecordResultOutputWithContext added in v5.16.0

func (o LookupNsRecordResultOutput) ToLookupNsRecordResultOutputWithContext(ctx context.Context) LookupNsRecordResultOutput

func (LookupNsRecordResultOutput) Ttl added in v5.16.0

The Time To Live (TTL) of the DNS record in seconds.

func (LookupNsRecordResultOutput) ZoneName added in v5.16.0

type LookupPtrRecordArgs added in v5.16.0

type LookupPtrRecordArgs struct {
	// The name of the DNS PTR Record.
	Name string `pulumi:"name"`
	// Specifies the resource group where the DNS Zone (parent resource) exists.
	ResourceGroupName string `pulumi:"resourceGroupName"`
	// Specifies the DNS Zone where the resource exists.
	ZoneName string `pulumi:"zoneName"`
}

A collection of arguments for invoking getPtrRecord.

type LookupPtrRecordOutputArgs added in v5.16.0

type LookupPtrRecordOutputArgs struct {
	// The name of the DNS PTR Record.
	Name pulumi.StringInput `pulumi:"name"`
	// Specifies the resource group where the DNS Zone (parent resource) exists.
	ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"`
	// Specifies the DNS Zone where the resource exists.
	ZoneName pulumi.StringInput `pulumi:"zoneName"`
}

A collection of arguments for invoking getPtrRecord.

func (LookupPtrRecordOutputArgs) ElementType added in v5.16.0

func (LookupPtrRecordOutputArgs) ElementType() reflect.Type

type LookupPtrRecordResult added in v5.16.0

type LookupPtrRecordResult struct {
	// The FQDN of the DNS PTR Record.
	Fqdn string `pulumi:"fqdn"`
	// The provider-assigned unique ID for this managed resource.
	Id   string `pulumi:"id"`
	Name string `pulumi:"name"`
	// List of Fully Qualified Domain Names.
	Records           []string `pulumi:"records"`
	ResourceGroupName string   `pulumi:"resourceGroupName"`
	// A mapping of tags assigned to the resource.
	Tags map[string]string `pulumi:"tags"`
	// The Time To Live (TTL) of the DNS record in seconds.
	Ttl      int    `pulumi:"ttl"`
	ZoneName string `pulumi:"zoneName"`
}

A collection of values returned by getPtrRecord.

func LookupPtrRecord added in v5.16.0

func LookupPtrRecord(ctx *pulumi.Context, args *LookupPtrRecordArgs, opts ...pulumi.InvokeOption) (*LookupPtrRecordResult, error)

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/dns"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := dns.NewPtrRecord(ctx, "example", &dns.PtrRecordArgs{
			ZoneName:          pulumi.String("test-zone"),
			ResourceGroupName: pulumi.String("test-rg"),
		})
		if err != nil {
			return err
		}
		ctx.Export("dnsPtrRecordId", example.ID())
		return nil
	})
}

```

type LookupPtrRecordResultOutput added in v5.16.0

type LookupPtrRecordResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getPtrRecord.

func LookupPtrRecordOutput added in v5.16.0

func (LookupPtrRecordResultOutput) ElementType added in v5.16.0

func (LookupPtrRecordResultOutput) Fqdn added in v5.16.0

The FQDN of the DNS PTR Record.

func (LookupPtrRecordResultOutput) Id added in v5.16.0

The provider-assigned unique ID for this managed resource.

func (LookupPtrRecordResultOutput) Name added in v5.16.0

func (LookupPtrRecordResultOutput) Records added in v5.16.0

List of Fully Qualified Domain Names.

func (LookupPtrRecordResultOutput) ResourceGroupName added in v5.16.0

func (o LookupPtrRecordResultOutput) ResourceGroupName() pulumi.StringOutput

func (LookupPtrRecordResultOutput) Tags added in v5.16.0

A mapping of tags assigned to the resource.

func (LookupPtrRecordResultOutput) ToLookupPtrRecordResultOutput added in v5.16.0

func (o LookupPtrRecordResultOutput) ToLookupPtrRecordResultOutput() LookupPtrRecordResultOutput

func (LookupPtrRecordResultOutput) ToLookupPtrRecordResultOutputWithContext added in v5.16.0

func (o LookupPtrRecordResultOutput) ToLookupPtrRecordResultOutputWithContext(ctx context.Context) LookupPtrRecordResultOutput

func (LookupPtrRecordResultOutput) Ttl added in v5.16.0

The Time To Live (TTL) of the DNS record in seconds.

func (LookupPtrRecordResultOutput) ZoneName added in v5.16.0

type LookupSrvRecordArgs added in v5.16.0

type LookupSrvRecordArgs struct {
	// The name of the DNS SRV Record.
	Name string `pulumi:"name"`
	// Specifies the resource group where the DNS Zone (parent resource) exists.
	ResourceGroupName string `pulumi:"resourceGroupName"`
	// Specifies the DNS Zone where the resource exists.
	ZoneName string `pulumi:"zoneName"`
}

A collection of arguments for invoking getSrvRecord.

type LookupSrvRecordOutputArgs added in v5.16.0

type LookupSrvRecordOutputArgs struct {
	// The name of the DNS SRV Record.
	Name pulumi.StringInput `pulumi:"name"`
	// Specifies the resource group where the DNS Zone (parent resource) exists.
	ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"`
	// Specifies the DNS Zone where the resource exists.
	ZoneName pulumi.StringInput `pulumi:"zoneName"`
}

A collection of arguments for invoking getSrvRecord.

func (LookupSrvRecordOutputArgs) ElementType added in v5.16.0

func (LookupSrvRecordOutputArgs) ElementType() reflect.Type

type LookupSrvRecordResult added in v5.16.0

type LookupSrvRecordResult struct {
	// The FQDN of the DNS SRV Record.
	Fqdn string `pulumi:"fqdn"`
	// The provider-assigned unique ID for this managed resource.
	Id   string `pulumi:"id"`
	Name string `pulumi:"name"`
	// A list of values that make up the SRV record. Each `record` block supports fields documented below.
	Records           []GetSrvRecordRecord `pulumi:"records"`
	ResourceGroupName string               `pulumi:"resourceGroupName"`
	// A mapping of tags assigned to the resource.
	Tags map[string]string `pulumi:"tags"`
	// The Time To Live (TTL) of the DNS record in seconds.
	Ttl      int    `pulumi:"ttl"`
	ZoneName string `pulumi:"zoneName"`
}

A collection of values returned by getSrvRecord.

func LookupSrvRecord added in v5.16.0

func LookupSrvRecord(ctx *pulumi.Context, args *LookupSrvRecordArgs, opts ...pulumi.InvokeOption) (*LookupSrvRecordResult, error)

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/dns"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := dns.NewSrvRecord(ctx, "example", &dns.SrvRecordArgs{
			ZoneName:          pulumi.String("test-zone"),
			ResourceGroupName: pulumi.String("test-rg"),
		})
		if err != nil {
			return err
		}
		ctx.Export("dnsSrvRecordId", example.ID())
		return nil
	})
}

```

type LookupSrvRecordResultOutput added in v5.16.0

type LookupSrvRecordResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getSrvRecord.

func LookupSrvRecordOutput added in v5.16.0

func (LookupSrvRecordResultOutput) ElementType added in v5.16.0

func (LookupSrvRecordResultOutput) Fqdn added in v5.16.0

The FQDN of the DNS SRV Record.

func (LookupSrvRecordResultOutput) Id added in v5.16.0

The provider-assigned unique ID for this managed resource.

func (LookupSrvRecordResultOutput) Name added in v5.16.0

func (LookupSrvRecordResultOutput) Records added in v5.16.0

A list of values that make up the SRV record. Each `record` block supports fields documented below.

func (LookupSrvRecordResultOutput) ResourceGroupName added in v5.16.0

func (o LookupSrvRecordResultOutput) ResourceGroupName() pulumi.StringOutput

func (LookupSrvRecordResultOutput) Tags added in v5.16.0

A mapping of tags assigned to the resource.

func (LookupSrvRecordResultOutput) ToLookupSrvRecordResultOutput added in v5.16.0

func (o LookupSrvRecordResultOutput) ToLookupSrvRecordResultOutput() LookupSrvRecordResultOutput

func (LookupSrvRecordResultOutput) ToLookupSrvRecordResultOutputWithContext added in v5.16.0

func (o LookupSrvRecordResultOutput) ToLookupSrvRecordResultOutputWithContext(ctx context.Context) LookupSrvRecordResultOutput

func (LookupSrvRecordResultOutput) Ttl added in v5.16.0

The Time To Live (TTL) of the DNS record in seconds.

func (LookupSrvRecordResultOutput) ZoneName added in v5.16.0

type LookupTxtRecordArgs added in v5.16.0

type LookupTxtRecordArgs struct {
	// The name of the DNS TXT Record.
	Name string `pulumi:"name"`
	// Specifies the resource group where the DNS Zone (parent resource) exists.
	ResourceGroupName string `pulumi:"resourceGroupName"`
	// Specifies the DNS Zone where the resource exists.
	ZoneName string `pulumi:"zoneName"`
}

A collection of arguments for invoking getTxtRecord.

type LookupTxtRecordOutputArgs added in v5.16.0

type LookupTxtRecordOutputArgs struct {
	// The name of the DNS TXT Record.
	Name pulumi.StringInput `pulumi:"name"`
	// Specifies the resource group where the DNS Zone (parent resource) exists.
	ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"`
	// Specifies the DNS Zone where the resource exists.
	ZoneName pulumi.StringInput `pulumi:"zoneName"`
}

A collection of arguments for invoking getTxtRecord.

func (LookupTxtRecordOutputArgs) ElementType added in v5.16.0

func (LookupTxtRecordOutputArgs) ElementType() reflect.Type

type LookupTxtRecordResult added in v5.16.0

type LookupTxtRecordResult struct {
	// The FQDN of the DNS TXT Record.
	Fqdn string `pulumi:"fqdn"`
	// The provider-assigned unique ID for this managed resource.
	Id   string `pulumi:"id"`
	Name string `pulumi:"name"`
	// A list of values that make up the txt record. Each `record` block supports fields documented below.
	Records           []GetTxtRecordRecord `pulumi:"records"`
	ResourceGroupName string               `pulumi:"resourceGroupName"`
	// A mapping of tags assigned to the resource.
	Tags map[string]string `pulumi:"tags"`
	// The Time To Live (TTL) of the DNS record in seconds.
	Ttl      int    `pulumi:"ttl"`
	ZoneName string `pulumi:"zoneName"`
}

A collection of values returned by getTxtRecord.

func LookupTxtRecord added in v5.16.0

func LookupTxtRecord(ctx *pulumi.Context, args *LookupTxtRecordArgs, opts ...pulumi.InvokeOption) (*LookupTxtRecordResult, error)

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/dns"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := dns.NewTxtRecord(ctx, "example", &dns.TxtRecordArgs{
			ZoneName:          pulumi.String("test-zone"),
			ResourceGroupName: pulumi.String("test-rg"),
		})
		if err != nil {
			return err
		}
		ctx.Export("dnsTxtRecordId", example.ID())
		return nil
	})
}

```

type LookupTxtRecordResultOutput added in v5.16.0

type LookupTxtRecordResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getTxtRecord.

func LookupTxtRecordOutput added in v5.16.0

func (LookupTxtRecordResultOutput) ElementType added in v5.16.0

func (LookupTxtRecordResultOutput) Fqdn added in v5.16.0

The FQDN of the DNS TXT Record.

func (LookupTxtRecordResultOutput) Id added in v5.16.0

The provider-assigned unique ID for this managed resource.

func (LookupTxtRecordResultOutput) Name added in v5.16.0

func (LookupTxtRecordResultOutput) Records added in v5.16.0

A list of values that make up the txt record. Each `record` block supports fields documented below.

func (LookupTxtRecordResultOutput) ResourceGroupName added in v5.16.0

func (o LookupTxtRecordResultOutput) ResourceGroupName() pulumi.StringOutput

func (LookupTxtRecordResultOutput) Tags added in v5.16.0

A mapping of tags assigned to the resource.

func (LookupTxtRecordResultOutput) ToLookupTxtRecordResultOutput added in v5.16.0

func (o LookupTxtRecordResultOutput) ToLookupTxtRecordResultOutput() LookupTxtRecordResultOutput

func (LookupTxtRecordResultOutput) ToLookupTxtRecordResultOutputWithContext added in v5.16.0

func (o LookupTxtRecordResultOutput) ToLookupTxtRecordResultOutputWithContext(ctx context.Context) LookupTxtRecordResultOutput

func (LookupTxtRecordResultOutput) Ttl added in v5.16.0

The Time To Live (TTL) of the DNS record in seconds.

func (LookupTxtRecordResultOutput) ZoneName added in v5.16.0

type LookupZoneArgs

type LookupZoneArgs struct {
	// The name of the DNS Zone.
	Name string `pulumi:"name"`
	// The Name of the Resource Group where the DNS Zone exists.
	// If the Name of the Resource Group is not provided, the first DNS Zone from the list of DNS Zones
	// in your subscription that matches `name` will be returned.
	ResourceGroupName *string `pulumi:"resourceGroupName"`
}

A collection of arguments for invoking getZone.

type LookupZoneOutputArgs

type LookupZoneOutputArgs struct {
	// The name of the DNS Zone.
	Name pulumi.StringInput `pulumi:"name"`
	// The Name of the Resource Group where the DNS Zone exists.
	// If the Name of the Resource Group is not provided, the first DNS Zone from the list of DNS Zones
	// in your subscription that matches `name` will be returned.
	ResourceGroupName pulumi.StringPtrInput `pulumi:"resourceGroupName"`
}

A collection of arguments for invoking getZone.

func (LookupZoneOutputArgs) ElementType

func (LookupZoneOutputArgs) ElementType() reflect.Type

type LookupZoneResult

type LookupZoneResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// Maximum number of Records in the zone.
	MaxNumberOfRecordSets int    `pulumi:"maxNumberOfRecordSets"`
	Name                  string `pulumi:"name"`
	// A list of values that make up the NS record for the zone.
	NameServers []string `pulumi:"nameServers"`
	// The number of records already in the zone.
	NumberOfRecordSets int    `pulumi:"numberOfRecordSets"`
	ResourceGroupName  string `pulumi:"resourceGroupName"`
	// A mapping of tags assigned to the DNS Zone.
	Tags map[string]string `pulumi:"tags"`
}

A collection of values returned by getZone.

func LookupZone

func LookupZone(ctx *pulumi.Context, args *LookupZoneArgs, opts ...pulumi.InvokeOption) (*LookupZoneResult, error)

Use this data source to access information about an existing DNS Zone.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/dns"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := dns.LookupZone(ctx, &dns.LookupZoneArgs{
			Name:              "search-eventhubns",
			ResourceGroupName: pulumi.StringRef("search-service"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("dnsZoneId", example.Id)
		return nil
	})
}

```

type LookupZoneResultOutput

type LookupZoneResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getZone.

func (LookupZoneResultOutput) ElementType

func (LookupZoneResultOutput) ElementType() reflect.Type

func (LookupZoneResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (LookupZoneResultOutput) MaxNumberOfRecordSets

func (o LookupZoneResultOutput) MaxNumberOfRecordSets() pulumi.IntOutput

Maximum number of Records in the zone.

func (LookupZoneResultOutput) Name

func (LookupZoneResultOutput) NameServers

A list of values that make up the NS record for the zone.

func (LookupZoneResultOutput) NumberOfRecordSets

func (o LookupZoneResultOutput) NumberOfRecordSets() pulumi.IntOutput

The number of records already in the zone.

func (LookupZoneResultOutput) ResourceGroupName

func (o LookupZoneResultOutput) ResourceGroupName() pulumi.StringOutput

func (LookupZoneResultOutput) Tags

A mapping of tags assigned to the DNS Zone.

func (LookupZoneResultOutput) ToLookupZoneResultOutput

func (o LookupZoneResultOutput) ToLookupZoneResultOutput() LookupZoneResultOutput

func (LookupZoneResultOutput) ToLookupZoneResultOutputWithContext

func (o LookupZoneResultOutput) ToLookupZoneResultOutputWithContext(ctx context.Context) LookupZoneResultOutput

type MxRecord

type MxRecord struct {
	pulumi.CustomResourceState

	// The FQDN of the DNS MX Record.
	Fqdn pulumi.StringOutput `pulumi:"fqdn"`
	// The name of the DNS MX Record. Defaults to `@` (root). Changing this forces a new resource to be created.
	Name pulumi.StringOutput `pulumi:"name"`
	// A list of values that make up the MX record. Each `record` block supports fields documented below.
	Records MxRecordRecordArrayOutput `pulumi:"records"`
	// Specifies the resource group where the DNS Zone (parent resource) exists. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"`
	// A mapping of tags to assign to the resource.
	Tags pulumi.StringMapOutput `pulumi:"tags"`
	// The Time To Live (TTL) of the DNS record in seconds.
	Ttl pulumi.IntOutput `pulumi:"ttl"`
	// Specifies the DNS Zone where the resource exists. Changing this forces a new resource to be created.
	ZoneName pulumi.StringOutput `pulumi:"zoneName"`
}

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/dns"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		exampleZone, err := dns.NewZone(ctx, "exampleZone", &dns.ZoneArgs{
			ResourceGroupName: exampleResourceGroup.Name,
		})
		if err != nil {
			return err
		}
		_, err = dns.NewMxRecord(ctx, "exampleMxRecord", &dns.MxRecordArgs{
			ZoneName:          exampleZone.Name,
			ResourceGroupName: exampleResourceGroup.Name,
			Ttl:               pulumi.Int(300),
			Records: dns.MxRecordRecordArray{
				&dns.MxRecordRecordArgs{
					Preference: pulumi.String("10"),
					Exchange:   pulumi.String("mail1.contoso.com"),
				},
				&dns.MxRecordRecordArgs{
					Preference: pulumi.String("20"),
					Exchange:   pulumi.String("mail2.contoso.com"),
				},
			},
			Tags: pulumi.StringMap{
				"Environment": pulumi.String("Production"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

MX records can be imported using the `resource id`, e.g.

```sh

$ pulumi import azure:dns/mxRecord:MxRecord example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Network/dnsZones/zone1/MX/myrecord1

```

func GetMxRecord

func GetMxRecord(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *MxRecordState, opts ...pulumi.ResourceOption) (*MxRecord, error)

GetMxRecord gets an existing MxRecord resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewMxRecord

func NewMxRecord(ctx *pulumi.Context,
	name string, args *MxRecordArgs, opts ...pulumi.ResourceOption) (*MxRecord, error)

NewMxRecord registers a new resource with the given unique name, arguments, and options.

func (*MxRecord) ElementType

func (*MxRecord) ElementType() reflect.Type

func (*MxRecord) ToMxRecordOutput

func (i *MxRecord) ToMxRecordOutput() MxRecordOutput

func (*MxRecord) ToMxRecordOutputWithContext

func (i *MxRecord) ToMxRecordOutputWithContext(ctx context.Context) MxRecordOutput

type MxRecordArgs

type MxRecordArgs struct {
	// The name of the DNS MX Record. Defaults to `@` (root). Changing this forces a new resource to be created.
	Name pulumi.StringPtrInput
	// A list of values that make up the MX record. Each `record` block supports fields documented below.
	Records MxRecordRecordArrayInput
	// Specifies the resource group where the DNS Zone (parent resource) exists. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringInput
	// A mapping of tags to assign to the resource.
	Tags pulumi.StringMapInput
	// The Time To Live (TTL) of the DNS record in seconds.
	Ttl pulumi.IntInput
	// Specifies the DNS Zone where the resource exists. Changing this forces a new resource to be created.
	ZoneName pulumi.StringInput
}

The set of arguments for constructing a MxRecord resource.

func (MxRecordArgs) ElementType

func (MxRecordArgs) ElementType() reflect.Type

type MxRecordArray

type MxRecordArray []MxRecordInput

func (MxRecordArray) ElementType

func (MxRecordArray) ElementType() reflect.Type

func (MxRecordArray) ToMxRecordArrayOutput

func (i MxRecordArray) ToMxRecordArrayOutput() MxRecordArrayOutput

func (MxRecordArray) ToMxRecordArrayOutputWithContext

func (i MxRecordArray) ToMxRecordArrayOutputWithContext(ctx context.Context) MxRecordArrayOutput

type MxRecordArrayInput

type MxRecordArrayInput interface {
	pulumi.Input

	ToMxRecordArrayOutput() MxRecordArrayOutput
	ToMxRecordArrayOutputWithContext(context.Context) MxRecordArrayOutput
}

MxRecordArrayInput is an input type that accepts MxRecordArray and MxRecordArrayOutput values. You can construct a concrete instance of `MxRecordArrayInput` via:

MxRecordArray{ MxRecordArgs{...} }

type MxRecordArrayOutput

type MxRecordArrayOutput struct{ *pulumi.OutputState }

func (MxRecordArrayOutput) ElementType

func (MxRecordArrayOutput) ElementType() reflect.Type

func (MxRecordArrayOutput) Index

func (MxRecordArrayOutput) ToMxRecordArrayOutput

func (o MxRecordArrayOutput) ToMxRecordArrayOutput() MxRecordArrayOutput

func (MxRecordArrayOutput) ToMxRecordArrayOutputWithContext

func (o MxRecordArrayOutput) ToMxRecordArrayOutputWithContext(ctx context.Context) MxRecordArrayOutput

type MxRecordInput

type MxRecordInput interface {
	pulumi.Input

	ToMxRecordOutput() MxRecordOutput
	ToMxRecordOutputWithContext(ctx context.Context) MxRecordOutput
}

type MxRecordMap

type MxRecordMap map[string]MxRecordInput

func (MxRecordMap) ElementType

func (MxRecordMap) ElementType() reflect.Type

func (MxRecordMap) ToMxRecordMapOutput

func (i MxRecordMap) ToMxRecordMapOutput() MxRecordMapOutput

func (MxRecordMap) ToMxRecordMapOutputWithContext

func (i MxRecordMap) ToMxRecordMapOutputWithContext(ctx context.Context) MxRecordMapOutput

type MxRecordMapInput

type MxRecordMapInput interface {
	pulumi.Input

	ToMxRecordMapOutput() MxRecordMapOutput
	ToMxRecordMapOutputWithContext(context.Context) MxRecordMapOutput
}

MxRecordMapInput is an input type that accepts MxRecordMap and MxRecordMapOutput values. You can construct a concrete instance of `MxRecordMapInput` via:

MxRecordMap{ "key": MxRecordArgs{...} }

type MxRecordMapOutput

type MxRecordMapOutput struct{ *pulumi.OutputState }

func (MxRecordMapOutput) ElementType

func (MxRecordMapOutput) ElementType() reflect.Type

func (MxRecordMapOutput) MapIndex

func (MxRecordMapOutput) ToMxRecordMapOutput

func (o MxRecordMapOutput) ToMxRecordMapOutput() MxRecordMapOutput

func (MxRecordMapOutput) ToMxRecordMapOutputWithContext

func (o MxRecordMapOutput) ToMxRecordMapOutputWithContext(ctx context.Context) MxRecordMapOutput

type MxRecordOutput

type MxRecordOutput struct{ *pulumi.OutputState }

func (MxRecordOutput) ElementType

func (MxRecordOutput) ElementType() reflect.Type

func (MxRecordOutput) Fqdn added in v5.5.0

The FQDN of the DNS MX Record.

func (MxRecordOutput) Name added in v5.5.0

The name of the DNS MX Record. Defaults to `@` (root). Changing this forces a new resource to be created.

func (MxRecordOutput) Records added in v5.5.0

A list of values that make up the MX record. Each `record` block supports fields documented below.

func (MxRecordOutput) ResourceGroupName added in v5.5.0

func (o MxRecordOutput) ResourceGroupName() pulumi.StringOutput

Specifies the resource group where the DNS Zone (parent resource) exists. Changing this forces a new resource to be created.

func (MxRecordOutput) Tags added in v5.5.0

A mapping of tags to assign to the resource.

func (MxRecordOutput) ToMxRecordOutput

func (o MxRecordOutput) ToMxRecordOutput() MxRecordOutput

func (MxRecordOutput) ToMxRecordOutputWithContext

func (o MxRecordOutput) ToMxRecordOutputWithContext(ctx context.Context) MxRecordOutput

func (MxRecordOutput) Ttl added in v5.5.0

The Time To Live (TTL) of the DNS record in seconds.

func (MxRecordOutput) ZoneName added in v5.5.0

func (o MxRecordOutput) ZoneName() pulumi.StringOutput

Specifies the DNS Zone where the resource exists. Changing this forces a new resource to be created.

type MxRecordRecord

type MxRecordRecord struct {
	// The mail server responsible for the domain covered by the MX record.
	Exchange string `pulumi:"exchange"`
	// String representing the "preference” value of the MX records. Records with lower preference value take priority.
	Preference string `pulumi:"preference"`
}

type MxRecordRecordArgs

type MxRecordRecordArgs struct {
	// The mail server responsible for the domain covered by the MX record.
	Exchange pulumi.StringInput `pulumi:"exchange"`
	// String representing the "preference” value of the MX records. Records with lower preference value take priority.
	Preference pulumi.StringInput `pulumi:"preference"`
}

func (MxRecordRecordArgs) ElementType

func (MxRecordRecordArgs) ElementType() reflect.Type

func (MxRecordRecordArgs) ToMxRecordRecordOutput

func (i MxRecordRecordArgs) ToMxRecordRecordOutput() MxRecordRecordOutput

func (MxRecordRecordArgs) ToMxRecordRecordOutputWithContext

func (i MxRecordRecordArgs) ToMxRecordRecordOutputWithContext(ctx context.Context) MxRecordRecordOutput

type MxRecordRecordArray

type MxRecordRecordArray []MxRecordRecordInput

func (MxRecordRecordArray) ElementType

func (MxRecordRecordArray) ElementType() reflect.Type

func (MxRecordRecordArray) ToMxRecordRecordArrayOutput

func (i MxRecordRecordArray) ToMxRecordRecordArrayOutput() MxRecordRecordArrayOutput

func (MxRecordRecordArray) ToMxRecordRecordArrayOutputWithContext

func (i MxRecordRecordArray) ToMxRecordRecordArrayOutputWithContext(ctx context.Context) MxRecordRecordArrayOutput

type MxRecordRecordArrayInput

type MxRecordRecordArrayInput interface {
	pulumi.Input

	ToMxRecordRecordArrayOutput() MxRecordRecordArrayOutput
	ToMxRecordRecordArrayOutputWithContext(context.Context) MxRecordRecordArrayOutput
}

MxRecordRecordArrayInput is an input type that accepts MxRecordRecordArray and MxRecordRecordArrayOutput values. You can construct a concrete instance of `MxRecordRecordArrayInput` via:

MxRecordRecordArray{ MxRecordRecordArgs{...} }

type MxRecordRecordArrayOutput

type MxRecordRecordArrayOutput struct{ *pulumi.OutputState }

func (MxRecordRecordArrayOutput) ElementType

func (MxRecordRecordArrayOutput) ElementType() reflect.Type

func (MxRecordRecordArrayOutput) Index

func (MxRecordRecordArrayOutput) ToMxRecordRecordArrayOutput

func (o MxRecordRecordArrayOutput) ToMxRecordRecordArrayOutput() MxRecordRecordArrayOutput

func (MxRecordRecordArrayOutput) ToMxRecordRecordArrayOutputWithContext

func (o MxRecordRecordArrayOutput) ToMxRecordRecordArrayOutputWithContext(ctx context.Context) MxRecordRecordArrayOutput

type MxRecordRecordInput

type MxRecordRecordInput interface {
	pulumi.Input

	ToMxRecordRecordOutput() MxRecordRecordOutput
	ToMxRecordRecordOutputWithContext(context.Context) MxRecordRecordOutput
}

MxRecordRecordInput is an input type that accepts MxRecordRecordArgs and MxRecordRecordOutput values. You can construct a concrete instance of `MxRecordRecordInput` via:

MxRecordRecordArgs{...}

type MxRecordRecordOutput

type MxRecordRecordOutput struct{ *pulumi.OutputState }

func (MxRecordRecordOutput) ElementType

func (MxRecordRecordOutput) ElementType() reflect.Type

func (MxRecordRecordOutput) Exchange

The mail server responsible for the domain covered by the MX record.

func (MxRecordRecordOutput) Preference

func (o MxRecordRecordOutput) Preference() pulumi.StringOutput

String representing the "preference” value of the MX records. Records with lower preference value take priority.

func (MxRecordRecordOutput) ToMxRecordRecordOutput

func (o MxRecordRecordOutput) ToMxRecordRecordOutput() MxRecordRecordOutput

func (MxRecordRecordOutput) ToMxRecordRecordOutputWithContext

func (o MxRecordRecordOutput) ToMxRecordRecordOutputWithContext(ctx context.Context) MxRecordRecordOutput

type MxRecordState

type MxRecordState struct {
	// The FQDN of the DNS MX Record.
	Fqdn pulumi.StringPtrInput
	// The name of the DNS MX Record. Defaults to `@` (root). Changing this forces a new resource to be created.
	Name pulumi.StringPtrInput
	// A list of values that make up the MX record. Each `record` block supports fields documented below.
	Records MxRecordRecordArrayInput
	// Specifies the resource group where the DNS Zone (parent resource) exists. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringPtrInput
	// A mapping of tags to assign to the resource.
	Tags pulumi.StringMapInput
	// The Time To Live (TTL) of the DNS record in seconds.
	Ttl pulumi.IntPtrInput
	// Specifies the DNS Zone where the resource exists. Changing this forces a new resource to be created.
	ZoneName pulumi.StringPtrInput
}

func (MxRecordState) ElementType

func (MxRecordState) ElementType() reflect.Type

type NsRecord

type NsRecord struct {
	pulumi.CustomResourceState

	// The FQDN of the DNS NS Record.
	Fqdn pulumi.StringOutput `pulumi:"fqdn"`
	// The name of the DNS NS Record. Changing this forces a new resource to be created.
	Name pulumi.StringOutput `pulumi:"name"`
	// A list of values that make up the NS record.
	Records pulumi.StringArrayOutput `pulumi:"records"`
	// Specifies the resource group where the DNS Zone (parent resource) exists. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"`
	// A mapping of tags to assign to the resource.
	Tags pulumi.StringMapOutput `pulumi:"tags"`
	// The Time To Live (TTL) of the DNS record in seconds.
	Ttl pulumi.IntOutput `pulumi:"ttl"`
	// Specifies the DNS Zone where the resource exists. Changing this forces a new resource to be created.
	ZoneName pulumi.StringOutput `pulumi:"zoneName"`
}

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/dns"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		exampleZone, err := dns.NewZone(ctx, "exampleZone", &dns.ZoneArgs{
			ResourceGroupName: exampleResourceGroup.Name,
		})
		if err != nil {
			return err
		}
		_, err = dns.NewNsRecord(ctx, "exampleNsRecord", &dns.NsRecordArgs{
			ZoneName:          exampleZone.Name,
			ResourceGroupName: exampleResourceGroup.Name,
			Ttl:               pulumi.Int(300),
			Records: pulumi.StringArray{
				pulumi.String("ns1.contoso.com."),
				pulumi.String("ns2.contoso.com."),
			},
			Tags: pulumi.StringMap{
				"Environment": pulumi.String("Production"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

NS records can be imported using the `resource id`, e.g.

```sh

$ pulumi import azure:dns/nsRecord:NsRecord example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Network/dnsZones/zone1/NS/myrecord1

```

func GetNsRecord

func GetNsRecord(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *NsRecordState, opts ...pulumi.ResourceOption) (*NsRecord, error)

GetNsRecord gets an existing NsRecord resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewNsRecord

func NewNsRecord(ctx *pulumi.Context,
	name string, args *NsRecordArgs, opts ...pulumi.ResourceOption) (*NsRecord, error)

NewNsRecord registers a new resource with the given unique name, arguments, and options.

func (*NsRecord) ElementType

func (*NsRecord) ElementType() reflect.Type

func (*NsRecord) ToNsRecordOutput

func (i *NsRecord) ToNsRecordOutput() NsRecordOutput

func (*NsRecord) ToNsRecordOutputWithContext

func (i *NsRecord) ToNsRecordOutputWithContext(ctx context.Context) NsRecordOutput

type NsRecordArgs

type NsRecordArgs struct {
	// The name of the DNS NS Record. Changing this forces a new resource to be created.
	Name pulumi.StringPtrInput
	// A list of values that make up the NS record.
	Records pulumi.StringArrayInput
	// Specifies the resource group where the DNS Zone (parent resource) exists. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringInput
	// A mapping of tags to assign to the resource.
	Tags pulumi.StringMapInput
	// The Time To Live (TTL) of the DNS record in seconds.
	Ttl pulumi.IntInput
	// Specifies the DNS Zone where the resource exists. Changing this forces a new resource to be created.
	ZoneName pulumi.StringInput
}

The set of arguments for constructing a NsRecord resource.

func (NsRecordArgs) ElementType

func (NsRecordArgs) ElementType() reflect.Type

type NsRecordArray

type NsRecordArray []NsRecordInput

func (NsRecordArray) ElementType

func (NsRecordArray) ElementType() reflect.Type

func (NsRecordArray) ToNsRecordArrayOutput

func (i NsRecordArray) ToNsRecordArrayOutput() NsRecordArrayOutput

func (NsRecordArray) ToNsRecordArrayOutputWithContext

func (i NsRecordArray) ToNsRecordArrayOutputWithContext(ctx context.Context) NsRecordArrayOutput

type NsRecordArrayInput

type NsRecordArrayInput interface {
	pulumi.Input

	ToNsRecordArrayOutput() NsRecordArrayOutput
	ToNsRecordArrayOutputWithContext(context.Context) NsRecordArrayOutput
}

NsRecordArrayInput is an input type that accepts NsRecordArray and NsRecordArrayOutput values. You can construct a concrete instance of `NsRecordArrayInput` via:

NsRecordArray{ NsRecordArgs{...} }

type NsRecordArrayOutput

type NsRecordArrayOutput struct{ *pulumi.OutputState }

func (NsRecordArrayOutput) ElementType

func (NsRecordArrayOutput) ElementType() reflect.Type

func (NsRecordArrayOutput) Index

func (NsRecordArrayOutput) ToNsRecordArrayOutput

func (o NsRecordArrayOutput) ToNsRecordArrayOutput() NsRecordArrayOutput

func (NsRecordArrayOutput) ToNsRecordArrayOutputWithContext

func (o NsRecordArrayOutput) ToNsRecordArrayOutputWithContext(ctx context.Context) NsRecordArrayOutput

type NsRecordInput

type NsRecordInput interface {
	pulumi.Input

	ToNsRecordOutput() NsRecordOutput
	ToNsRecordOutputWithContext(ctx context.Context) NsRecordOutput
}

type NsRecordMap

type NsRecordMap map[string]NsRecordInput

func (NsRecordMap) ElementType

func (NsRecordMap) ElementType() reflect.Type

func (NsRecordMap) ToNsRecordMapOutput

func (i NsRecordMap) ToNsRecordMapOutput() NsRecordMapOutput

func (NsRecordMap) ToNsRecordMapOutputWithContext

func (i NsRecordMap) ToNsRecordMapOutputWithContext(ctx context.Context) NsRecordMapOutput

type NsRecordMapInput

type NsRecordMapInput interface {
	pulumi.Input

	ToNsRecordMapOutput() NsRecordMapOutput
	ToNsRecordMapOutputWithContext(context.Context) NsRecordMapOutput
}

NsRecordMapInput is an input type that accepts NsRecordMap and NsRecordMapOutput values. You can construct a concrete instance of `NsRecordMapInput` via:

NsRecordMap{ "key": NsRecordArgs{...} }

type NsRecordMapOutput

type NsRecordMapOutput struct{ *pulumi.OutputState }

func (NsRecordMapOutput) ElementType

func (NsRecordMapOutput) ElementType() reflect.Type

func (NsRecordMapOutput) MapIndex

func (NsRecordMapOutput) ToNsRecordMapOutput

func (o NsRecordMapOutput) ToNsRecordMapOutput() NsRecordMapOutput

func (NsRecordMapOutput) ToNsRecordMapOutputWithContext

func (o NsRecordMapOutput) ToNsRecordMapOutputWithContext(ctx context.Context) NsRecordMapOutput

type NsRecordOutput

type NsRecordOutput struct{ *pulumi.OutputState }

func (NsRecordOutput) ElementType

func (NsRecordOutput) ElementType() reflect.Type

func (NsRecordOutput) Fqdn added in v5.5.0

The FQDN of the DNS NS Record.

func (NsRecordOutput) Name added in v5.5.0

The name of the DNS NS Record. Changing this forces a new resource to be created.

func (NsRecordOutput) Records added in v5.5.0

A list of values that make up the NS record.

func (NsRecordOutput) ResourceGroupName added in v5.5.0

func (o NsRecordOutput) ResourceGroupName() pulumi.StringOutput

Specifies the resource group where the DNS Zone (parent resource) exists. Changing this forces a new resource to be created.

func (NsRecordOutput) Tags added in v5.5.0

A mapping of tags to assign to the resource.

func (NsRecordOutput) ToNsRecordOutput

func (o NsRecordOutput) ToNsRecordOutput() NsRecordOutput

func (NsRecordOutput) ToNsRecordOutputWithContext

func (o NsRecordOutput) ToNsRecordOutputWithContext(ctx context.Context) NsRecordOutput

func (NsRecordOutput) Ttl added in v5.5.0

The Time To Live (TTL) of the DNS record in seconds.

func (NsRecordOutput) ZoneName added in v5.5.0

func (o NsRecordOutput) ZoneName() pulumi.StringOutput

Specifies the DNS Zone where the resource exists. Changing this forces a new resource to be created.

type NsRecordState

type NsRecordState struct {
	// The FQDN of the DNS NS Record.
	Fqdn pulumi.StringPtrInput
	// The name of the DNS NS Record. Changing this forces a new resource to be created.
	Name pulumi.StringPtrInput
	// A list of values that make up the NS record.
	Records pulumi.StringArrayInput
	// Specifies the resource group where the DNS Zone (parent resource) exists. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringPtrInput
	// A mapping of tags to assign to the resource.
	Tags pulumi.StringMapInput
	// The Time To Live (TTL) of the DNS record in seconds.
	Ttl pulumi.IntPtrInput
	// Specifies the DNS Zone where the resource exists. Changing this forces a new resource to be created.
	ZoneName pulumi.StringPtrInput
}

func (NsRecordState) ElementType

func (NsRecordState) ElementType() reflect.Type

type PtrRecord

type PtrRecord struct {
	pulumi.CustomResourceState

	// The FQDN of the DNS PTR Record.
	Fqdn pulumi.StringOutput `pulumi:"fqdn"`
	// The name of the DNS PTR Record. Changing this forces a new resource to be created.
	Name pulumi.StringOutput `pulumi:"name"`
	// List of Fully Qualified Domain Names.
	Records pulumi.StringArrayOutput `pulumi:"records"`
	// Specifies the resource group where the DNS Zone (parent resource) exists. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"`
	// A mapping of tags to assign to the resource.
	Tags pulumi.StringMapOutput `pulumi:"tags"`
	// The Time To Live (TTL) of the DNS record in seconds.
	Ttl pulumi.IntOutput `pulumi:"ttl"`
	// Specifies the DNS Zone where the resource exists. Changing this forces a new resource to be created.
	ZoneName pulumi.StringOutput `pulumi:"zoneName"`
}

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/dns"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		exampleZone, err := dns.NewZone(ctx, "exampleZone", &dns.ZoneArgs{
			ResourceGroupName: exampleResourceGroup.Name,
		})
		if err != nil {
			return err
		}
		_, err = dns.NewPtrRecord(ctx, "examplePtrRecord", &dns.PtrRecordArgs{
			ZoneName:          exampleZone.Name,
			ResourceGroupName: exampleResourceGroup.Name,
			Ttl:               pulumi.Int(300),
			Records: pulumi.StringArray{
				pulumi.String("yourdomain.com"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

PTR records can be imported using the `resource id`, e.g.

```sh

$ pulumi import azure:dns/ptrRecord:PtrRecord example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Network/dnsZones/zone1/PTR/myrecord1

```

func GetPtrRecord

func GetPtrRecord(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *PtrRecordState, opts ...pulumi.ResourceOption) (*PtrRecord, error)

GetPtrRecord gets an existing PtrRecord resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewPtrRecord

func NewPtrRecord(ctx *pulumi.Context,
	name string, args *PtrRecordArgs, opts ...pulumi.ResourceOption) (*PtrRecord, error)

NewPtrRecord registers a new resource with the given unique name, arguments, and options.

func (*PtrRecord) ElementType

func (*PtrRecord) ElementType() reflect.Type

func (*PtrRecord) ToPtrRecordOutput

func (i *PtrRecord) ToPtrRecordOutput() PtrRecordOutput

func (*PtrRecord) ToPtrRecordOutputWithContext

func (i *PtrRecord) ToPtrRecordOutputWithContext(ctx context.Context) PtrRecordOutput

type PtrRecordArgs

type PtrRecordArgs struct {
	// The name of the DNS PTR Record. Changing this forces a new resource to be created.
	Name pulumi.StringPtrInput
	// List of Fully Qualified Domain Names.
	Records pulumi.StringArrayInput
	// Specifies the resource group where the DNS Zone (parent resource) exists. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringInput
	// A mapping of tags to assign to the resource.
	Tags pulumi.StringMapInput
	// The Time To Live (TTL) of the DNS record in seconds.
	Ttl pulumi.IntInput
	// Specifies the DNS Zone where the resource exists. Changing this forces a new resource to be created.
	ZoneName pulumi.StringInput
}

The set of arguments for constructing a PtrRecord resource.

func (PtrRecordArgs) ElementType

func (PtrRecordArgs) ElementType() reflect.Type

type PtrRecordArray

type PtrRecordArray []PtrRecordInput

func (PtrRecordArray) ElementType

func (PtrRecordArray) ElementType() reflect.Type

func (PtrRecordArray) ToPtrRecordArrayOutput

func (i PtrRecordArray) ToPtrRecordArrayOutput() PtrRecordArrayOutput

func (PtrRecordArray) ToPtrRecordArrayOutputWithContext

func (i PtrRecordArray) ToPtrRecordArrayOutputWithContext(ctx context.Context) PtrRecordArrayOutput

type PtrRecordArrayInput

type PtrRecordArrayInput interface {
	pulumi.Input

	ToPtrRecordArrayOutput() PtrRecordArrayOutput
	ToPtrRecordArrayOutputWithContext(context.Context) PtrRecordArrayOutput
}

PtrRecordArrayInput is an input type that accepts PtrRecordArray and PtrRecordArrayOutput values. You can construct a concrete instance of `PtrRecordArrayInput` via:

PtrRecordArray{ PtrRecordArgs{...} }

type PtrRecordArrayOutput

type PtrRecordArrayOutput struct{ *pulumi.OutputState }

func (PtrRecordArrayOutput) ElementType

func (PtrRecordArrayOutput) ElementType() reflect.Type

func (PtrRecordArrayOutput) Index

func (PtrRecordArrayOutput) ToPtrRecordArrayOutput

func (o PtrRecordArrayOutput) ToPtrRecordArrayOutput() PtrRecordArrayOutput

func (PtrRecordArrayOutput) ToPtrRecordArrayOutputWithContext

func (o PtrRecordArrayOutput) ToPtrRecordArrayOutputWithContext(ctx context.Context) PtrRecordArrayOutput

type PtrRecordInput

type PtrRecordInput interface {
	pulumi.Input

	ToPtrRecordOutput() PtrRecordOutput
	ToPtrRecordOutputWithContext(ctx context.Context) PtrRecordOutput
}

type PtrRecordMap

type PtrRecordMap map[string]PtrRecordInput

func (PtrRecordMap) ElementType

func (PtrRecordMap) ElementType() reflect.Type

func (PtrRecordMap) ToPtrRecordMapOutput

func (i PtrRecordMap) ToPtrRecordMapOutput() PtrRecordMapOutput

func (PtrRecordMap) ToPtrRecordMapOutputWithContext

func (i PtrRecordMap) ToPtrRecordMapOutputWithContext(ctx context.Context) PtrRecordMapOutput

type PtrRecordMapInput

type PtrRecordMapInput interface {
	pulumi.Input

	ToPtrRecordMapOutput() PtrRecordMapOutput
	ToPtrRecordMapOutputWithContext(context.Context) PtrRecordMapOutput
}

PtrRecordMapInput is an input type that accepts PtrRecordMap and PtrRecordMapOutput values. You can construct a concrete instance of `PtrRecordMapInput` via:

PtrRecordMap{ "key": PtrRecordArgs{...} }

type PtrRecordMapOutput

type PtrRecordMapOutput struct{ *pulumi.OutputState }

func (PtrRecordMapOutput) ElementType

func (PtrRecordMapOutput) ElementType() reflect.Type

func (PtrRecordMapOutput) MapIndex

func (PtrRecordMapOutput) ToPtrRecordMapOutput

func (o PtrRecordMapOutput) ToPtrRecordMapOutput() PtrRecordMapOutput

func (PtrRecordMapOutput) ToPtrRecordMapOutputWithContext

func (o PtrRecordMapOutput) ToPtrRecordMapOutputWithContext(ctx context.Context) PtrRecordMapOutput

type PtrRecordOutput

type PtrRecordOutput struct{ *pulumi.OutputState }

func (PtrRecordOutput) ElementType

func (PtrRecordOutput) ElementType() reflect.Type

func (PtrRecordOutput) Fqdn added in v5.5.0

The FQDN of the DNS PTR Record.

func (PtrRecordOutput) Name added in v5.5.0

The name of the DNS PTR Record. Changing this forces a new resource to be created.

func (PtrRecordOutput) Records added in v5.5.0

List of Fully Qualified Domain Names.

func (PtrRecordOutput) ResourceGroupName added in v5.5.0

func (o PtrRecordOutput) ResourceGroupName() pulumi.StringOutput

Specifies the resource group where the DNS Zone (parent resource) exists. Changing this forces a new resource to be created.

func (PtrRecordOutput) Tags added in v5.5.0

A mapping of tags to assign to the resource.

func (PtrRecordOutput) ToPtrRecordOutput

func (o PtrRecordOutput) ToPtrRecordOutput() PtrRecordOutput

func (PtrRecordOutput) ToPtrRecordOutputWithContext

func (o PtrRecordOutput) ToPtrRecordOutputWithContext(ctx context.Context) PtrRecordOutput

func (PtrRecordOutput) Ttl added in v5.5.0

The Time To Live (TTL) of the DNS record in seconds.

func (PtrRecordOutput) ZoneName added in v5.5.0

func (o PtrRecordOutput) ZoneName() pulumi.StringOutput

Specifies the DNS Zone where the resource exists. Changing this forces a new resource to be created.

type PtrRecordState

type PtrRecordState struct {
	// The FQDN of the DNS PTR Record.
	Fqdn pulumi.StringPtrInput
	// The name of the DNS PTR Record. Changing this forces a new resource to be created.
	Name pulumi.StringPtrInput
	// List of Fully Qualified Domain Names.
	Records pulumi.StringArrayInput
	// Specifies the resource group where the DNS Zone (parent resource) exists. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringPtrInput
	// A mapping of tags to assign to the resource.
	Tags pulumi.StringMapInput
	// The Time To Live (TTL) of the DNS record in seconds.
	Ttl pulumi.IntPtrInput
	// Specifies the DNS Zone where the resource exists. Changing this forces a new resource to be created.
	ZoneName pulumi.StringPtrInput
}

func (PtrRecordState) ElementType

func (PtrRecordState) ElementType() reflect.Type

type SrvRecord

type SrvRecord struct {
	pulumi.CustomResourceState

	// The FQDN of the DNS SRV Record.
	Fqdn pulumi.StringOutput `pulumi:"fqdn"`
	// The name of the DNS SRV Record. Changing this forces a new resource to be created.
	Name pulumi.StringOutput `pulumi:"name"`
	// A list of values that make up the SRV record. Each `record` block supports fields documented below.
	Records SrvRecordRecordArrayOutput `pulumi:"records"`
	// Specifies the resource group where the DNS Zone (parent resource) exists. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"`
	// A mapping of tags to assign to the resource.
	Tags pulumi.StringMapOutput `pulumi:"tags"`
	// The Time To Live (TTL) of the DNS record in seconds.
	Ttl pulumi.IntOutput `pulumi:"ttl"`
	// Specifies the DNS Zone where the resource exists. Changing this forces a new resource to be created.
	ZoneName pulumi.StringOutput `pulumi:"zoneName"`
}

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/dns"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		exampleZone, err := dns.NewZone(ctx, "exampleZone", &dns.ZoneArgs{
			ResourceGroupName: exampleResourceGroup.Name,
		})
		if err != nil {
			return err
		}
		_, err = dns.NewSrvRecord(ctx, "exampleSrvRecord", &dns.SrvRecordArgs{
			ZoneName:          exampleZone.Name,
			ResourceGroupName: exampleResourceGroup.Name,
			Ttl:               pulumi.Int(300),
			Records: dns.SrvRecordRecordArray{
				&dns.SrvRecordRecordArgs{
					Priority: pulumi.Int(1),
					Weight:   pulumi.Int(5),
					Port:     pulumi.Int(8080),
					Target:   pulumi.String("target1.contoso.com"),
				},
			},
			Tags: pulumi.StringMap{
				"Environment": pulumi.String("Production"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

SRV records can be imported using the `resource id`, e.g.

```sh

$ pulumi import azure:dns/srvRecord:SrvRecord example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Network/dnsZones/zone1/SRV/myrecord1

```

func GetSrvRecord

func GetSrvRecord(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *SrvRecordState, opts ...pulumi.ResourceOption) (*SrvRecord, error)

GetSrvRecord gets an existing SrvRecord resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewSrvRecord

func NewSrvRecord(ctx *pulumi.Context,
	name string, args *SrvRecordArgs, opts ...pulumi.ResourceOption) (*SrvRecord, error)

NewSrvRecord registers a new resource with the given unique name, arguments, and options.

func (*SrvRecord) ElementType

func (*SrvRecord) ElementType() reflect.Type

func (*SrvRecord) ToSrvRecordOutput

func (i *SrvRecord) ToSrvRecordOutput() SrvRecordOutput

func (*SrvRecord) ToSrvRecordOutputWithContext

func (i *SrvRecord) ToSrvRecordOutputWithContext(ctx context.Context) SrvRecordOutput

type SrvRecordArgs

type SrvRecordArgs struct {
	// The name of the DNS SRV Record. Changing this forces a new resource to be created.
	Name pulumi.StringPtrInput
	// A list of values that make up the SRV record. Each `record` block supports fields documented below.
	Records SrvRecordRecordArrayInput
	// Specifies the resource group where the DNS Zone (parent resource) exists. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringInput
	// A mapping of tags to assign to the resource.
	Tags pulumi.StringMapInput
	// The Time To Live (TTL) of the DNS record in seconds.
	Ttl pulumi.IntInput
	// Specifies the DNS Zone where the resource exists. Changing this forces a new resource to be created.
	ZoneName pulumi.StringInput
}

The set of arguments for constructing a SrvRecord resource.

func (SrvRecordArgs) ElementType

func (SrvRecordArgs) ElementType() reflect.Type

type SrvRecordArray

type SrvRecordArray []SrvRecordInput

func (SrvRecordArray) ElementType

func (SrvRecordArray) ElementType() reflect.Type

func (SrvRecordArray) ToSrvRecordArrayOutput

func (i SrvRecordArray) ToSrvRecordArrayOutput() SrvRecordArrayOutput

func (SrvRecordArray) ToSrvRecordArrayOutputWithContext

func (i SrvRecordArray) ToSrvRecordArrayOutputWithContext(ctx context.Context) SrvRecordArrayOutput

type SrvRecordArrayInput

type SrvRecordArrayInput interface {
	pulumi.Input

	ToSrvRecordArrayOutput() SrvRecordArrayOutput
	ToSrvRecordArrayOutputWithContext(context.Context) SrvRecordArrayOutput
}

SrvRecordArrayInput is an input type that accepts SrvRecordArray and SrvRecordArrayOutput values. You can construct a concrete instance of `SrvRecordArrayInput` via:

SrvRecordArray{ SrvRecordArgs{...} }

type SrvRecordArrayOutput

type SrvRecordArrayOutput struct{ *pulumi.OutputState }

func (SrvRecordArrayOutput) ElementType

func (SrvRecordArrayOutput) ElementType() reflect.Type

func (SrvRecordArrayOutput) Index

func (SrvRecordArrayOutput) ToSrvRecordArrayOutput

func (o SrvRecordArrayOutput) ToSrvRecordArrayOutput() SrvRecordArrayOutput

func (SrvRecordArrayOutput) ToSrvRecordArrayOutputWithContext

func (o SrvRecordArrayOutput) ToSrvRecordArrayOutputWithContext(ctx context.Context) SrvRecordArrayOutput

type SrvRecordInput

type SrvRecordInput interface {
	pulumi.Input

	ToSrvRecordOutput() SrvRecordOutput
	ToSrvRecordOutputWithContext(ctx context.Context) SrvRecordOutput
}

type SrvRecordMap

type SrvRecordMap map[string]SrvRecordInput

func (SrvRecordMap) ElementType

func (SrvRecordMap) ElementType() reflect.Type

func (SrvRecordMap) ToSrvRecordMapOutput

func (i SrvRecordMap) ToSrvRecordMapOutput() SrvRecordMapOutput

func (SrvRecordMap) ToSrvRecordMapOutputWithContext

func (i SrvRecordMap) ToSrvRecordMapOutputWithContext(ctx context.Context) SrvRecordMapOutput

type SrvRecordMapInput

type SrvRecordMapInput interface {
	pulumi.Input

	ToSrvRecordMapOutput() SrvRecordMapOutput
	ToSrvRecordMapOutputWithContext(context.Context) SrvRecordMapOutput
}

SrvRecordMapInput is an input type that accepts SrvRecordMap and SrvRecordMapOutput values. You can construct a concrete instance of `SrvRecordMapInput` via:

SrvRecordMap{ "key": SrvRecordArgs{...} }

type SrvRecordMapOutput

type SrvRecordMapOutput struct{ *pulumi.OutputState }

func (SrvRecordMapOutput) ElementType

func (SrvRecordMapOutput) ElementType() reflect.Type

func (SrvRecordMapOutput) MapIndex

func (SrvRecordMapOutput) ToSrvRecordMapOutput

func (o SrvRecordMapOutput) ToSrvRecordMapOutput() SrvRecordMapOutput

func (SrvRecordMapOutput) ToSrvRecordMapOutputWithContext

func (o SrvRecordMapOutput) ToSrvRecordMapOutputWithContext(ctx context.Context) SrvRecordMapOutput

type SrvRecordOutput

type SrvRecordOutput struct{ *pulumi.OutputState }

func (SrvRecordOutput) ElementType

func (SrvRecordOutput) ElementType() reflect.Type

func (SrvRecordOutput) Fqdn added in v5.5.0

The FQDN of the DNS SRV Record.

func (SrvRecordOutput) Name added in v5.5.0

The name of the DNS SRV Record. Changing this forces a new resource to be created.

func (SrvRecordOutput) Records added in v5.5.0

A list of values that make up the SRV record. Each `record` block supports fields documented below.

func (SrvRecordOutput) ResourceGroupName added in v5.5.0

func (o SrvRecordOutput) ResourceGroupName() pulumi.StringOutput

Specifies the resource group where the DNS Zone (parent resource) exists. Changing this forces a new resource to be created.

func (SrvRecordOutput) Tags added in v5.5.0

A mapping of tags to assign to the resource.

func (SrvRecordOutput) ToSrvRecordOutput

func (o SrvRecordOutput) ToSrvRecordOutput() SrvRecordOutput

func (SrvRecordOutput) ToSrvRecordOutputWithContext

func (o SrvRecordOutput) ToSrvRecordOutputWithContext(ctx context.Context) SrvRecordOutput

func (SrvRecordOutput) Ttl added in v5.5.0

The Time To Live (TTL) of the DNS record in seconds.

func (SrvRecordOutput) ZoneName added in v5.5.0

func (o SrvRecordOutput) ZoneName() pulumi.StringOutput

Specifies the DNS Zone where the resource exists. Changing this forces a new resource to be created.

type SrvRecordRecord

type SrvRecordRecord struct {
	// Port the service is listening on.
	Port int `pulumi:"port"`
	// Priority of the SRV record.
	Priority int `pulumi:"priority"`
	// FQDN of the service.
	Target string `pulumi:"target"`
	// Weight of the SRV record.
	Weight int `pulumi:"weight"`
}

type SrvRecordRecordArgs

type SrvRecordRecordArgs struct {
	// Port the service is listening on.
	Port pulumi.IntInput `pulumi:"port"`
	// Priority of the SRV record.
	Priority pulumi.IntInput `pulumi:"priority"`
	// FQDN of the service.
	Target pulumi.StringInput `pulumi:"target"`
	// Weight of the SRV record.
	Weight pulumi.IntInput `pulumi:"weight"`
}

func (SrvRecordRecordArgs) ElementType

func (SrvRecordRecordArgs) ElementType() reflect.Type

func (SrvRecordRecordArgs) ToSrvRecordRecordOutput

func (i SrvRecordRecordArgs) ToSrvRecordRecordOutput() SrvRecordRecordOutput

func (SrvRecordRecordArgs) ToSrvRecordRecordOutputWithContext

func (i SrvRecordRecordArgs) ToSrvRecordRecordOutputWithContext(ctx context.Context) SrvRecordRecordOutput

type SrvRecordRecordArray

type SrvRecordRecordArray []SrvRecordRecordInput

func (SrvRecordRecordArray) ElementType

func (SrvRecordRecordArray) ElementType() reflect.Type

func (SrvRecordRecordArray) ToSrvRecordRecordArrayOutput

func (i SrvRecordRecordArray) ToSrvRecordRecordArrayOutput() SrvRecordRecordArrayOutput

func (SrvRecordRecordArray) ToSrvRecordRecordArrayOutputWithContext

func (i SrvRecordRecordArray) ToSrvRecordRecordArrayOutputWithContext(ctx context.Context) SrvRecordRecordArrayOutput

type SrvRecordRecordArrayInput

type SrvRecordRecordArrayInput interface {
	pulumi.Input

	ToSrvRecordRecordArrayOutput() SrvRecordRecordArrayOutput
	ToSrvRecordRecordArrayOutputWithContext(context.Context) SrvRecordRecordArrayOutput
}

SrvRecordRecordArrayInput is an input type that accepts SrvRecordRecordArray and SrvRecordRecordArrayOutput values. You can construct a concrete instance of `SrvRecordRecordArrayInput` via:

SrvRecordRecordArray{ SrvRecordRecordArgs{...} }

type SrvRecordRecordArrayOutput

type SrvRecordRecordArrayOutput struct{ *pulumi.OutputState }

func (SrvRecordRecordArrayOutput) ElementType

func (SrvRecordRecordArrayOutput) ElementType() reflect.Type

func (SrvRecordRecordArrayOutput) Index

func (SrvRecordRecordArrayOutput) ToSrvRecordRecordArrayOutput

func (o SrvRecordRecordArrayOutput) ToSrvRecordRecordArrayOutput() SrvRecordRecordArrayOutput

func (SrvRecordRecordArrayOutput) ToSrvRecordRecordArrayOutputWithContext

func (o SrvRecordRecordArrayOutput) ToSrvRecordRecordArrayOutputWithContext(ctx context.Context) SrvRecordRecordArrayOutput

type SrvRecordRecordInput

type SrvRecordRecordInput interface {
	pulumi.Input

	ToSrvRecordRecordOutput() SrvRecordRecordOutput
	ToSrvRecordRecordOutputWithContext(context.Context) SrvRecordRecordOutput
}

SrvRecordRecordInput is an input type that accepts SrvRecordRecordArgs and SrvRecordRecordOutput values. You can construct a concrete instance of `SrvRecordRecordInput` via:

SrvRecordRecordArgs{...}

type SrvRecordRecordOutput

type SrvRecordRecordOutput struct{ *pulumi.OutputState }

func (SrvRecordRecordOutput) ElementType

func (SrvRecordRecordOutput) ElementType() reflect.Type

func (SrvRecordRecordOutput) Port

Port the service is listening on.

func (SrvRecordRecordOutput) Priority

func (o SrvRecordRecordOutput) Priority() pulumi.IntOutput

Priority of the SRV record.

func (SrvRecordRecordOutput) Target

FQDN of the service.

func (SrvRecordRecordOutput) ToSrvRecordRecordOutput

func (o SrvRecordRecordOutput) ToSrvRecordRecordOutput() SrvRecordRecordOutput

func (SrvRecordRecordOutput) ToSrvRecordRecordOutputWithContext

func (o SrvRecordRecordOutput) ToSrvRecordRecordOutputWithContext(ctx context.Context) SrvRecordRecordOutput

func (SrvRecordRecordOutput) Weight

Weight of the SRV record.

type SrvRecordState

type SrvRecordState struct {
	// The FQDN of the DNS SRV Record.
	Fqdn pulumi.StringPtrInput
	// The name of the DNS SRV Record. Changing this forces a new resource to be created.
	Name pulumi.StringPtrInput
	// A list of values that make up the SRV record. Each `record` block supports fields documented below.
	Records SrvRecordRecordArrayInput
	// Specifies the resource group where the DNS Zone (parent resource) exists. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringPtrInput
	// A mapping of tags to assign to the resource.
	Tags pulumi.StringMapInput
	// The Time To Live (TTL) of the DNS record in seconds.
	Ttl pulumi.IntPtrInput
	// Specifies the DNS Zone where the resource exists. Changing this forces a new resource to be created.
	ZoneName pulumi.StringPtrInput
}

func (SrvRecordState) ElementType

func (SrvRecordState) ElementType() reflect.Type

type TxtRecord

type TxtRecord struct {
	pulumi.CustomResourceState

	// The FQDN of the DNS TXT Record.
	Fqdn pulumi.StringOutput `pulumi:"fqdn"`
	// The name of the DNS TXT Record. Changing this forces a new resource to be created.
	Name pulumi.StringOutput `pulumi:"name"`
	// A list of values that make up the txt record. Each `record` block supports fields documented below.
	Records TxtRecordRecordArrayOutput `pulumi:"records"`
	// Specifies the resource group where the DNS Zone (parent resource) exists. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"`
	// A mapping of tags to assign to the resource.
	Tags pulumi.StringMapOutput `pulumi:"tags"`
	// The Time To Live (TTL) of the DNS record in seconds.
	Ttl pulumi.IntOutput `pulumi:"ttl"`
	// Specifies the DNS Zone where the resource exists. Changing this forces a new resource to be created.
	ZoneName pulumi.StringOutput `pulumi:"zoneName"`
}

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/dns"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		exampleZone, err := dns.NewZone(ctx, "exampleZone", &dns.ZoneArgs{
			ResourceGroupName: exampleResourceGroup.Name,
		})
		if err != nil {
			return err
		}
		_, err = dns.NewTxtRecord(ctx, "exampleTxtRecord", &dns.TxtRecordArgs{
			ZoneName:          exampleZone.Name,
			ResourceGroupName: exampleResourceGroup.Name,
			Ttl:               pulumi.Int(300),
			Records: dns.TxtRecordRecordArray{
				&dns.TxtRecordRecordArgs{
					Value: pulumi.String("google-site-authenticator"),
				},
				&dns.TxtRecordRecordArgs{
					Value: pulumi.String("more site information here"),
				},
			},
			Tags: pulumi.StringMap{
				"Environment": pulumi.String("Production"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

TXT records can be imported using the `resource id`, e.g.

```sh

$ pulumi import azure:dns/txtRecord:TxtRecord example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Network/dnsZones/zone1/TXT/myrecord1

```

func GetTxtRecord

func GetTxtRecord(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *TxtRecordState, opts ...pulumi.ResourceOption) (*TxtRecord, error)

GetTxtRecord gets an existing TxtRecord resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewTxtRecord

func NewTxtRecord(ctx *pulumi.Context,
	name string, args *TxtRecordArgs, opts ...pulumi.ResourceOption) (*TxtRecord, error)

NewTxtRecord registers a new resource with the given unique name, arguments, and options.

func (*TxtRecord) ElementType

func (*TxtRecord) ElementType() reflect.Type

func (*TxtRecord) ToTxtRecordOutput

func (i *TxtRecord) ToTxtRecordOutput() TxtRecordOutput

func (*TxtRecord) ToTxtRecordOutputWithContext

func (i *TxtRecord) ToTxtRecordOutputWithContext(ctx context.Context) TxtRecordOutput

type TxtRecordArgs

type TxtRecordArgs struct {
	// The name of the DNS TXT Record. Changing this forces a new resource to be created.
	Name pulumi.StringPtrInput
	// A list of values that make up the txt record. Each `record` block supports fields documented below.
	Records TxtRecordRecordArrayInput
	// Specifies the resource group where the DNS Zone (parent resource) exists. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringInput
	// A mapping of tags to assign to the resource.
	Tags pulumi.StringMapInput
	// The Time To Live (TTL) of the DNS record in seconds.
	Ttl pulumi.IntInput
	// Specifies the DNS Zone where the resource exists. Changing this forces a new resource to be created.
	ZoneName pulumi.StringInput
}

The set of arguments for constructing a TxtRecord resource.

func (TxtRecordArgs) ElementType

func (TxtRecordArgs) ElementType() reflect.Type

type TxtRecordArray

type TxtRecordArray []TxtRecordInput

func (TxtRecordArray) ElementType

func (TxtRecordArray) ElementType() reflect.Type

func (TxtRecordArray) ToTxtRecordArrayOutput

func (i TxtRecordArray) ToTxtRecordArrayOutput() TxtRecordArrayOutput

func (TxtRecordArray) ToTxtRecordArrayOutputWithContext

func (i TxtRecordArray) ToTxtRecordArrayOutputWithContext(ctx context.Context) TxtRecordArrayOutput

type TxtRecordArrayInput

type TxtRecordArrayInput interface {
	pulumi.Input

	ToTxtRecordArrayOutput() TxtRecordArrayOutput
	ToTxtRecordArrayOutputWithContext(context.Context) TxtRecordArrayOutput
}

TxtRecordArrayInput is an input type that accepts TxtRecordArray and TxtRecordArrayOutput values. You can construct a concrete instance of `TxtRecordArrayInput` via:

TxtRecordArray{ TxtRecordArgs{...} }

type TxtRecordArrayOutput

type TxtRecordArrayOutput struct{ *pulumi.OutputState }

func (TxtRecordArrayOutput) ElementType

func (TxtRecordArrayOutput) ElementType() reflect.Type

func (TxtRecordArrayOutput) Index

func (TxtRecordArrayOutput) ToTxtRecordArrayOutput

func (o TxtRecordArrayOutput) ToTxtRecordArrayOutput() TxtRecordArrayOutput

func (TxtRecordArrayOutput) ToTxtRecordArrayOutputWithContext

func (o TxtRecordArrayOutput) ToTxtRecordArrayOutputWithContext(ctx context.Context) TxtRecordArrayOutput

type TxtRecordInput

type TxtRecordInput interface {
	pulumi.Input

	ToTxtRecordOutput() TxtRecordOutput
	ToTxtRecordOutputWithContext(ctx context.Context) TxtRecordOutput
}

type TxtRecordMap

type TxtRecordMap map[string]TxtRecordInput

func (TxtRecordMap) ElementType

func (TxtRecordMap) ElementType() reflect.Type

func (TxtRecordMap) ToTxtRecordMapOutput

func (i TxtRecordMap) ToTxtRecordMapOutput() TxtRecordMapOutput

func (TxtRecordMap) ToTxtRecordMapOutputWithContext

func (i TxtRecordMap) ToTxtRecordMapOutputWithContext(ctx context.Context) TxtRecordMapOutput

type TxtRecordMapInput

type TxtRecordMapInput interface {
	pulumi.Input

	ToTxtRecordMapOutput() TxtRecordMapOutput
	ToTxtRecordMapOutputWithContext(context.Context) TxtRecordMapOutput
}

TxtRecordMapInput is an input type that accepts TxtRecordMap and TxtRecordMapOutput values. You can construct a concrete instance of `TxtRecordMapInput` via:

TxtRecordMap{ "key": TxtRecordArgs{...} }

type TxtRecordMapOutput

type TxtRecordMapOutput struct{ *pulumi.OutputState }

func (TxtRecordMapOutput) ElementType

func (TxtRecordMapOutput) ElementType() reflect.Type

func (TxtRecordMapOutput) MapIndex

func (TxtRecordMapOutput) ToTxtRecordMapOutput

func (o TxtRecordMapOutput) ToTxtRecordMapOutput() TxtRecordMapOutput

func (TxtRecordMapOutput) ToTxtRecordMapOutputWithContext

func (o TxtRecordMapOutput) ToTxtRecordMapOutputWithContext(ctx context.Context) TxtRecordMapOutput

type TxtRecordOutput

type TxtRecordOutput struct{ *pulumi.OutputState }

func (TxtRecordOutput) ElementType

func (TxtRecordOutput) ElementType() reflect.Type

func (TxtRecordOutput) Fqdn added in v5.5.0

The FQDN of the DNS TXT Record.

func (TxtRecordOutput) Name added in v5.5.0

The name of the DNS TXT Record. Changing this forces a new resource to be created.

func (TxtRecordOutput) Records added in v5.5.0

A list of values that make up the txt record. Each `record` block supports fields documented below.

func (TxtRecordOutput) ResourceGroupName added in v5.5.0

func (o TxtRecordOutput) ResourceGroupName() pulumi.StringOutput

Specifies the resource group where the DNS Zone (parent resource) exists. Changing this forces a new resource to be created.

func (TxtRecordOutput) Tags added in v5.5.0

A mapping of tags to assign to the resource.

func (TxtRecordOutput) ToTxtRecordOutput

func (o TxtRecordOutput) ToTxtRecordOutput() TxtRecordOutput

func (TxtRecordOutput) ToTxtRecordOutputWithContext

func (o TxtRecordOutput) ToTxtRecordOutputWithContext(ctx context.Context) TxtRecordOutput

func (TxtRecordOutput) Ttl added in v5.5.0

The Time To Live (TTL) of the DNS record in seconds.

func (TxtRecordOutput) ZoneName added in v5.5.0

func (o TxtRecordOutput) ZoneName() pulumi.StringOutput

Specifies the DNS Zone where the resource exists. Changing this forces a new resource to be created.

type TxtRecordRecord

type TxtRecordRecord struct {
	// The value of the record. Max length: 1024 characters
	Value string `pulumi:"value"`
}

type TxtRecordRecordArgs

type TxtRecordRecordArgs struct {
	// The value of the record. Max length: 1024 characters
	Value pulumi.StringInput `pulumi:"value"`
}

func (TxtRecordRecordArgs) ElementType

func (TxtRecordRecordArgs) ElementType() reflect.Type

func (TxtRecordRecordArgs) ToTxtRecordRecordOutput

func (i TxtRecordRecordArgs) ToTxtRecordRecordOutput() TxtRecordRecordOutput

func (TxtRecordRecordArgs) ToTxtRecordRecordOutputWithContext

func (i TxtRecordRecordArgs) ToTxtRecordRecordOutputWithContext(ctx context.Context) TxtRecordRecordOutput

type TxtRecordRecordArray

type TxtRecordRecordArray []TxtRecordRecordInput

func (TxtRecordRecordArray) ElementType

func (TxtRecordRecordArray) ElementType() reflect.Type

func (TxtRecordRecordArray) ToTxtRecordRecordArrayOutput

func (i TxtRecordRecordArray) ToTxtRecordRecordArrayOutput() TxtRecordRecordArrayOutput

func (TxtRecordRecordArray) ToTxtRecordRecordArrayOutputWithContext

func (i TxtRecordRecordArray) ToTxtRecordRecordArrayOutputWithContext(ctx context.Context) TxtRecordRecordArrayOutput

type TxtRecordRecordArrayInput

type TxtRecordRecordArrayInput interface {
	pulumi.Input

	ToTxtRecordRecordArrayOutput() TxtRecordRecordArrayOutput
	ToTxtRecordRecordArrayOutputWithContext(context.Context) TxtRecordRecordArrayOutput
}

TxtRecordRecordArrayInput is an input type that accepts TxtRecordRecordArray and TxtRecordRecordArrayOutput values. You can construct a concrete instance of `TxtRecordRecordArrayInput` via:

TxtRecordRecordArray{ TxtRecordRecordArgs{...} }

type TxtRecordRecordArrayOutput

type TxtRecordRecordArrayOutput struct{ *pulumi.OutputState }

func (TxtRecordRecordArrayOutput) ElementType

func (TxtRecordRecordArrayOutput) ElementType() reflect.Type

func (TxtRecordRecordArrayOutput) Index

func (TxtRecordRecordArrayOutput) ToTxtRecordRecordArrayOutput

func (o TxtRecordRecordArrayOutput) ToTxtRecordRecordArrayOutput() TxtRecordRecordArrayOutput

func (TxtRecordRecordArrayOutput) ToTxtRecordRecordArrayOutputWithContext

func (o TxtRecordRecordArrayOutput) ToTxtRecordRecordArrayOutputWithContext(ctx context.Context) TxtRecordRecordArrayOutput

type TxtRecordRecordInput

type TxtRecordRecordInput interface {
	pulumi.Input

	ToTxtRecordRecordOutput() TxtRecordRecordOutput
	ToTxtRecordRecordOutputWithContext(context.Context) TxtRecordRecordOutput
}

TxtRecordRecordInput is an input type that accepts TxtRecordRecordArgs and TxtRecordRecordOutput values. You can construct a concrete instance of `TxtRecordRecordInput` via:

TxtRecordRecordArgs{...}

type TxtRecordRecordOutput

type TxtRecordRecordOutput struct{ *pulumi.OutputState }

func (TxtRecordRecordOutput) ElementType

func (TxtRecordRecordOutput) ElementType() reflect.Type

func (TxtRecordRecordOutput) ToTxtRecordRecordOutput

func (o TxtRecordRecordOutput) ToTxtRecordRecordOutput() TxtRecordRecordOutput

func (TxtRecordRecordOutput) ToTxtRecordRecordOutputWithContext

func (o TxtRecordRecordOutput) ToTxtRecordRecordOutputWithContext(ctx context.Context) TxtRecordRecordOutput

func (TxtRecordRecordOutput) Value

The value of the record. Max length: 1024 characters

type TxtRecordState

type TxtRecordState struct {
	// The FQDN of the DNS TXT Record.
	Fqdn pulumi.StringPtrInput
	// The name of the DNS TXT Record. Changing this forces a new resource to be created.
	Name pulumi.StringPtrInput
	// A list of values that make up the txt record. Each `record` block supports fields documented below.
	Records TxtRecordRecordArrayInput
	// Specifies the resource group where the DNS Zone (parent resource) exists. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringPtrInput
	// A mapping of tags to assign to the resource.
	Tags pulumi.StringMapInput
	// The Time To Live (TTL) of the DNS record in seconds.
	Ttl pulumi.IntPtrInput
	// Specifies the DNS Zone where the resource exists. Changing this forces a new resource to be created.
	ZoneName pulumi.StringPtrInput
}

func (TxtRecordState) ElementType

func (TxtRecordState) ElementType() reflect.Type

type Zone

type Zone struct {
	pulumi.CustomResourceState

	// (Optional) Maximum number of Records in the zone. Defaults to `1000`.
	MaxNumberOfRecordSets pulumi.IntOutput `pulumi:"maxNumberOfRecordSets"`
	// The name of the DNS Zone. Must be a valid domain name. Changing this forces a new resource to be created.
	Name pulumi.StringOutput `pulumi:"name"`
	// (Optional) A list of values that make up the NS record for the zone.
	NameServers pulumi.StringArrayOutput `pulumi:"nameServers"`
	// (Optional) The number of records already in the zone.
	NumberOfRecordSets pulumi.IntOutput `pulumi:"numberOfRecordSets"`
	// Specifies the resource group where the resource exists. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"`
	// An `soaRecord` block as defined below. Changing this forces a new resource to be created.
	SoaRecord ZoneSoaRecordOutput `pulumi:"soaRecord"`
	// A mapping of tags to assign to the resource.
	Tags pulumi.StringMapOutput `pulumi:"tags"`
}

Enables you to manage DNS zones within Azure DNS. These zones are hosted on Azure's name servers to which you can delegate the zone from the parent domain.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/dns"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		_, err = dns.NewZone(ctx, "example-public", &dns.ZoneArgs{
			ResourceGroupName: example.Name,
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

DNS Zones can be imported using the `resource id`, e.g.

```sh

$ pulumi import azure:dns/zone:Zone zone1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Network/dnsZones/zone1

```

func GetZone

func GetZone(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ZoneState, opts ...pulumi.ResourceOption) (*Zone, error)

GetZone gets an existing Zone resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewZone

func NewZone(ctx *pulumi.Context,
	name string, args *ZoneArgs, opts ...pulumi.ResourceOption) (*Zone, error)

NewZone registers a new resource with the given unique name, arguments, and options.

func (*Zone) ElementType

func (*Zone) ElementType() reflect.Type

func (*Zone) ToZoneOutput

func (i *Zone) ToZoneOutput() ZoneOutput

func (*Zone) ToZoneOutputWithContext

func (i *Zone) ToZoneOutputWithContext(ctx context.Context) ZoneOutput

type ZoneArgs

type ZoneArgs struct {
	// The name of the DNS Zone. Must be a valid domain name. Changing this forces a new resource to be created.
	Name pulumi.StringPtrInput
	// Specifies the resource group where the resource exists. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringInput
	// An `soaRecord` block as defined below. Changing this forces a new resource to be created.
	SoaRecord ZoneSoaRecordPtrInput
	// A mapping of tags to assign to the resource.
	Tags pulumi.StringMapInput
}

The set of arguments for constructing a Zone resource.

func (ZoneArgs) ElementType

func (ZoneArgs) ElementType() reflect.Type

type ZoneArray

type ZoneArray []ZoneInput

func (ZoneArray) ElementType

func (ZoneArray) ElementType() reflect.Type

func (ZoneArray) ToZoneArrayOutput

func (i ZoneArray) ToZoneArrayOutput() ZoneArrayOutput

func (ZoneArray) ToZoneArrayOutputWithContext

func (i ZoneArray) ToZoneArrayOutputWithContext(ctx context.Context) ZoneArrayOutput

type ZoneArrayInput

type ZoneArrayInput interface {
	pulumi.Input

	ToZoneArrayOutput() ZoneArrayOutput
	ToZoneArrayOutputWithContext(context.Context) ZoneArrayOutput
}

ZoneArrayInput is an input type that accepts ZoneArray and ZoneArrayOutput values. You can construct a concrete instance of `ZoneArrayInput` via:

ZoneArray{ ZoneArgs{...} }

type ZoneArrayOutput

type ZoneArrayOutput struct{ *pulumi.OutputState }

func (ZoneArrayOutput) ElementType

func (ZoneArrayOutput) ElementType() reflect.Type

func (ZoneArrayOutput) Index

func (ZoneArrayOutput) ToZoneArrayOutput

func (o ZoneArrayOutput) ToZoneArrayOutput() ZoneArrayOutput

func (ZoneArrayOutput) ToZoneArrayOutputWithContext

func (o ZoneArrayOutput) ToZoneArrayOutputWithContext(ctx context.Context) ZoneArrayOutput

type ZoneInput

type ZoneInput interface {
	pulumi.Input

	ToZoneOutput() ZoneOutput
	ToZoneOutputWithContext(ctx context.Context) ZoneOutput
}

type ZoneMap

type ZoneMap map[string]ZoneInput

func (ZoneMap) ElementType

func (ZoneMap) ElementType() reflect.Type

func (ZoneMap) ToZoneMapOutput

func (i ZoneMap) ToZoneMapOutput() ZoneMapOutput

func (ZoneMap) ToZoneMapOutputWithContext

func (i ZoneMap) ToZoneMapOutputWithContext(ctx context.Context) ZoneMapOutput

type ZoneMapInput

type ZoneMapInput interface {
	pulumi.Input

	ToZoneMapOutput() ZoneMapOutput
	ToZoneMapOutputWithContext(context.Context) ZoneMapOutput
}

ZoneMapInput is an input type that accepts ZoneMap and ZoneMapOutput values. You can construct a concrete instance of `ZoneMapInput` via:

ZoneMap{ "key": ZoneArgs{...} }

type ZoneMapOutput

type ZoneMapOutput struct{ *pulumi.OutputState }

func (ZoneMapOutput) ElementType

func (ZoneMapOutput) ElementType() reflect.Type

func (ZoneMapOutput) MapIndex

func (ZoneMapOutput) ToZoneMapOutput

func (o ZoneMapOutput) ToZoneMapOutput() ZoneMapOutput

func (ZoneMapOutput) ToZoneMapOutputWithContext

func (o ZoneMapOutput) ToZoneMapOutputWithContext(ctx context.Context) ZoneMapOutput

type ZoneOutput

type ZoneOutput struct{ *pulumi.OutputState }

func (ZoneOutput) ElementType

func (ZoneOutput) ElementType() reflect.Type

func (ZoneOutput) MaxNumberOfRecordSets added in v5.5.0

func (o ZoneOutput) MaxNumberOfRecordSets() pulumi.IntOutput

(Optional) Maximum number of Records in the zone. Defaults to `1000`.

func (ZoneOutput) Name added in v5.5.0

func (o ZoneOutput) Name() pulumi.StringOutput

The name of the DNS Zone. Must be a valid domain name. Changing this forces a new resource to be created.

func (ZoneOutput) NameServers added in v5.5.0

func (o ZoneOutput) NameServers() pulumi.StringArrayOutput

(Optional) A list of values that make up the NS record for the zone.

func (ZoneOutput) NumberOfRecordSets added in v5.5.0

func (o ZoneOutput) NumberOfRecordSets() pulumi.IntOutput

(Optional) The number of records already in the zone.

func (ZoneOutput) ResourceGroupName added in v5.5.0

func (o ZoneOutput) ResourceGroupName() pulumi.StringOutput

Specifies the resource group where the resource exists. Changing this forces a new resource to be created.

func (ZoneOutput) SoaRecord added in v5.5.0

func (o ZoneOutput) SoaRecord() ZoneSoaRecordOutput

An `soaRecord` block as defined below. Changing this forces a new resource to be created.

func (ZoneOutput) Tags added in v5.5.0

A mapping of tags to assign to the resource.

func (ZoneOutput) ToZoneOutput

func (o ZoneOutput) ToZoneOutput() ZoneOutput

func (ZoneOutput) ToZoneOutputWithContext

func (o ZoneOutput) ToZoneOutputWithContext(ctx context.Context) ZoneOutput

type ZoneSoaRecord

type ZoneSoaRecord struct {
	// The email contact for the SOA record.
	Email string `pulumi:"email"`
	// The expire time for the SOA record. Defaults to `2419200`.
	ExpireTime *int    `pulumi:"expireTime"`
	Fqdn       *string `pulumi:"fqdn"`
	// The domain name of the authoritative name server for the SOA record.
	HostName string `pulumi:"hostName"`
	// The minimum Time To Live for the SOA record. By convention, it is used to determine the negative caching duration. Defaults to `300`.
	MinimumTtl *int `pulumi:"minimumTtl"`
	// The refresh time for the SOA record. Defaults to `3600`.
	RefreshTime *int `pulumi:"refreshTime"`
	// The retry time for the SOA record. Defaults to `300`.
	RetryTime *int `pulumi:"retryTime"`
	// The serial number for the SOA record. Defaults to `1`.
	SerialNumber *int `pulumi:"serialNumber"`
	// A mapping of tags to assign to the Record Set.
	Tags map[string]string `pulumi:"tags"`
	// The Time To Live of the SOA Record in seconds. Defaults to `3600`.
	Ttl *int `pulumi:"ttl"`
}

type ZoneSoaRecordArgs

type ZoneSoaRecordArgs struct {
	// The email contact for the SOA record.
	Email pulumi.StringInput `pulumi:"email"`
	// The expire time for the SOA record. Defaults to `2419200`.
	ExpireTime pulumi.IntPtrInput    `pulumi:"expireTime"`
	Fqdn       pulumi.StringPtrInput `pulumi:"fqdn"`
	// The domain name of the authoritative name server for the SOA record.
	HostName pulumi.StringInput `pulumi:"hostName"`
	// The minimum Time To Live for the SOA record. By convention, it is used to determine the negative caching duration. Defaults to `300`.
	MinimumTtl pulumi.IntPtrInput `pulumi:"minimumTtl"`
	// The refresh time for the SOA record. Defaults to `3600`.
	RefreshTime pulumi.IntPtrInput `pulumi:"refreshTime"`
	// The retry time for the SOA record. Defaults to `300`.
	RetryTime pulumi.IntPtrInput `pulumi:"retryTime"`
	// The serial number for the SOA record. Defaults to `1`.
	SerialNumber pulumi.IntPtrInput `pulumi:"serialNumber"`
	// A mapping of tags to assign to the Record Set.
	Tags pulumi.StringMapInput `pulumi:"tags"`
	// The Time To Live of the SOA Record in seconds. Defaults to `3600`.
	Ttl pulumi.IntPtrInput `pulumi:"ttl"`
}

func (ZoneSoaRecordArgs) ElementType

func (ZoneSoaRecordArgs) ElementType() reflect.Type

func (ZoneSoaRecordArgs) ToZoneSoaRecordOutput

func (i ZoneSoaRecordArgs) ToZoneSoaRecordOutput() ZoneSoaRecordOutput

func (ZoneSoaRecordArgs) ToZoneSoaRecordOutputWithContext

func (i ZoneSoaRecordArgs) ToZoneSoaRecordOutputWithContext(ctx context.Context) ZoneSoaRecordOutput

func (ZoneSoaRecordArgs) ToZoneSoaRecordPtrOutput

func (i ZoneSoaRecordArgs) ToZoneSoaRecordPtrOutput() ZoneSoaRecordPtrOutput

func (ZoneSoaRecordArgs) ToZoneSoaRecordPtrOutputWithContext

func (i ZoneSoaRecordArgs) ToZoneSoaRecordPtrOutputWithContext(ctx context.Context) ZoneSoaRecordPtrOutput

type ZoneSoaRecordInput

type ZoneSoaRecordInput interface {
	pulumi.Input

	ToZoneSoaRecordOutput() ZoneSoaRecordOutput
	ToZoneSoaRecordOutputWithContext(context.Context) ZoneSoaRecordOutput
}

ZoneSoaRecordInput is an input type that accepts ZoneSoaRecordArgs and ZoneSoaRecordOutput values. You can construct a concrete instance of `ZoneSoaRecordInput` via:

ZoneSoaRecordArgs{...}

type ZoneSoaRecordOutput

type ZoneSoaRecordOutput struct{ *pulumi.OutputState }

func (ZoneSoaRecordOutput) ElementType

func (ZoneSoaRecordOutput) ElementType() reflect.Type

func (ZoneSoaRecordOutput) Email

The email contact for the SOA record.

func (ZoneSoaRecordOutput) ExpireTime

func (o ZoneSoaRecordOutput) ExpireTime() pulumi.IntPtrOutput

The expire time for the SOA record. Defaults to `2419200`.

func (ZoneSoaRecordOutput) Fqdn

func (ZoneSoaRecordOutput) HostName

The domain name of the authoritative name server for the SOA record.

func (ZoneSoaRecordOutput) MinimumTtl

func (o ZoneSoaRecordOutput) MinimumTtl() pulumi.IntPtrOutput

The minimum Time To Live for the SOA record. By convention, it is used to determine the negative caching duration. Defaults to `300`.

func (ZoneSoaRecordOutput) RefreshTime

func (o ZoneSoaRecordOutput) RefreshTime() pulumi.IntPtrOutput

The refresh time for the SOA record. Defaults to `3600`.

func (ZoneSoaRecordOutput) RetryTime

func (o ZoneSoaRecordOutput) RetryTime() pulumi.IntPtrOutput

The retry time for the SOA record. Defaults to `300`.

func (ZoneSoaRecordOutput) SerialNumber

func (o ZoneSoaRecordOutput) SerialNumber() pulumi.IntPtrOutput

The serial number for the SOA record. Defaults to `1`.

func (ZoneSoaRecordOutput) Tags

A mapping of tags to assign to the Record Set.

func (ZoneSoaRecordOutput) ToZoneSoaRecordOutput

func (o ZoneSoaRecordOutput) ToZoneSoaRecordOutput() ZoneSoaRecordOutput

func (ZoneSoaRecordOutput) ToZoneSoaRecordOutputWithContext

func (o ZoneSoaRecordOutput) ToZoneSoaRecordOutputWithContext(ctx context.Context) ZoneSoaRecordOutput

func (ZoneSoaRecordOutput) ToZoneSoaRecordPtrOutput

func (o ZoneSoaRecordOutput) ToZoneSoaRecordPtrOutput() ZoneSoaRecordPtrOutput

func (ZoneSoaRecordOutput) ToZoneSoaRecordPtrOutputWithContext

func (o ZoneSoaRecordOutput) ToZoneSoaRecordPtrOutputWithContext(ctx context.Context) ZoneSoaRecordPtrOutput

func (ZoneSoaRecordOutput) Ttl

The Time To Live of the SOA Record in seconds. Defaults to `3600`.

type ZoneSoaRecordPtrInput

type ZoneSoaRecordPtrInput interface {
	pulumi.Input

	ToZoneSoaRecordPtrOutput() ZoneSoaRecordPtrOutput
	ToZoneSoaRecordPtrOutputWithContext(context.Context) ZoneSoaRecordPtrOutput
}

ZoneSoaRecordPtrInput is an input type that accepts ZoneSoaRecordArgs, ZoneSoaRecordPtr and ZoneSoaRecordPtrOutput values. You can construct a concrete instance of `ZoneSoaRecordPtrInput` via:

        ZoneSoaRecordArgs{...}

or:

        nil

type ZoneSoaRecordPtrOutput

type ZoneSoaRecordPtrOutput struct{ *pulumi.OutputState }

func (ZoneSoaRecordPtrOutput) Elem

func (ZoneSoaRecordPtrOutput) ElementType

func (ZoneSoaRecordPtrOutput) ElementType() reflect.Type

func (ZoneSoaRecordPtrOutput) Email

The email contact for the SOA record.

func (ZoneSoaRecordPtrOutput) ExpireTime

The expire time for the SOA record. Defaults to `2419200`.

func (ZoneSoaRecordPtrOutput) Fqdn

func (ZoneSoaRecordPtrOutput) HostName

The domain name of the authoritative name server for the SOA record.

func (ZoneSoaRecordPtrOutput) MinimumTtl

The minimum Time To Live for the SOA record. By convention, it is used to determine the negative caching duration. Defaults to `300`.

func (ZoneSoaRecordPtrOutput) RefreshTime

func (o ZoneSoaRecordPtrOutput) RefreshTime() pulumi.IntPtrOutput

The refresh time for the SOA record. Defaults to `3600`.

func (ZoneSoaRecordPtrOutput) RetryTime

The retry time for the SOA record. Defaults to `300`.

func (ZoneSoaRecordPtrOutput) SerialNumber

func (o ZoneSoaRecordPtrOutput) SerialNumber() pulumi.IntPtrOutput

The serial number for the SOA record. Defaults to `1`.

func (ZoneSoaRecordPtrOutput) Tags

A mapping of tags to assign to the Record Set.

func (ZoneSoaRecordPtrOutput) ToZoneSoaRecordPtrOutput

func (o ZoneSoaRecordPtrOutput) ToZoneSoaRecordPtrOutput() ZoneSoaRecordPtrOutput

func (ZoneSoaRecordPtrOutput) ToZoneSoaRecordPtrOutputWithContext

func (o ZoneSoaRecordPtrOutput) ToZoneSoaRecordPtrOutputWithContext(ctx context.Context) ZoneSoaRecordPtrOutput

func (ZoneSoaRecordPtrOutput) Ttl

The Time To Live of the SOA Record in seconds. Defaults to `3600`.

type ZoneState

type ZoneState struct {
	// (Optional) Maximum number of Records in the zone. Defaults to `1000`.
	MaxNumberOfRecordSets pulumi.IntPtrInput
	// The name of the DNS Zone. Must be a valid domain name. Changing this forces a new resource to be created.
	Name pulumi.StringPtrInput
	// (Optional) A list of values that make up the NS record for the zone.
	NameServers pulumi.StringArrayInput
	// (Optional) The number of records already in the zone.
	NumberOfRecordSets pulumi.IntPtrInput
	// Specifies the resource group where the resource exists. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringPtrInput
	// An `soaRecord` block as defined below. Changing this forces a new resource to be created.
	SoaRecord ZoneSoaRecordPtrInput
	// A mapping of tags to assign to the resource.
	Tags pulumi.StringMapInput
}

func (ZoneState) ElementType

func (ZoneState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL