ZoneRecord

Create a ZoneRecord Resource

def ZoneRecord(resource_name, opts=None, priority=None, resource_record=None, ttl=None, type=None, value=None, zone_id=None, __props__=None);
func NewZoneRecord(ctx *Context, name string, args ZoneRecordArgs, opts ...ResourceOption) (*ZoneRecord, error)
public ZoneRecord(string name, ZoneRecordArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args ZoneRecordArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args ZoneRecordArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ZoneRecordArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

ZoneRecord Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The ZoneRecord resource accepts the following input properties:

ResourceRecord string

The resource record of the Private Zone Record.

Type string

The type of the Private Zone Record. Valid values: A, CNAME, TXT, MX, PTR.

Value string

The value of the Private Zone Record.

ZoneId string

The name of the Private Zone Record.

Priority int

The priority of the Private Zone Record. At present, only can “MX” record support it. Valid values: [1-50]. Default to 1.

Ttl int

The ttl of the Private Zone Record.

ResourceRecord string

The resource record of the Private Zone Record.

Type string

The type of the Private Zone Record. Valid values: A, CNAME, TXT, MX, PTR.

Value string

The value of the Private Zone Record.

ZoneId string

The name of the Private Zone Record.

Priority int

The priority of the Private Zone Record. At present, only can “MX” record support it. Valid values: [1-50]. Default to 1.

Ttl int

The ttl of the Private Zone Record.

resourceRecord string

The resource record of the Private Zone Record.

type string

The type of the Private Zone Record. Valid values: A, CNAME, TXT, MX, PTR.

value string

The value of the Private Zone Record.

zoneId string

The name of the Private Zone Record.

priority number

The priority of the Private Zone Record. At present, only can “MX” record support it. Valid values: [1-50]. Default to 1.

ttl number

The ttl of the Private Zone Record.

resource_record str

The resource record of the Private Zone Record.

type str

The type of the Private Zone Record. Valid values: A, CNAME, TXT, MX, PTR.

value str

The value of the Private Zone Record.

zone_id str

The name of the Private Zone Record.

priority float

The priority of the Private Zone Record. At present, only can “MX” record support it. Valid values: [1-50]. Default to 1.

ttl float

The ttl of the Private Zone Record.

Outputs

All input properties are implicitly available as output properties. Additionally, the ZoneRecord resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
RecordId int

The Private Zone Record ID.

Id string
The provider-assigned unique ID for this managed resource.
RecordId int

The Private Zone Record ID.

id string
The provider-assigned unique ID for this managed resource.
recordId number

The Private Zone Record ID.

id str
The provider-assigned unique ID for this managed resource.
record_id float

The Private Zone Record ID.

Look up an Existing ZoneRecord Resource

Get an existing ZoneRecord resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: ZoneRecordState, opts?: CustomResourceOptions): ZoneRecord
static get(resource_name, id, opts=None, priority=None, record_id=None, resource_record=None, ttl=None, type=None, value=None, zone_id=None, __props__=None);
func GetZoneRecord(ctx *Context, name string, id IDInput, state *ZoneRecordState, opts ...ResourceOption) (*ZoneRecord, error)
public static ZoneRecord Get(string name, Input<string> id, ZoneRecordState? state, CustomResourceOptions? opts = null)
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.

The following state arguments are supported:

Priority int

The priority of the Private Zone Record. At present, only can “MX” record support it. Valid values: [1-50]. Default to 1.

RecordId int

The Private Zone Record ID.

ResourceRecord string

The resource record of the Private Zone Record.

Ttl int

The ttl of the Private Zone Record.

Type string

The type of the Private Zone Record. Valid values: A, CNAME, TXT, MX, PTR.

Value string

The value of the Private Zone Record.

ZoneId string

The name of the Private Zone Record.

Priority int

The priority of the Private Zone Record. At present, only can “MX” record support it. Valid values: [1-50]. Default to 1.

RecordId int

The Private Zone Record ID.

ResourceRecord string

The resource record of the Private Zone Record.

Ttl int

The ttl of the Private Zone Record.

Type string

The type of the Private Zone Record. Valid values: A, CNAME, TXT, MX, PTR.

Value string

The value of the Private Zone Record.

ZoneId string

The name of the Private Zone Record.

priority number

The priority of the Private Zone Record. At present, only can “MX” record support it. Valid values: [1-50]. Default to 1.

recordId number

The Private Zone Record ID.

resourceRecord string

The resource record of the Private Zone Record.

ttl number

The ttl of the Private Zone Record.

type string

The type of the Private Zone Record. Valid values: A, CNAME, TXT, MX, PTR.

value string

The value of the Private Zone Record.

zoneId string

The name of the Private Zone Record.

priority float

The priority of the Private Zone Record. At present, only can “MX” record support it. Valid values: [1-50]. Default to 1.

record_id float

The Private Zone Record ID.

resource_record str

The resource record of the Private Zone Record.

ttl float

The ttl of the Private Zone Record.

type str

The type of the Private Zone Record. Valid values: A, CNAME, TXT, MX, PTR.

value str

The value of the Private Zone Record.

zone_id str

The name of the Private Zone Record.

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.