Scaleway

Community
Package contributed by a community member
v0.3.0 published on Tuesday, Jun 7, 2022 by Lee Briggs

DomainRecord

Create a DomainRecord Resource

new DomainRecord(name: string, args: DomainRecordArgs, opts?: CustomResourceOptions);
@overload
def DomainRecord(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 data: Optional[str] = None,
                 dns_zone: Optional[str] = None,
                 geo_ip: Optional[DomainRecordGeoIpArgs] = None,
                 http_service: Optional[DomainRecordHttpServiceArgs] = None,
                 keep_empty_zone: Optional[bool] = None,
                 name: Optional[str] = None,
                 priority: Optional[int] = None,
                 project_id: Optional[str] = None,
                 ttl: Optional[int] = None,
                 type: Optional[str] = None,
                 views: Optional[Sequence[DomainRecordViewArgs]] = None,
                 weighteds: Optional[Sequence[DomainRecordWeightedArgs]] = None)
@overload
def DomainRecord(resource_name: str,
                 args: DomainRecordArgs,
                 opts: Optional[ResourceOptions] = None)
func NewDomainRecord(ctx *Context, name string, args DomainRecordArgs, opts ...ResourceOption) (*DomainRecord, error)
public DomainRecord(string name, DomainRecordArgs args, CustomResourceOptions? opts = null)
public DomainRecord(String name, DomainRecordArgs args)
public DomainRecord(String name, DomainRecordArgs args, CustomResourceOptions options)
type: scaleway:DomainRecord
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args DomainRecordArgs
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 DomainRecordArgs
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 DomainRecordArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args DomainRecordArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args DomainRecordArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

DomainRecord Resource Properties

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

Inputs

The DomainRecord resource accepts the following input properties:

Data string

The data of the record

DnsZone string

The zone you want to add the record in

Type string

The type of the record

GeoIp DomainRecordGeoIpArgs

Return record based on client localisation

HttpService DomainRecordHttpServiceArgs

Return record based on client localisation

KeepEmptyZone bool

When destroy a resource record, if a zone have only NS, delete the zone

Name string

The name of the record

Priority int

The priority of the record

ProjectId string

The project_id you want to attach the resource to

Ttl int

The ttl of the record

Views List<DomainRecordViewArgs>

Return record based on client subnet

Weighteds List<DomainRecordWeightedArgs>

Return record based on weight

Data string

The data of the record

DnsZone string

The zone you want to add the record in

Type string

The type of the record

GeoIp DomainRecordGeoIpArgs

Return record based on client localisation

HttpService DomainRecordHttpServiceArgs

Return record based on client localisation

KeepEmptyZone bool

When destroy a resource record, if a zone have only NS, delete the zone

Name string

The name of the record

Priority int

The priority of the record

ProjectId string

The project_id you want to attach the resource to

Ttl int

The ttl of the record

Views []DomainRecordViewArgs

Return record based on client subnet

Weighteds []DomainRecordWeightedArgs

Return record based on weight

data String

The data of the record

dnsZone String

The zone you want to add the record in

type String

The type of the record

geoIp DomainRecordGeoIpArgs

Return record based on client localisation

httpService DomainRecordHttpServiceArgs

Return record based on client localisation

keepEmptyZone Boolean

When destroy a resource record, if a zone have only NS, delete the zone

name String

The name of the record

priority Integer

The priority of the record

projectId String

The project_id you want to attach the resource to

ttl Integer

The ttl of the record

views List<DomainRecordViewArgs>

Return record based on client subnet

weighteds List<DomainRecordWeightedArgs>

Return record based on weight

data string

The data of the record

dnsZone string

The zone you want to add the record in

type string

The type of the record

geoIp DomainRecordGeoIpArgs

Return record based on client localisation

httpService DomainRecordHttpServiceArgs

Return record based on client localisation

keepEmptyZone boolean

When destroy a resource record, if a zone have only NS, delete the zone

name string

The name of the record

priority number

The priority of the record

projectId string

The project_id you want to attach the resource to

ttl number

The ttl of the record

views DomainRecordViewArgs[]

Return record based on client subnet

weighteds DomainRecordWeightedArgs[]

