RecordSet

Manages a set of DNS records within Google Cloud DNS. For more information see the official documentation and API.

Note: The provider treats this resource as an authoritative record set. This means existing records (including the default records) for the given type will be overwritten when you create this resource in the provider. In addition, the Google Cloud DNS API requires NS records to be present at all times, so the provider will not actually remove NS records during destroy but will report that it did.

Create a RecordSet Resource

def RecordSet(resource_name, opts=None, managed_zone=None, name=None, project=None, rrdatas=None, ttl=None, type=None, __props__=None);
func NewRecordSet(ctx *Context, name string, args RecordSetArgs, opts ...ResourceOption) (*RecordSet, error)
public RecordSet(string name, RecordSetArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args RecordSetArgs
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 RecordSetArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args RecordSetArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

RecordSet Resource Properties

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

Inputs

The RecordSet resource accepts the following input properties:

ManagedZone string

The name of the zone in which this record set will reside.

Rrdatas List<string>

The string data for the records in this record set whose meaning depends on the DNS type. For TXT record, if the string data contains spaces, add surrounding \" if you don’t want your string to get split on spaces. To specify a single record value longer than 255 characters such as a TXT record for DKIM, add \"\" inside the provider configuration string (e.g. "first255characters\"\"morecharacters").

Ttl int

The time-to-live of this record set (seconds).

Type string

The DNS record set type.

Name string

The DNS name this record set will apply to.

Project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

ManagedZone string

The name of the zone in which this record set will reside.

Rrdatas []string

The string data for the records in this record set whose meaning depends on the DNS type. For TXT record, if the string data contains spaces, add surrounding \" if you don’t want your string to get split on spaces. To specify a single record value longer than 255 characters such as a TXT record for DKIM, add \"\" inside the provider configuration string (e.g. "first255characters\"\"morecharacters").

Ttl int

The time-to-live of this record set (seconds).

Type string

The DNS record set type.

Name string

The DNS name this record set will apply to.

Project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

managedZone string

The name of the zone in which this record set will reside.

rrdatas string[]

The string data for the records in this record set whose meaning depends on the DNS type. For TXT record, if the string data contains spaces, add surrounding \" if you don’t want your string to get split on spaces. To specify a single record value longer than 255 characters such as a TXT record for DKIM, add \"\" inside the provider configuration string (e.g. "first255characters\"\"morecharacters").

ttl number

The time-to-live of this record set (seconds).

type string

The DNS record set type.

name string

The DNS name this record set will apply to.

project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

managed_zone str

The name of the zone in which this record set will reside.

rrdatas List[str]

The string data for the records in this record set whose meaning depends on the DNS type. For TXT record, if the string data contains spaces, add surrounding \" if you don’t want your string to get split on spaces. To specify a single record value longer than 255 characters such as a TXT record for DKIM, add \"\" inside the provider configuration string (e.g. "first255characters\"\"morecharacters").

ttl float

The time-to-live of this record set (seconds).

type str

The DNS record set type.

name str

The DNS name this record set will apply to.

project str

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.

Look up an Existing RecordSet Resource

Get an existing RecordSet 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?: RecordSetState, opts?: CustomResourceOptions): RecordSet
static get(resource_name, id, opts=None, managed_zone=None, name=None, project=None, rrdatas=None, ttl=None, type=None, __props__=None);
func GetRecordSet(ctx *Context, name string, id IDInput, state *RecordSetState, opts ...ResourceOption) (*RecordSet, error)
public static RecordSet Get(string name, Input<string> id, RecordSetState? 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:

ManagedZone string

The name of the zone in which this record set will reside.

Name string

The DNS name this record set will apply to.

Project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Rrdatas List<string>

The string data for the records in this record set whose meaning depends on the DNS type. For TXT record, if the string data contains spaces, add surrounding \" if you don’t want your string to get split on spaces. To specify a single record value longer than 255 characters such as a TXT record for DKIM, add \"\" inside the provider configuration string (e.g. "first255characters\"\"morecharacters").

Ttl int

The time-to-live of this record set (seconds).

Type string

The DNS record set type.

ManagedZone string

The name of the zone in which this record set will reside.

Name string

The DNS name this record set will apply to.

Project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Rrdatas []string

The string data for the records in this record set whose meaning depends on the DNS type. For TXT record, if the string data contains spaces, add surrounding \" if you don’t want your string to get split on spaces. To specify a single record value longer than 255 characters such as a TXT record for DKIM, add \"\" inside the provider configuration string (e.g. "first255characters\"\"morecharacters").

Ttl int

The time-to-live of this record set (seconds).

Type string

The DNS record set type.

managedZone string

The name of the zone in which this record set will reside.

name string

The DNS name this record set will apply to.

project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

rrdatas string[]

The string data for the records in this record set whose meaning depends on the DNS type. For TXT record, if the string data contains spaces, add surrounding \" if you don’t want your string to get split on spaces. To specify a single record value longer than 255 characters such as a TXT record for DKIM, add \"\" inside the provider configuration string (e.g. "first255characters\"\"morecharacters").

ttl number

The time-to-live of this record set (seconds).

type string

The DNS record set type.

managed_zone str

The name of the zone in which this record set will reside.

name str

The DNS name this record set will apply to.

project str

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

rrdatas List[str]

The string data for the records in this record set whose meaning depends on the DNS type. For TXT record, if the string data contains spaces, add surrounding \" if you don’t want your string to get split on spaces. To specify a single record value longer than 255 characters such as a TXT record for DKIM, add \"\" inside the provider configuration string (e.g. "first255characters\"\"morecharacters").

ttl float

The time-to-live of this record set (seconds).

type str

The DNS record set type.

Package Details

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