1. Packages
  2. Constellix Provider
  3. API Docs
  4. TxtRecord
constellix 0.4.6 published on Friday, Mar 7, 2025 by constellix

constellix.TxtRecord

Explore with Pulumi AI

Create TxtRecord Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new TxtRecord(name: string, args: TxtRecordArgs, opts?: CustomResourceOptions);
@overload
def TxtRecord(resource_name: str,
              args: TxtRecordArgs,
              opts: Optional[ResourceOptions] = None)

@overload
def TxtRecord(resource_name: str,
              opts: Optional[ResourceOptions] = None,
              roundrobins: Optional[Sequence[TxtRecordRoundrobinArgs]] = None,
              ttl: Optional[float] = None,
              source_type: Optional[str] = None,
              domain_id: Optional[str] = None,
              noanswer: Optional[str] = None,
              parent: Optional[str] = None,
              parentid: Optional[float] = None,
              note: Optional[str] = None,
              source: Optional[str] = None,
              name: Optional[str] = None,
              gtd_region: Optional[float] = None,
              txt_record_id: Optional[str] = None,
              type: Optional[str] = None)
func NewTxtRecord(ctx *Context, name string, args TxtRecordArgs, opts ...ResourceOption) (*TxtRecord, error)
public TxtRecord(string name, TxtRecordArgs args, CustomResourceOptions? opts = null)
public TxtRecord(String name, TxtRecordArgs args)
public TxtRecord(String name, TxtRecordArgs args, CustomResourceOptions options)
type: constellix:TxtRecord
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. TxtRecordArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. TxtRecordArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. TxtRecordArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. TxtRecordArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. TxtRecordArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var txtRecordResource = new Constellix.TxtRecord("txtRecordResource", new()
{
    Roundrobins = new[]
    {
        new Constellix.Inputs.TxtRecordRoundrobinArgs
        {
            Value = "string",
            DisableFlag = false,
        },
    },
    Ttl = 0,
    SourceType = "string",
    DomainId = "string",
    Noanswer = "string",
    Parent = "string",
    Parentid = 0,
    Note = "string",
    Source = "string",
    Name = "string",
    GtdRegion = 0,
    TxtRecordId = "string",
    Type = "string",
});
Copy
example, err := constellix.NewTxtRecord(ctx, "txtRecordResource", &constellix.TxtRecordArgs{
Roundrobins: .TxtRecordRoundrobinArray{
&.TxtRecordRoundrobinArgs{
Value: pulumi.String("string"),
DisableFlag: pulumi.Bool(false),
},
},
Ttl: pulumi.Float64(0),
SourceType: pulumi.String("string"),
DomainId: pulumi.String("string"),
Noanswer: pulumi.String("string"),
Parent: pulumi.String("string"),
Parentid: pulumi.Float64(0),
Note: pulumi.String("string"),
Source: pulumi.String("string"),
Name: pulumi.String("string"),
GtdRegion: pulumi.Float64(0),
TxtRecordId: pulumi.String("string"),
Type: pulumi.String("string"),
})
Copy
var txtRecordResource = new TxtRecord("txtRecordResource", TxtRecordArgs.builder()
    .roundrobins(TxtRecordRoundrobinArgs.builder()
        .value("string")
        .disableFlag(false)
        .build())
    .ttl(0)
    .sourceType("string")
    .domainId("string")
    .noanswer("string")
    .parent("string")
    .parentid(0)
    .note("string")
    .source("string")
    .name("string")
    .gtdRegion(0)
    .txtRecordId("string")
    .type("string")
    .build());
Copy
txt_record_resource = constellix.TxtRecord("txtRecordResource",
    roundrobins=[{
        "value": "string",
        "disable_flag": False,
    }],
    ttl=0,
    source_type="string",
    domain_id="string",
    noanswer="string",
    parent="string",
    parentid=0,
    note="string",
    source="string",
    name="string",
    gtd_region=0,
    txt_record_id="string",
    type="string")
Copy
const txtRecordResource = new constellix.TxtRecord("txtRecordResource", {
    roundrobins: [{
        value: "string",
        disableFlag: false,
    }],
    ttl: 0,
    sourceType: "string",
    domainId: "string",
    noanswer: "string",
    parent: "string",
    parentid: 0,
    note: "string",
    source: "string",
    name: "string",
    gtdRegion: 0,
    txtRecordId: "string",
    type: "string",
});
Copy
type: constellix:TxtRecord
properties:
    domainId: string
    gtdRegion: 0
    name: string
    noanswer: string
    note: string
    parent: string
    parentid: 0
    roundrobins:
        - disableFlag: false
          value: string
    source: string
    sourceType: string
    ttl: 0
    txtRecordId: string
    type: string