Return record based on weight

data str

The data of the record

dns_zone str

The zone you want to add the record in

type str

The type of the record

geo_ip DomainRecordGeoIpArgs

Return record based on client localisation

http_service DomainRecordHttpServiceArgs

Return record based on client localisation

keep_empty_zone bool

When destroy a resource record, if a zone have only NS, delete the zone

name str

The name of the record

priority int

The priority of the record

project_id str

The project_id you want to attach the resource to

ttl int

The ttl of the record

views Sequence[DomainRecordViewArgs]

Return record based on client subnet

weighteds Sequence[DomainRecordWeightedArgs]

Return record based on weight

data String

The data of the record

dnsZone String

The zone you want to add the record in

type String

The type of the record

geoIp Property Map

Return record based on client localisation

httpService Property Map

Return record based on client localisation

keepEmptyZone Boolean

When destroy a resource record, if a zone have only NS, delete the zone

name String

The name of the record

priority Number

The priority of the record

projectId String

The project_id you want to attach the resource to

ttl Number

The ttl of the record

views List<Property Map>

Return record based on client subnet

weighteds List<Property Map>

Return record based on weight

Outputs

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

Id string

The provider-assigned unique ID for this managed resource.

RootZone bool

Does the DNS zone is the root zone or not

Id string

The provider-assigned unique ID for this managed resource.

RootZone bool

Does the DNS zone is the root zone or not

id String

The provider-assigned unique ID for this managed resource.

rootZone Boolean

Does the DNS zone is the root zone or not

id string

The provider-assigned unique ID for this managed resource.

rootZone boolean

Does the DNS zone is the root zone or not

id str

The provider-assigned unique ID for this managed resource.

root_zone bool

Does the DNS zone is the root zone or not

id String

The provider-assigned unique ID for this managed resource.

rootZone Boolean

Does the DNS zone is the root zone or not

Look up an Existing DomainRecord Resource

Get an existing DomainRecord 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?: DomainRecordState, opts?: CustomResourceOptions): DomainRecord
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        data: Optional[str] = None,
        dns_zone: Optional[str] = None,
        geo_ip: Optional[DomainRecordGeoIpArgs] = None,
        http_service: Optional[DomainRecordHttpServiceArgs] = None,
        keep_empty_zone: Optional[bool] = None,
        name: Optional[str] = None,
        priority: Optional[int] = None,
        project_id: Optional[str] = None,
        root_zone: Optional[bool] = None,
        ttl: Optional[int] = None,
        type: Optional[str] = None,
        views: Optional[Sequence[DomainRecordViewArgs]] = None,
        weighteds: Optional[Sequence[DomainRecordWeightedArgs]] = None) -> DomainRecord
