Scaleway
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
- Dns
Zone string The zone you want to add the record in
- Type string
The type of the record
- Geo
Ip DomainRecord Geo Ip Args Return record based on client localisation
- Http
Service DomainRecord Http Service Args Return record based on client localisation
- Keep
Empty boolZone 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
- Project
Id string The project_id you want to attach the resource to
- Ttl int
The ttl of the record
- Views
List<Domain
Record View Args> Return record based on client subnet
- Weighteds
List<Domain
Record Weighted Args> Return record based on weight
- Data string
The data of the record
- Dns
Zone string The zone you want to add the record in
- Type string
The type of the record
- Geo
Ip DomainRecord Geo Ip Args Return record based on client localisation
- Http
Service DomainRecord Http Service Args Return record based on client localisation
- Keep
Empty boolZone 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
- Project
Id string The project_id you want to attach the resource to
- Ttl int
The ttl of the record
- Views
[]Domain
Record View Args Return record based on client subnet
- Weighteds
[]Domain
Record Weighted Args Return record based on weight
- data String
The data of the record
- dns
Zone String The zone you want to add the record in
- type String
The type of the record
- geo
Ip DomainRecord Geo Ip Args Return record based on client localisation
- http
Service DomainRecord Http Service Args Return record based on client localisation
- keep
Empty BooleanZone 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
- project
Id String The project_id you want to attach the resource to
- ttl Integer
The ttl of the record
- views
List<Domain
Record View Args> Return record based on client subnet
- weighteds
List<Domain
Record Weighted Args> Return record based on weight
- data string
The data of the record
- dns
Zone string The zone you want to add the record in
- type string
The type of the record
- geo
Ip DomainRecord Geo Ip Args Return record based on client localisation
- http
Service DomainRecord Http Service Args Return record based on client localisation
- keep
Empty booleanZone 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
- project
Id string The project_id you want to attach the resource to
- ttl number
The ttl of the record
- views
Domain
Record View Args[] Return record based on client subnet
- weighteds
Domain
Record Weighted Args[] 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 DomainRecord Geo Ip Args Return record based on client localisation
- http_
service DomainRecord Http Service Args Return record based on client localisation
- keep_
empty_ boolzone 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[Domain
Record View Args] Return record based on client subnet
- weighteds
Sequence[Domain
Record Weighted Args] Return record based on weight
- data String
The data of the record
- dns
Zone String The zone you want to add the record in
- type String
The type of the record
- geo
Ip Property Map Return record based on client localisation
- http
Service Property Map Return record based on client localisation
- keep
Empty BooleanZone 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
- project
Id 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:
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.
- Data string
The data of the record
- Dns
Zone string The zone you want to add the record in
- Geo
Ip DomainRecord Geo Ip Args Return record based on client localisation
- Http
Service DomainRecord Http Service Args Return record based on client localisation
- Keep
Empty boolZone 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
- Project
Id string 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 string
The type of the record
- Views
List<Domain
Record View Args> Return record based on client subnet
- Weighteds
List<Domain
Record Weighted Args> Return record based on weight
- Data string
The data of the record
- Dns
Zone string The zone you want to add the record in
- Geo
Ip DomainRecord Geo Ip Args Return record based on client localisation
- Http
Service DomainRecord Http Service Args Return record based on client localisation
- Keep
Empty boolZone 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
- Project
Id string 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 string
The type of the record
- Views
[]Domain
Record View Args Return record based on client subnet
- Weighteds
[]Domain
Record Weighted Args Return record based on weight
- data String
The data of the record
- dns
Zone String The zone you want to add the record in
- geo
Ip DomainRecord Geo Ip Args Return record based on client localisation
- http
Service DomainRecord Http Service Args Return record based on client localisation
- keep
Empty BooleanZone 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
- project
Id String The project_id you want to attach the resource to
- root
Zone 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<Domain
Record View Args> Return record based on client subnet
- weighteds
List<Domain
Record Weighted Args> Return record based on weight
- data string
The data of the record
- dns
Zone string The zone you want to add the record in
- geo
Ip DomainRecord Geo Ip Args Return record based on client localisation
- http
Service DomainRecord Http Service Args Return record based on client localisation
- keep
Empty booleanZone 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
- project
Id string The project_id you want to attach the resource to
- root
Zone 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
Domain
Record View Args[] Return record based on client subnet
- weighteds
Domain
Record Weighted Args[] 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 DomainRecord Geo Ip Args Return record based on client localisation
- http_
service DomainRecord Http Service Args Return record based on client localisation
- keep_
empty_ boolzone 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[Domain
Record View Args] Return record based on client subnet
- weighteds
Sequence[Domain
Record Weighted Args] Return record based on weight
- data String
The data of the record
- dns
Zone String The zone you want to add the record in
- geo
Ip Property Map Return record based on client localisation
- http
Service Property Map Return record based on client localisation
- keep
Empty BooleanZone 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
- project
Id String The project_id you want to attach the resource to
- root
Zone 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>
- Must
Contain string - Strategy string
- Url string
- User
Agent string
- Ips []string
- Must
Contain string - Strategy string
- Url string
- User
Agent string
- ips List<String>
- must
Contain String - strategy String
- url String
- user
Agent String
- ips string[]
- must
Contain string - strategy string
- url string
- user
Agent string
- ips Sequence[str]
- must_
contain str - strategy str
- url str
- user_
agent str
- ips List<String>
- must
Contain String - strategy String
- url String
- user
Agent String
DomainRecordView
DomainRecordWeighted
Package Details
- Repository
- https://github.com/jaxxstorm/pulumi-scaleway
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
scaleway
Terraform Provider.