constellix.SpfRecord
Explore with Pulumi AI
Create SpfRecord Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SpfRecord(name: string, args: SpfRecordArgs, opts?: CustomResourceOptions);
@overload
def SpfRecord(resource_name: str,
args: SpfRecordArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SpfRecord(resource_name: str,
opts: Optional[ResourceOptions] = None,
domain_id: Optional[str] = None,
roundrobins: Optional[Sequence[SpfRecordRoundrobinArgs]] = None,
source_type: Optional[str] = None,
ttl: Optional[float] = None,
gtd_region: Optional[float] = None,
name: Optional[str] = None,
noanswer: Optional[bool] = None,
note: Optional[str] = None,
spf_record_id: Optional[str] = None,
type: Optional[str] = None)
func NewSpfRecord(ctx *Context, name string, args SpfRecordArgs, opts ...ResourceOption) (*SpfRecord, error)
public SpfRecord(string name, SpfRecordArgs args, CustomResourceOptions? opts = null)
public SpfRecord(String name, SpfRecordArgs args)
public SpfRecord(String name, SpfRecordArgs args, CustomResourceOptions options)
type: constellix:SpfRecord
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. SpfRecordArgs - 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. SpfRecordArgs - 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. SpfRecordArgs - 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. SpfRecordArgs - 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. SpfRecordArgs - 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 spfRecordResource = new Constellix.SpfRecord("spfRecordResource", new()
{
DomainId = "string",
Roundrobins = new[]
{
new Constellix.Inputs.SpfRecordRoundrobinArgs
{
Value = "string",
DisableFlag = "string",
},
},
SourceType = "string",
Ttl = 0,
GtdRegion = 0,
Name = "string",
Noanswer = false,
Note = "string",
SpfRecordId = "string",
Type = "string",
});
example, err := constellix.NewSpfRecord(ctx, "spfRecordResource", &constellix.SpfRecordArgs{
DomainId: pulumi.String("string"),
Roundrobins: .SpfRecordRoundrobinArray{
&.SpfRecordRoundrobinArgs{
Value: pulumi.String("string"),
DisableFlag: pulumi.String("string"),
},
},
SourceType: pulumi.String("string"),
Ttl: pulumi.Float64(0),
GtdRegion: pulumi.Float64(0),
Name: pulumi.String("string"),
Noanswer: pulumi.Bool(false),
Note: pulumi.String("string"),
SpfRecordId: pulumi.String("string"),
Type: pulumi.String("string"),
})
var spfRecordResource = new SpfRecord("spfRecordResource", SpfRecordArgs.builder()
.domainId("string")
.roundrobins(SpfRecordRoundrobinArgs.builder()
.value("string")
.disableFlag("string")
.build())
.sourceType("string")
.ttl(0)
.gtdRegion(0)
.name("string")
.noanswer(false)
.note("string")
.spfRecordId("string")
.type("string")
.build());
spf_record_resource = constellix.SpfRecord("spfRecordResource",
domain_id="string",
roundrobins=[{
"value": "string",
"disable_flag": "string",
}],
source_type="string",
ttl=0,
gtd_region=0,
name="string",
noanswer=False,
note="string",
spf_record_id="string",
type="string")
const spfRecordResource = new constellix.SpfRecord("spfRecordResource", {
domainId: "string",
roundrobins: [{
value: "string",
disableFlag: "string",
}],
sourceType: "string",
ttl: 0,
gtdRegion: 0,
name: "string",
noanswer: false,
note: "string",
spfRecordId: "string",
type: "string",
});
type: constellix:SpfRecord
properties:
domainId: string
gtdRegion: 0
name: string
noanswer: false
note: string
roundrobins:
- disableFlag: string
value: string
sourceType: string
spfRecordId: string
ttl: 0
type: string
SpfRecord 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 SpfRecord resource accepts the following input properties:
- Domain
Id This property is required. string - Roundrobins
This property is required. List<SpfRecord Roundrobin> - Source
Type This property is required. string - Ttl
This property is required. double - Gtd
Region double - Name string
- Noanswer bool
- Note string
- Spf
Record stringId - The constellix calculated id of the SPF resource.
- Type string
- Domain
Id This property is required. string - Roundrobins
This property is required. []SpfRecord Roundrobin Args - Source
Type This property is required. string - Ttl
This property is required. float64 - Gtd
Region float64 - Name string
- Noanswer bool
- Note string
- Spf
Record stringId - The constellix calculated id of the SPF resource.
- Type string
- domain
Id This property is required. String - roundrobins
This property is required. List<SpfRecord Roundrobin> - source
Type This property is required. String - ttl
This property is required. Double - gtd
Region Double - name String
- noanswer Boolean
- note String
- spf
Record StringId - The constellix calculated id of the SPF resource.
- type String
- domain
Id This property is required. string - roundrobins
This property is required. SpfRecord Roundrobin[] - source
Type This property is required. string - ttl
This property is required. number - gtd
Region number - name string
- noanswer boolean
- note string
- spf
Record stringId - The constellix calculated id of the SPF resource.
- type string
- domain_
id This property is required. str - roundrobins
This property is required. Sequence[SpfRecord Roundrobin Args] - source_
type This property is required. str - ttl
This property is required. float - gtd_
region float - name str
- noanswer bool
- note str
- spf_
record_ strid - The constellix calculated id of the SPF resource.
- type str
- domain
Id This property is required. String - roundrobins
This property is required. List<Property Map> - source
Type This property is required. String - ttl
This property is required. Number - gtd
Region Number - name String
- noanswer Boolean
- note String
- spf
Record StringId - The constellix calculated id of the SPF resource.
- type String
Outputs
All input properties are implicitly available as output properties. Additionally, the SpfRecord 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 SpfRecord Resource
Get an existing SpfRecord 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?: SpfRecordState, opts?: CustomResourceOptions): SpfRecord
@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[bool] = None,
note: Optional[str] = None,
roundrobins: Optional[Sequence[SpfRecordRoundrobinArgs]] = None,
source_type: Optional[str] = None,
spf_record_id: Optional[str] = None,
ttl: Optional[float] = None,
type: Optional[str] = None) -> SpfRecord
func GetSpfRecord(ctx *Context, name string, id IDInput, state *SpfRecordState, opts ...ResourceOption) (*SpfRecord, error)
public static SpfRecord Get(string name, Input<string> id, SpfRecordState? state, CustomResourceOptions? opts = null)
public static SpfRecord get(String name, Output<String> id, SpfRecordState state, CustomResourceOptions options)
resources: _: type: constellix:SpfRecord 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.
- Domain
Id string - Gtd
Region double - Name string
- Noanswer bool
- Note string
- Roundrobins
List<Spf
Record Roundrobin> - Source
Type string - Spf
Record stringId - The constellix calculated id of the SPF resource.
- Ttl double
- Type string
- Domain
Id string - Gtd
Region float64 - Name string
- Noanswer bool
- Note string
- Roundrobins
[]Spf
Record Roundrobin Args - Source
Type string - Spf
Record stringId - The constellix calculated id of the SPF resource.
- Ttl float64
- Type string
- domain
Id String - gtd
Region Double - name String
- noanswer Boolean
- note String
- roundrobins
List<Spf
Record Roundrobin> - source
Type String - spf
Record StringId - The constellix calculated id of the SPF resource.
- ttl Double
- type String
- domain
Id string - gtd
Region number - name string
- noanswer boolean
- note string
- roundrobins
Spf
Record Roundrobin[] - source
Type string - spf
Record stringId - The constellix calculated id of the SPF resource.
- ttl number
- type string
- domain_
id str - gtd_
region float - name str
- noanswer bool
- note str
- roundrobins
Sequence[Spf
Record Roundrobin Args] - source_
type str - spf_
record_ strid - The constellix calculated id of the SPF resource.
- ttl float
- type str
- domain
Id String - gtd
Region Number - name String
- noanswer Boolean
- note String
- roundrobins List<Property Map>
- source
Type String - spf
Record StringId - The constellix calculated id of the SPF resource.
- ttl Number
- type String
Supporting Types
SpfRecordRoundrobin, SpfRecordRoundrobinArgs
- Value
This property is required. string - Disable
Flag string
- Value
This property is required. string - Disable
Flag string
- value
This property is required. String - disable
Flag String
- value
This property is required. string - disable
Flag string
- value
This property is required. str - disable_
flag str
- value
This property is required. String - disable
Flag String
Package Details
- Repository
- constellix constellix/terraform-provider-constellix
- License
- Notes
- This Pulumi package is based on the
constellix
Terraform Provider.