func GetDomainRecord(ctx *Context, name string, id IDInput, state *DomainRecordState, opts ...ResourceOption) (*DomainRecord, error)
public static DomainRecord Get(string name, Input<string> id, DomainRecordState? state, CustomResourceOptions? opts = null)
public static DomainRecord get(String name, Output<String> id, DomainRecordState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
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.
The following state arguments are supported:
Data string

The data of the record

DnsZone string

The zone you want to add the record in

GeoIp DomainRecordGeoIpArgs

Return record based on client localisation

HttpService DomainRecordHttpServiceArgs

Return record based on client localisation

KeepEmptyZone bool

When destroy a resource record, if a zone have only NS, delete the zone

Name string

The name of the record

Priority int

The priority of the record

ProjectId string

The project_id you want to attach the resource to

RootZone bool

Does the DNS zone is the root zone or not

Ttl int

The ttl of the record

Type string

The type of the record

Views List<DomainRecordViewArgs>

Return record based on client subnet

Weighteds List<DomainRecordWeightedArgs>

Return record based on weight

Data string

The data of the record

DnsZone string

The zone you want to add the record in

GeoIp DomainRecordGeoIpArgs

Return record based on client localisation

HttpService DomainRecordHttpServiceArgs

Return record based on client localisation

KeepEmptyZone bool

When destroy a resource record, if a zone have only NS, delete the zone

Name string

The name of the record

Priority int

The priority of the record

ProjectId string

The project_id you want to attach the resource to

RootZone bool

Does the DNS zone is the root zone or not

Ttl int

The ttl of the record

Type string

The type of the record

Views []DomainRecordViewArgs

Return record based on client subnet

Weighteds []DomainRecordWeightedArgs

Return record based on weight

data String

The data of the record

dnsZone String

The zone you want to add the record in

geoIp DomainRecordGeoIpArgs

Return record based on client localisation

httpService DomainRecordHttpServiceArgs

Return record based on client localisation

keepEmptyZone Boolean

When destroy a resource record, if a zone have only NS, delete the zone

name String

The name of the record

priority Integer

The priority of the record

projectId String

The project_id you want to attach the resource to

rootZone Boolean

Does the DNS zone is the root zone or not

ttl Integer

The ttl of the record

type String

The type of the record

views List<DomainRecordViewArgs>

Return record based on client subnet

weighteds List<DomainRecordWeightedArgs>

Return record based on weight

data string

The data of the record

dnsZone string

The zone you want to add the record in

geoIp DomainRecordGeoIpArgs

Return record based on client localisation

httpService DomainRecordHttpServiceArgs

Return record based on client localisation

keepEmptyZone boolean

When destroy a resource record, if a zone have only NS, delete the zone

name string

The name of the record

priority number

The priority of the record

projectId string

The project_id you want to attach the resource to

rootZone boolean

Does the DNS zone is the root zone or not

ttl number

The ttl of the record

type string

The type of the record

views DomainRecordViewArgs[]

Return record based on client subnet

weighteds DomainRecordWeightedArgs[]

Return record based on weight

data str

The data of the record

dns_zone str

The zone you want to add the record in

geo_ip DomainRecordGeoIpArgs

Return record based on client localisation

http_service DomainRecordHttpServiceArgs

Return record based on client localisation

keep_empty_zone bool

When destroy a resource record, if a zone have only NS, delete the zone

name str

The name of the record

priority int

The priority of the record

project_id str

The project_id you want to attach the resource to

root_zone bool

Does the DNS zone is the root zone or not

ttl int

The ttl of the record

type str

The type of the record

views Sequence[DomainRecordViewArgs]

Return record based on client subnet

weighteds Sequence[DomainRecordWeightedArgs]

Return record based on weight

data String

The data of the record

dnsZone String

The zone you want to add the record in

geoIp Property Map

Return record based on client localisation

httpService Property Map

Return record based on client localisation

keepEmptyZone Boolean

When destroy a resource record, if a zone have only NS, delete the zone

name String

The name of the record

priority Number

The priority of the record

projectId String

The project_id you want to attach the resource to

rootZone Boolean

Does the DNS zone is the root zone or not

ttl Number

The ttl of the record

type String

The type of the record

views List<Property Map>

Return record based on client subnet

weighteds List<Property Map>

Return record based on weight

Supporting Types

DomainRecordGeoIp

DomainRecordGeoIpMatch

Data string
Continents List<string>
Countries List<string>
Data string
Continents []string
Countries []string
data String
continents List<String>
countries List<String>
data string
continents string[]
countries string[]
data str
continents Sequence[str]
countries Sequence[str]
data String
continents List<String>
countries List<String>

DomainRecordHttpService

Ips List<string>
MustContain string
Strategy string
Url string
UserAgent string
Ips []string
MustContain string
Strategy string
Url string
UserAgent string
ips List<String>
mustContain String
strategy String
url String
userAgent String
ips string[]
mustContain string
strategy string
url string
userAgent string
ips Sequence[str]
must_contain str
strategy str
url str
user_agent str
ips List<String>
mustContain String
strategy String
url String
userAgent String

DomainRecordView

Data string
Subnet string
Data string
Subnet string
data String
subnet String
data string
subnet string
data str
subnet str
data String
subnet String

DomainRecordWeighted

Ip string
Weight int
Ip string
Weight int
ip String
weight Integer
ip string
weight number
ip str
weight int
ip String
weight Number

Package Details

Repository
https://github.com/jaxxstorm/pulumi-scaleway
License
Apache-2.0
Notes

This Pulumi package is based on the scaleway Terraform Provider.