Documentation
¶
Index ¶
- type ARecord
- type ARecordArgs
- type ARecordState
- type AaaaRecord
- type AaaaRecordArgs
- type AaaaRecordState
- type CNameRecord
- type CNameRecordArgs
- type CNameRecordState
- type CaaRecord
- type CaaRecordArgs
- type CaaRecordRecord
- type CaaRecordRecordArgs
- type CaaRecordRecordArray
- type CaaRecordRecordArrayInput
- type CaaRecordRecordArrayOutput
- func (CaaRecordRecordArrayOutput) ElementType() reflect.Type
- func (o CaaRecordRecordArrayOutput) Index(i pulumi.IntInput) CaaRecordRecordOutput
- func (o CaaRecordRecordArrayOutput) ToCaaRecordRecordArrayOutput() CaaRecordRecordArrayOutput
- func (o CaaRecordRecordArrayOutput) ToCaaRecordRecordArrayOutputWithContext(ctx context.Context) CaaRecordRecordArrayOutput
- type CaaRecordRecordInput
- type CaaRecordRecordOutput
- func (CaaRecordRecordOutput) ElementType() reflect.Type
- func (o CaaRecordRecordOutput) Flags() pulumi.IntOutput
- func (o CaaRecordRecordOutput) Tag() pulumi.StringOutput
- func (o CaaRecordRecordOutput) ToCaaRecordRecordOutput() CaaRecordRecordOutput
- func (o CaaRecordRecordOutput) ToCaaRecordRecordOutputWithContext(ctx context.Context) CaaRecordRecordOutput
- func (o CaaRecordRecordOutput) Value() pulumi.StringOutput
- type CaaRecordState
- type LookupZoneArgs
- type LookupZoneResult
- type MxRecord
- type MxRecordArgs
- type MxRecordRecord
- type MxRecordRecordArgs
- type MxRecordRecordArray
- type MxRecordRecordArrayInput
- type MxRecordRecordArrayOutput
- func (MxRecordRecordArrayOutput) ElementType() reflect.Type
- func (o MxRecordRecordArrayOutput) Index(i pulumi.IntInput) MxRecordRecordOutput
- func (o MxRecordRecordArrayOutput) ToMxRecordRecordArrayOutput() MxRecordRecordArrayOutput
- func (o MxRecordRecordArrayOutput) ToMxRecordRecordArrayOutputWithContext(ctx context.Context) MxRecordRecordArrayOutput
- type MxRecordRecordInput
- type MxRecordRecordOutput
- func (MxRecordRecordOutput) ElementType() reflect.Type
- func (o MxRecordRecordOutput) Exchange() pulumi.StringOutput
- func (o MxRecordRecordOutput) Preference() pulumi.StringOutput
- func (o MxRecordRecordOutput) ToMxRecordRecordOutput() MxRecordRecordOutput
- func (o MxRecordRecordOutput) ToMxRecordRecordOutputWithContext(ctx context.Context) MxRecordRecordOutput
- type MxRecordState
- type NsRecord
- type NsRecordArgs
- type NsRecordState
- type PtrRecord
- type PtrRecordArgs
- type PtrRecordState
- type SrvRecord
- type SrvRecordArgs
- type SrvRecordRecord
- type SrvRecordRecordArgs
- type SrvRecordRecordArray
- type SrvRecordRecordArrayInput
- type SrvRecordRecordArrayOutput
- func (SrvRecordRecordArrayOutput) ElementType() reflect.Type
- func (o SrvRecordRecordArrayOutput) Index(i pulumi.IntInput) SrvRecordRecordOutput
- func (o SrvRecordRecordArrayOutput) ToSrvRecordRecordArrayOutput() SrvRecordRecordArrayOutput
- func (o SrvRecordRecordArrayOutput) ToSrvRecordRecordArrayOutputWithContext(ctx context.Context) SrvRecordRecordArrayOutput
- type SrvRecordRecordInput
- type SrvRecordRecordOutput
- func (SrvRecordRecordOutput) ElementType() reflect.Type
- func (o SrvRecordRecordOutput) Port() pulumi.IntOutput
- func (o SrvRecordRecordOutput) Priority() pulumi.IntOutput
- func (o SrvRecordRecordOutput) Target() pulumi.StringOutput
- func (o SrvRecordRecordOutput) ToSrvRecordRecordOutput() SrvRecordRecordOutput
- func (o SrvRecordRecordOutput) ToSrvRecordRecordOutputWithContext(ctx context.Context) SrvRecordRecordOutput
- func (o SrvRecordRecordOutput) Weight() pulumi.IntOutput
- type SrvRecordState
- type TxtRecord
- type TxtRecordArgs
- type TxtRecordRecord
- type TxtRecordRecordArgs
- type TxtRecordRecordArray
- type TxtRecordRecordArrayInput
- type TxtRecordRecordArrayOutput
- func (TxtRecordRecordArrayOutput) ElementType() reflect.Type
- func (o TxtRecordRecordArrayOutput) Index(i pulumi.IntInput) TxtRecordRecordOutput
- func (o TxtRecordRecordArrayOutput) ToTxtRecordRecordArrayOutput() TxtRecordRecordArrayOutput
- func (o TxtRecordRecordArrayOutput) ToTxtRecordRecordArrayOutputWithContext(ctx context.Context) TxtRecordRecordArrayOutput
- type TxtRecordRecordInput
- type TxtRecordRecordOutput
- func (TxtRecordRecordOutput) ElementType() reflect.Type
- func (o TxtRecordRecordOutput) ToTxtRecordRecordOutput() TxtRecordRecordOutput
- func (o TxtRecordRecordOutput) ToTxtRecordRecordOutputWithContext(ctx context.Context) TxtRecordRecordOutput
- func (o TxtRecordRecordOutput) Value() pulumi.StringOutput
- type TxtRecordState
- type Zone
- type ZoneArgs
- type ZoneState
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. 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"` 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"` }
Enables you to manage DNS A Records within Azure DNS.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/core" "github.com/pulumi/pulumi-azure/sdk/v3/go/azure/dns" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{ Location: pulumi.String("West US"), }) 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/v3/go/azure/core" "github.com/pulumi/pulumi-azure/sdk/v3/go/azure/dns" "github.com/pulumi/pulumi-azure/sdk/v3/go/azure/network" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{ Location: pulumi.String("West US"), }) 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 }) }
```
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.
type ARecordArgs ¶
type ARecordArgs struct { // The name of the DNS A Record. 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 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 ARecordState ¶
type ARecordState struct { // The FQDN of the DNS A Record. Fqdn pulumi.StringPtrInput // The name of the DNS A Record. 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 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. 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"` 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"` }
Enables you to manage DNS AAAA Records within Azure DNS.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/core" "github.com/pulumi/pulumi-azure/sdk/v3/go/azure/dns" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{ Location: pulumi.String("West US"), }) 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), }) if err != nil { return err } return nil }) }
``` ### Alias Record)
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/core" "github.com/pulumi/pulumi-azure/sdk/v3/go/azure/dns" "github.com/pulumi/pulumi-azure/sdk/v3/go/azure/network" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{ Location: pulumi.String("West US"), }) 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 }) }
```
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.
type AaaaRecordArgs ¶
type AaaaRecordArgs struct { // The name of the DNS AAAA Record. 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 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 AaaaRecordState ¶
type AaaaRecordState struct { // The FQDN of the DNS AAAA Record. Fqdn pulumi.StringPtrInput // The name of the DNS AAAA Record. 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 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. 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 `records` TargetResourceId pulumi.StringPtrOutput `pulumi:"targetResourceId"` 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"` }
Enables you to manage DNS CNAME Records within Azure DNS.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/core" "github.com/pulumi/pulumi-azure/sdk/v3/go/azure/dns" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{ Location: pulumi.String("West US"), }) 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/v3/go/azure/core" "github.com/pulumi/pulumi-azure/sdk/v3/go/azure/dns" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{ Location: pulumi.String("West US"), }) 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 }) }
```
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.
type CNameRecordArgs ¶
type CNameRecordArgs struct { // The name of the DNS CNAME Record. 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 `records` TargetResourceId pulumi.StringPtrInput 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 CNameRecordState ¶
type CNameRecordState struct { // The FQDN of the DNS CName Record. Fqdn pulumi.StringPtrInput // The name of the DNS CNAME Record. 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 `records` TargetResourceId pulumi.StringPtrInput 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. 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"` }
Enables you to manage DNS CAA Records within Azure DNS.
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.
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. 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 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 (o CaaRecordRecordArrayOutput) Index(i pulumi.IntInput) CaaRecordRecordOutput
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 ¶
func (o CaaRecordRecordOutput) Flags() pulumi.IntOutput
Extensible CAA flags, currently only 1 is implemented to set the issuer critical flag.
func (CaaRecordRecordOutput) Tag ¶
func (o CaaRecordRecordOutput) Tag() pulumi.StringOutput
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 ¶
func (o CaaRecordRecordOutput) Value() pulumi.StringOutput
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. 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 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 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 to assign to the EventHub Namespace. 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/v3/go/azure/dns" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { opt0 := "search-service" example, err := dns.LookupZone(ctx, &dns.LookupZoneArgs{ Name: "search-eventhubns", ResourceGroupName: &opt0, }, nil) if err != nil { return err } ctx.Export("dnsZoneId", example.Id) return nil }) }
```
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 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 DNS Zone (parent resource) exists. Changing this forces a new resource to be created. ZoneName pulumi.StringOutput `pulumi:"zoneName"` }
Enables you to manage DNS MX Records within Azure DNS.
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.
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 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 DNS Zone (parent 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 MxRecordRecord ¶
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 (o MxRecordRecordArrayOutput) Index(i pulumi.IntInput) MxRecordRecordOutput
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 ¶
func (o MxRecordRecordOutput) Exchange() pulumi.StringOutput
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 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 DNS Zone (parent 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. 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 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 DNS Zone (parent resource) exists. Changing this forces a new resource to be created. ZoneName pulumi.StringOutput `pulumi:"zoneName"` }
Enables you to manage DNS NS Records within Azure DNS.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/core" "github.com/pulumi/pulumi-azure/sdk/v3/go/azure/dns" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{ Location: pulumi.String("West US"), }) 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.Map{ "Environment": pulumi.String("Production"), }, }) if err != nil { return err } return nil }) }
```
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.
type NsRecordArgs ¶
type NsRecordArgs struct { // The name of the DNS NS Record. Name pulumi.StringPtrInput // A list of values that make up the NS record. Records pulumi.StringArrayInput // Specifies the resource group where the 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 DNS Zone (parent 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 NsRecordState ¶
type NsRecordState struct { // The FQDN of the DNS NS Record. Fqdn pulumi.StringPtrInput // The name of the DNS NS Record. Name pulumi.StringPtrInput // A list of values that make up the NS record. Records pulumi.StringArrayInput // Specifies the resource group where the 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 DNS Zone (parent 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. Name pulumi.StringOutput `pulumi:"name"` // List of Fully Qualified Domain Names. Records pulumi.StringArrayOutput `pulumi:"records"` // Specifies the resource group where the 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 DNS Zone (parent resource) exists. Changing this forces a new resource to be created. ZoneName pulumi.StringOutput `pulumi:"zoneName"` }
Enables you to manage DNS PTR Records within Azure DNS.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/core" "github.com/pulumi/pulumi-azure/sdk/v3/go/azure/dns" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{ Location: pulumi.String("West US"), }) 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 }) }
```
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.
type PtrRecordArgs ¶
type PtrRecordArgs struct { // The name of the DNS PTR Record. Name pulumi.StringPtrInput // List of Fully Qualified Domain Names. Records pulumi.StringArrayInput // Specifies the resource group where the 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 DNS Zone (parent 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 PtrRecordState ¶
type PtrRecordState struct { // The FQDN of the DNS PTR Record. Fqdn pulumi.StringPtrInput // The name of the DNS PTR Record. Name pulumi.StringPtrInput // List of Fully Qualified Domain Names. Records pulumi.StringArrayInput // Specifies the resource group where the 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 DNS Zone (parent 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. 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 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 DNS Zone (parent resource) exists. Changing this forces a new resource to be created. ZoneName pulumi.StringOutput `pulumi:"zoneName"` }
Enables you to manage DNS SRV Records within Azure DNS.
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.
type SrvRecordArgs ¶
type SrvRecordArgs struct { // The name of the DNS SRV Record. 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 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 DNS Zone (parent 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 SrvRecordRecord ¶
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 (o SrvRecordRecordArrayOutput) Index(i pulumi.IntInput) SrvRecordRecordOutput
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 ¶
func (o SrvRecordRecordOutput) Port() pulumi.IntOutput
Port the service is listening on.
func (SrvRecordRecordOutput) Priority ¶
func (o SrvRecordRecordOutput) Priority() pulumi.IntOutput
Priority of the SRV record.
func (SrvRecordRecordOutput) Target ¶
func (o SrvRecordRecordOutput) Target() pulumi.StringOutput
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 ¶
func (o SrvRecordRecordOutput) Weight() pulumi.IntOutput
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. 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 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 DNS Zone (parent 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. 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 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 DNS Zone (parent resource) exists. Changing this forces a new resource to be created. ZoneName pulumi.StringOutput `pulumi:"zoneName"` }
Enables you to manage DNS TXT Records within Azure DNS.
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.
type TxtRecordArgs ¶
type TxtRecordArgs struct { // The name of the DNS TXT Record. 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 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 DNS Zone (parent 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 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 (o TxtRecordRecordArrayOutput) Index(i pulumi.IntInput) TxtRecordRecordOutput
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 ¶
func (o TxtRecordRecordOutput) Value() pulumi.StringOutput
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. 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 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 DNS Zone (parent 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. 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"` // 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/v3/go/azure/core" "github.com/pulumi/pulumi-azure/sdk/v3/go/azure/dns" "github.com/pulumi/pulumi-azure/sdk/v3/go/azure/privatedns" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{ Location: pulumi.String("West US"), }) if err != nil { return err } _, err = dns.NewZone(ctx, "example-public", &dns.ZoneArgs{ ResourceGroupName: example.Name, }) if err != nil { return err } _, err = privatedns.NewZone(ctx, "example-private", &privatedns.ZoneArgs{ ResourceGroupName: example.Name, }) if err != nil { return err } return nil }) }
```
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).
type ZoneArgs ¶
type ZoneArgs struct { // The name of the DNS Zone. Must be a valid domain name. Name pulumi.StringPtrInput // Specifies the resource group where the 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 set of arguments for constructing a Zone resource.
func (ZoneArgs) ElementType ¶
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. 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 // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput }