ZoneRecord
Create a ZoneRecord Resource
new ZoneRecord(name: string, args: ZoneRecordArgs, opts?: CustomResourceOptions);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:
- Resource
Record 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.
- Zone
Id 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.
- Resource
Record 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.
- Zone
Id 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.
- resource
Record 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.
- zone
Id 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:
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): ZoneRecordstatic 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.
- Record
Id int The Private Zone Record ID.
- Resource
Record 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.
- Zone
Id 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.
- Record
Id int The Private Zone Record ID.
- Resource
Record 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.
- Zone
Id 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.
- record
Id number The Private Zone Record ID.
- resource
Record 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.
- zone
Id 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
alicloudTerraform Provider.