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 string
- The unique name of the resource.
- args TxtRecordArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args 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 string
- The unique name of the resource.
- args TxtRecordArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TxtRecordArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
});
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"),
})
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());
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")
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",
});
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
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 string
- Roundrobins
List<TxtRecord Roundrobin> 
- SourceType string
- Ttl double
- GtdRegion double
- Name string
- Noanswer string
- Note string
- Parent string
- Parentid double
- Source string
- TxtRecord stringId 
- Type string
- DomainId string
- Roundrobins
[]TxtRecord Roundrobin Args 
- SourceType string
- Ttl float64
- GtdRegion float64
- Name string
- Noanswer string
- Note string
- Parent string
- Parentid float64
- Source string
- TxtRecord stringId 
- Type string
- domainId String
- roundrobins
List<TxtRecord Roundrobin> 
- sourceType String
- ttl Double
- gtdRegion Double
- name String
- noanswer String
- note String
- parent String
- parentid Double
- source String
- txtRecord StringId 
- type String
- domainId string
- roundrobins
TxtRecord Roundrobin[] 
- sourceType string
- ttl number
- gtdRegion number
- name string
- noanswer string
- note string
- parent string
- parentid number
- source string
- txtRecord stringId 
- type string
- domain_id str
- roundrobins
Sequence[TxtRecord Roundrobin Args] 
- source_type str
- ttl float
- gtd_region float
- name str
- noanswer str
- note str
- parent str
- parentid float
- source str
- txt_record_ strid 
- type str
- domainId String
- roundrobins List<Property Map>
- sourceType String
- ttl Number
- gtdRegion Number
- name String
- noanswer String
- note String
- parent String
- parentid Number
- source String
- txtRecord StringId 
- 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) -> TxtRecordfunc 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
- 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.
- 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.
- DomainId string
- GtdRegion double
- Name string
- Noanswer string
- Note string
- Parent string
- Parentid double
- Roundrobins
List<TxtRecord Roundrobin> 
- Source string
- SourceType string
- Ttl double
- TxtRecord stringId 
- Type string
- DomainId string
- GtdRegion float64
- Name string
- Noanswer string
- Note string
- Parent string
- Parentid float64
- Roundrobins
[]TxtRecord Roundrobin Args 
- Source string
- SourceType string
- Ttl float64
- TxtRecord stringId 
- Type string
- domainId String
- gtdRegion Double
- name String
- noanswer String
- note String
- parent String
- parentid Double
- roundrobins
List<TxtRecord Roundrobin> 
- source String
- sourceType String
- ttl Double
- txtRecord StringId 
- type String
- domainId string
- gtdRegion number
- name string
- noanswer string
- note string
- parent string
- parentid number
- roundrobins
TxtRecord Roundrobin[] 
- source string
- sourceType string
- ttl number
- txtRecord stringId 
- type string
- domain_id str
- gtd_region float
- name str
- noanswer str
- note str
- parent str
- parentid float
- roundrobins
Sequence[TxtRecord Roundrobin Args] 
- source str
- source_type str
- ttl float
- txt_record_ strid 
- type str
- domainId String
- gtdRegion Number
- name String
- noanswer String
- note String
- parent String
- parentid Number
- roundrobins List<Property Map>
- source String
- sourceType String
- ttl Number
- txtRecord StringId 
- type String
Supporting Types
TxtRecordRoundrobin, TxtRecordRoundrobinArgs      
- Value string
- DisableFlag bool
- Value string
- DisableFlag bool
- value String
- disableFlag Boolean
- value string
- disableFlag boolean
- value str
- disable_flag bool
- value String
- disableFlag Boolean
Package Details
- Repository
- constellix constellix/terraform-provider-constellix
- License
- Notes
- This Pulumi package is based on the constellixTerraform Provider.