Copy

TxtRecord Resource Properties

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

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The TxtRecord resource accepts the following input properties:

DomainId This property is required. string
Roundrobins This property is required. List<TxtRecordRoundrobin>
SourceType This property is required. string
Ttl This property is required. double
GtdRegion double
Name string
Noanswer string
Note string
Parent string
Parentid double
Source string
TxtRecordId string
Type string
DomainId This property is required. string
Roundrobins This property is required. []TxtRecordRoundrobinArgs
SourceType This property is required. string
Ttl This property is required. float64
GtdRegion float64
Name string
Noanswer string
Note string
Parent string
Parentid float64
Source string
TxtRecordId string
Type string
domainId This property is required. String
roundrobins This property is required. List<TxtRecordRoundrobin>
sourceType This property is required. String
ttl This property is required. Double
gtdRegion Double
name String
noanswer String
note String
parent String
parentid Double
source String
txtRecordId String
type String
domainId This property is required. string
roundrobins This property is required. TxtRecordRoundrobin[]
sourceType This property is required. string
ttl This property is required. number
gtdRegion number
name string
noanswer string
note string
parent string
parentid number
source string
txtRecordId string
type string
domain_id This property is required. str
roundrobins This property is required. Sequence[TxtRecordRoundrobinArgs]
source_type This property is required. str
ttl This property is required. float
gtd_region float
name str
noanswer str
note str
parent str
parentid float
source str
txt_record_id str
type str
domainId This property is required. String
roundrobins This property is required. List<Property Map>
sourceType This property is required. String
ttl This property is required. Number
gtdRegion Number
name String
noanswer String
note String
parent String
parentid Number
source String
txtRecordId String
type String

Outputs

All input properties are implicitly available as output properties. Additionally, the TxtRecord 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 string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing TxtRecord Resource

Get an existing TxtRecord 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?: TxtRecordState, opts?: CustomResourceOptions): TxtRecord
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        domain_id: Optional[str] = None,
        gtd_region: Optional[float] = None,
        name: Optional[str] = None,
        noanswer: Optional[str] = None,
        note: Optional[str] = None,
        parent: Optional[str] = None,
        parentid: Optional[float] = None,
        roundrobins: Optional[Sequence[TxtRecordRoundrobinArgs]] = None,
        source: Optional[str] = None,
        source_type: Optional[str] = None,
        ttl: Optional[float] = None,
        txt_record_id: Optional[str] = None,
        type: Optional[str] = None) -> TxtRecord
func GetTxtRecord(ctx *Context, name string, id IDInput, state *TxtRecordState, opts ...ResourceOption) (*TxtRecord, error)
public static TxtRecord Get(string name, Input<string> id, TxtRecordState? state, CustomResourceOptions? opts = null)
public static TxtRecord get(String name, Output<String> id, TxtRecordState state, CustomResourceOptions options)
resources:  _:    type: constellix:TxtRecord    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
DomainId string
GtdRegion double
Name string
Noanswer string
Note string
Parent string
Parentid double
Roundrobins List<TxtRecordRoundrobin>
Source string
SourceType string
Ttl double
TxtRecordId string
Type string
DomainId string
GtdRegion float64
Name string
Noanswer string
Note string
Parent string
Parentid float64
Roundrobins []TxtRecordRoundrobinArgs
Source string
SourceType string
Ttl float64
TxtRecordId string
Type string
domainId String
gtdRegion Double
name String
noanswer String
note String
parent String
parentid Double
roundrobins List<TxtRecordRoundrobin>
source String
sourceType String
ttl Double
txtRecordId String
type String
domainId string
gtdRegion number
name string
noanswer string
note string
parent string
parentid number
roundrobins TxtRecordRoundrobin[]
source string
sourceType string
ttl number
txtRecordId string
type string
domainId String
gtdRegion Number
name String
noanswer String
note String
parent String
parentid Number
roundrobins List<Property Map>
source String
sourceType String
ttl Number
txtRecordId String
type String

Supporting Types

TxtRecordRoundrobin
, TxtRecordRoundrobinArgs

Value This property is required. string
DisableFlag bool
Value This property is required. string
DisableFlag bool
value This property is required. String
disableFlag Boolean
value This property is required. string
disableFlag boolean
value This property is required. str
disable_flag bool
value This property is required. String
disableFlag Boolean

Package Details

Repository
constellix constellix/terraform-provider-constellix
License
Notes
This Pulumi package is based on the constellix Terraform Provider.