flexibleengine.DnsZoneV2
Explore with Pulumi AI
Manages a DNS zone in the FlexibleEngine DNS Service.
Example Usage
Create a public DNS zone
import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";
const myPublicZone = new flexibleengine.DnsZoneV2("myPublicZone", {
description: "my public zone",
email: "jdoe@example.com",
ttl: 3000,
});
import pulumi
import pulumi_flexibleengine as flexibleengine
my_public_zone = flexibleengine.DnsZoneV2("myPublicZone",
description="my public zone",
email="jdoe@example.com",
ttl=3000)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := flexibleengine.NewDnsZoneV2(ctx, "myPublicZone", &flexibleengine.DnsZoneV2Args{
Description: pulumi.String("my public zone"),
Email: pulumi.String("jdoe@example.com"),
Ttl: pulumi.Float64(3000),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Flexibleengine = Pulumi.Flexibleengine;
return await Deployment.RunAsync(() =>
{
var myPublicZone = new Flexibleengine.DnsZoneV2("myPublicZone", new()
{
Description = "my public zone",
Email = "jdoe@example.com",
Ttl = 3000,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.DnsZoneV2;
import com.pulumi.flexibleengine.DnsZoneV2Args;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var myPublicZone = new DnsZoneV2("myPublicZone", DnsZoneV2Args.builder()
.description("my public zone")
.email("jdoe@example.com")
.ttl(3000)
.build());
}
}
resources:
myPublicZone:
type: flexibleengine:DnsZoneV2
properties:
description: my public zone
email: jdoe@example.com
ttl: 3000
Create a private DNS zone
import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";
const myPrivateZone = new flexibleengine.DnsZoneV2("myPrivateZone", {
description: "my private zone",
email: "jdoe@example.com",
routers: [{
routerId: "2c1fe4bd-ebad-44ca-ae9d-e94e63847b75",
routerRegion: "eu-west-0",
}],
ttl: 3000,
zoneType: "private",
});
import pulumi
import pulumi_flexibleengine as flexibleengine
my_private_zone = flexibleengine.DnsZoneV2("myPrivateZone",
description="my private zone",
email="jdoe@example.com",
routers=[{
"router_id": "2c1fe4bd-ebad-44ca-ae9d-e94e63847b75",
"router_region": "eu-west-0",
}],
ttl=3000,
zone_type="private")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := flexibleengine.NewDnsZoneV2(ctx, "myPrivateZone", &flexibleengine.DnsZoneV2Args{
Description: pulumi.String("my private zone"),
Email: pulumi.String("jdoe@example.com"),
Routers: flexibleengine.DnsZoneV2RouterArray{
&flexibleengine.DnsZoneV2RouterArgs{
RouterId: pulumi.String("2c1fe4bd-ebad-44ca-ae9d-e94e63847b75"),
RouterRegion: pulumi.String("eu-west-0"),
},
},
Ttl: pulumi.Float64(3000),
ZoneType: pulumi.String("private"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Flexibleengine = Pulumi.Flexibleengine;
return await Deployment.RunAsync(() =>
{
var myPrivateZone = new Flexibleengine.DnsZoneV2("myPrivateZone", new()
{
Description = "my private zone",
Email = "jdoe@example.com",
Routers = new[]
{
new Flexibleengine.Inputs.DnsZoneV2RouterArgs
{
RouterId = "2c1fe4bd-ebad-44ca-ae9d-e94e63847b75",
RouterRegion = "eu-west-0",
},
},
Ttl = 3000,
ZoneType = "private",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.DnsZoneV2;
import com.pulumi.flexibleengine.DnsZoneV2Args;
import com.pulumi.flexibleengine.inputs.DnsZoneV2RouterArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var myPrivateZone = new DnsZoneV2("myPrivateZone", DnsZoneV2Args.builder()
.description("my private zone")
.email("jdoe@example.com")
.routers(DnsZoneV2RouterArgs.builder()
.routerId("2c1fe4bd-ebad-44ca-ae9d-e94e63847b75")
.routerRegion("eu-west-0")
.build())
.ttl(3000)
.zoneType("private")
.build());
}
}
resources:
myPrivateZone:
type: flexibleengine:DnsZoneV2
properties:
description: my private zone
email: jdoe@example.com
routers:
- routerId: 2c1fe4bd-ebad-44ca-ae9d-e94e63847b75
routerRegion: eu-west-0
ttl: 3000
zoneType: private
Create DnsZoneV2 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DnsZoneV2(name: string, args?: DnsZoneV2Args, opts?: CustomResourceOptions);
@overload
def DnsZoneV2(resource_name: str,
args: Optional[DnsZoneV2Args] = None,
opts: Optional[ResourceOptions] = None)
@overload
def DnsZoneV2(resource_name: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
dns_zone_v2_id: Optional[str] = None,
email: Optional[str] = None,
name: Optional[str] = None,
region: Optional[str] = None,
routers: Optional[Sequence[DnsZoneV2RouterArgs]] = None,
tags: Optional[Mapping[str, str]] = None,
timeouts: Optional[DnsZoneV2TimeoutsArgs] = None,
ttl: Optional[float] = None,
value_specs: Optional[Mapping[str, str]] = None,
zone_type: Optional[str] = None)
func NewDnsZoneV2(ctx *Context, name string, args *DnsZoneV2Args, opts ...ResourceOption) (*DnsZoneV2, error)
public DnsZoneV2(string name, DnsZoneV2Args? args = null, CustomResourceOptions? opts = null)
public DnsZoneV2(String name, DnsZoneV2Args args)
public DnsZoneV2(String name, DnsZoneV2Args args, CustomResourceOptions options)
type: flexibleengine:DnsZoneV2
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 DnsZoneV2Args
- 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 DnsZoneV2Args
- 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 DnsZoneV2Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DnsZoneV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DnsZoneV2Args
- 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 dnsZoneV2Resource = new Flexibleengine.DnsZoneV2("dnsZoneV2Resource", new()
{
Description = "string",
DnsZoneV2Id = "string",
Email = "string",
Name = "string",
Region = "string",
Routers = new[]
{
new Flexibleengine.Inputs.DnsZoneV2RouterArgs
{
RouterId = "string",
RouterRegion = "string",
},
},
Tags =
{
{ "string", "string" },
},
Timeouts = new Flexibleengine.Inputs.DnsZoneV2TimeoutsArgs
{
Create = "string",
Delete = "string",
Update = "string",
},
Ttl = 0,
ValueSpecs =
{
{ "string", "string" },
},
ZoneType = "string",
});
example, err := flexibleengine.NewDnsZoneV2(ctx, "dnsZoneV2Resource", &flexibleengine.DnsZoneV2Args{
Description: pulumi.String("string"),
DnsZoneV2Id: pulumi.String("string"),
Email: pulumi.String("string"),
Name: pulumi.String("string"),
Region: pulumi.String("string"),
Routers: flexibleengine.DnsZoneV2RouterArray{
&flexibleengine.DnsZoneV2RouterArgs{
RouterId: pulumi.String("string"),
RouterRegion: pulumi.String("string"),
},
},
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
Timeouts: &flexibleengine.DnsZoneV2TimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
Ttl: pulumi.Float64(0),
ValueSpecs: pulumi.StringMap{
"string": pulumi.String("string"),
},
ZoneType: pulumi.String("string"),
})
var dnsZoneV2Resource = new DnsZoneV2("dnsZoneV2Resource", DnsZoneV2Args.builder()
.description("string")
.dnsZoneV2Id("string")
.email("string")
.name("string")
.region("string")
.routers(DnsZoneV2RouterArgs.builder()
.routerId("string")
.routerRegion("string")
.build())
.tags(Map.of("string", "string"))
.timeouts(DnsZoneV2TimeoutsArgs.builder()
.create("string")
.delete("string")
.update("string")
.build())
.ttl(0)
.valueSpecs(Map.of("string", "string"))
.zoneType("string")
.build());
dns_zone_v2_resource = flexibleengine.DnsZoneV2("dnsZoneV2Resource",
description="string",
dns_zone_v2_id="string",
email="string",
name="string",
region="string",
routers=[{
"router_id": "string",
"router_region": "string",
}],
tags={
"string": "string",
},
timeouts={
"create": "string",
"delete": "string",
"update": "string",
},
ttl=0,
value_specs={
"string": "string",
},
zone_type="string")
const dnsZoneV2Resource = new flexibleengine.DnsZoneV2("dnsZoneV2Resource", {
description: "string",
dnsZoneV2Id: "string",
email: "string",
name: "string",
region: "string",
routers: [{
routerId: "string",
routerRegion: "string",
}],
tags: {
string: "string",
},
timeouts: {
create: "string",
"delete": "string",
update: "string",
},
ttl: 0,
valueSpecs: {
string: "string",
},
zoneType: "string",
});
type: flexibleengine:DnsZoneV2
properties:
description: string
dnsZoneV2Id: string
email: string
name: string
region: string
routers:
- routerId: string
routerRegion: string
tags:
string: string
timeouts:
create: string
delete: string
update: string
ttl: 0
valueSpecs:
string: string
zoneType: string
DnsZoneV2 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 DnsZoneV2 resource accepts the following input properties:
- Description string
- A description of the zone. Max length is
255
characters. - Dns
Zone stringV2Id - Specifies a resource ID in UUID format.
- Email string
- The email contact for the zone record.
- Name string
- The name of the zone. Note the
.
at the end of the name. Changing this creates a new DNS zone. - Region string
- The region in which to create the DNS zone.
If omitted, the
region
argument of the provider is used. Changing this creates a new DNS zone. - Routers
List<Dns
Zone V2Router> - Router configuration block which is required if zone_type is private. The router structure is documented below.
- Dictionary<string, string>
- The key/value pairs to associate with the zone.
- Timeouts
Dns
Zone V2Timeouts - Ttl double
- The time to live (TTL) of the zone. TTL ranges from 1 to 2147483647 seconds.
Default is
300
. - Value
Specs Dictionary<string, string> - Map of additional options. Changing this creates a new DNS zone.
- Zone
Type string - The type of zone. Can either be
public
orprivate
. Default ispublic
. Changing this creates a new DNS zone.
- Description string
- A description of the zone. Max length is
255
characters. - Dns
Zone stringV2Id - Specifies a resource ID in UUID format.
- Email string
- The email contact for the zone record.
- Name string
- The name of the zone. Note the
.
at the end of the name. Changing this creates a new DNS zone. - Region string
- The region in which to create the DNS zone.
If omitted, the
region
argument of the provider is used. Changing this creates a new DNS zone. - Routers
[]Dns
Zone V2Router Args - Router configuration block which is required if zone_type is private. The router structure is documented below.
- map[string]string
- The key/value pairs to associate with the zone.
- Timeouts
Dns
Zone V2Timeouts Args - Ttl float64
- The time to live (TTL) of the zone. TTL ranges from 1 to 2147483647 seconds.
Default is
300
. - Value
Specs map[string]string - Map of additional options. Changing this creates a new DNS zone.
- Zone
Type string - The type of zone. Can either be
public
orprivate
. Default ispublic
. Changing this creates a new DNS zone.
- description String
- A description of the zone. Max length is
255
characters. - dns
Zone StringV2Id - Specifies a resource ID in UUID format.
- email String
- The email contact for the zone record.
- name String
- The name of the zone. Note the
.
at the end of the name. Changing this creates a new DNS zone. - region String
- The region in which to create the DNS zone.
If omitted, the
region
argument of the provider is used. Changing this creates a new DNS zone. - routers
List<Dns
Zone V2Router> - Router configuration block which is required if zone_type is private. The router structure is documented below.
- Map<String,String>
- The key/value pairs to associate with the zone.
- timeouts
Dns
Zone V2Timeouts - ttl Double
- The time to live (TTL) of the zone. TTL ranges from 1 to 2147483647 seconds.
Default is
300
. - value
Specs Map<String,String> - Map of additional options. Changing this creates a new DNS zone.
- zone
Type String - The type of zone. Can either be
public
orprivate
. Default ispublic
. Changing this creates a new DNS zone.
- description string
- A description of the zone. Max length is
255
characters. - dns
Zone stringV2Id - Specifies a resource ID in UUID format.
- email string
- The email contact for the zone record.
- name string
- The name of the zone. Note the
.
at the end of the name. Changing this creates a new DNS zone. - region string
- The region in which to create the DNS zone.
If omitted, the
region
argument of the provider is used. Changing this creates a new DNS zone. - routers
Dns
Zone V2Router[] - Router configuration block which is required if zone_type is private. The router structure is documented below.
- {[key: string]: string}
- The key/value pairs to associate with the zone.
- timeouts
Dns
Zone V2Timeouts - ttl number
- The time to live (TTL) of the zone. TTL ranges from 1 to 2147483647 seconds.
Default is
300
. - value
Specs {[key: string]: string} - Map of additional options. Changing this creates a new DNS zone.
- zone
Type string - The type of zone. Can either be
public
orprivate
. Default ispublic
. Changing this creates a new DNS zone.
- description str
- A description of the zone. Max length is
255
characters. - dns_
zone_ strv2_ id - Specifies a resource ID in UUID format.
- email str
- The email contact for the zone record.
- name str
- The name of the zone. Note the
.
at the end of the name. Changing this creates a new DNS zone. - region str
- The region in which to create the DNS zone.
If omitted, the
region
argument of the provider is used. Changing this creates a new DNS zone. - routers
Sequence[Dns
Zone V2Router Args] - Router configuration block which is required if zone_type is private. The router structure is documented below.
- Mapping[str, str]
- The key/value pairs to associate with the zone.
- timeouts
Dns
Zone V2Timeouts Args - ttl float
- The time to live (TTL) of the zone. TTL ranges from 1 to 2147483647 seconds.
Default is
300
. - value_
specs Mapping[str, str] - Map of additional options. Changing this creates a new DNS zone.
- zone_
type str - The type of zone. Can either be
public
orprivate
. Default ispublic
. Changing this creates a new DNS zone.
- description String
- A description of the zone. Max length is
255
characters. - dns
Zone StringV2Id - Specifies a resource ID in UUID format.
- email String
- The email contact for the zone record.
- name String
- The name of the zone. Note the
.
at the end of the name. Changing this creates a new DNS zone. - region String
- The region in which to create the DNS zone.
If omitted, the
region
argument of the provider is used. Changing this creates a new DNS zone. - routers List<Property Map>
- Router configuration block which is required if zone_type is private. The router structure is documented below.
- Map<String>
- The key/value pairs to associate with the zone.
- timeouts Property Map
- ttl Number
- The time to live (TTL) of the zone. TTL ranges from 1 to 2147483647 seconds.
Default is
300
. - value
Specs Map<String> - Map of additional options. Changing this creates a new DNS zone.
- zone
Type String - The type of zone. Can either be
public
orprivate
. Default ispublic
. Changing this creates a new DNS zone.
Outputs
All input properties are implicitly available as output properties. Additionally, the DnsZoneV2 resource produces the following output properties:
Look up Existing DnsZoneV2 Resource
Get an existing DnsZoneV2 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?: DnsZoneV2State, opts?: CustomResourceOptions): DnsZoneV2
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
dns_zone_v2_id: Optional[str] = None,
email: Optional[str] = None,
masters: Optional[Sequence[str]] = None,
name: Optional[str] = None,
region: Optional[str] = None,
routers: Optional[Sequence[DnsZoneV2RouterArgs]] = None,
tags: Optional[Mapping[str, str]] = None,
timeouts: Optional[DnsZoneV2TimeoutsArgs] = None,
ttl: Optional[float] = None,
value_specs: Optional[Mapping[str, str]] = None,
zone_type: Optional[str] = None) -> DnsZoneV2
func GetDnsZoneV2(ctx *Context, name string, id IDInput, state *DnsZoneV2State, opts ...ResourceOption) (*DnsZoneV2, error)
public static DnsZoneV2 Get(string name, Input<string> id, DnsZoneV2State? state, CustomResourceOptions? opts = null)
public static DnsZoneV2 get(String name, Output<String> id, DnsZoneV2State state, CustomResourceOptions options)
resources: _: type: flexibleengine:DnsZoneV2 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.
- Description string
- A description of the zone. Max length is
255
characters. - Dns
Zone stringV2Id - Specifies a resource ID in UUID format.
- Email string
- The email contact for the zone record.
- Masters List<string>
- An array of master DNS servers.
- Name string
- The name of the zone. Note the
.
at the end of the name. Changing this creates a new DNS zone. - Region string
- The region in which to create the DNS zone.
If omitted, the
region
argument of the provider is used. Changing this creates a new DNS zone. - Routers
List<Dns
Zone V2Router> - Router configuration block which is required if zone_type is private. The router structure is documented below.
- Dictionary<string, string>
- The key/value pairs to associate with the zone.
- Timeouts
Dns
Zone V2Timeouts - Ttl double
- The time to live (TTL) of the zone. TTL ranges from 1 to 2147483647 seconds.
Default is
300
. - Value
Specs Dictionary<string, string> - Map of additional options. Changing this creates a new DNS zone.
- Zone
Type string - The type of zone. Can either be
public
orprivate
. Default ispublic
. Changing this creates a new DNS zone.
- Description string
- A description of the zone. Max length is
255
characters. - Dns
Zone stringV2Id - Specifies a resource ID in UUID format.
- Email string
- The email contact for the zone record.
- Masters []string
- An array of master DNS servers.
- Name string
- The name of the zone. Note the
.
at the end of the name. Changing this creates a new DNS zone. - Region string
- The region in which to create the DNS zone.
If omitted, the
region
argument of the provider is used. Changing this creates a new DNS zone. - Routers
[]Dns
Zone V2Router Args - Router configuration block which is required if zone_type is private. The router structure is documented below.
- map[string]string
- The key/value pairs to associate with the zone.
- Timeouts
Dns
Zone V2Timeouts Args - Ttl float64
- The time to live (TTL) of the zone. TTL ranges from 1 to 2147483647 seconds.
Default is
300
. - Value
Specs map[string]string - Map of additional options. Changing this creates a new DNS zone.
- Zone
Type string - The type of zone. Can either be
public
orprivate
. Default ispublic
. Changing this creates a new DNS zone.
- description String
- A description of the zone. Max length is
255
characters. - dns
Zone StringV2Id - Specifies a resource ID in UUID format.
- email String
- The email contact for the zone record.
- masters List<String>
- An array of master DNS servers.
- name String
- The name of the zone. Note the
.
at the end of the name. Changing this creates a new DNS zone. - region String
- The region in which to create the DNS zone.
If omitted, the
region
argument of the provider is used. Changing this creates a new DNS zone. - routers
List<Dns
Zone V2Router> - Router configuration block which is required if zone_type is private. The router structure is documented below.
- Map<String,String>
- The key/value pairs to associate with the zone.
- timeouts
Dns
Zone V2Timeouts - ttl Double
- The time to live (TTL) of the zone. TTL ranges from 1 to 2147483647 seconds.
Default is
300
. - value
Specs Map<String,String> - Map of additional options. Changing this creates a new DNS zone.
- zone
Type String - The type of zone. Can either be
public
orprivate
. Default ispublic
. Changing this creates a new DNS zone.
- description string
- A description of the zone. Max length is
255
characters. - dns
Zone stringV2Id - Specifies a resource ID in UUID format.
- email string
- The email contact for the zone record.
- masters string[]
- An array of master DNS servers.
- name string
- The name of the zone. Note the
.
at the end of the name. Changing this creates a new DNS zone. - region string
- The region in which to create the DNS zone.
If omitted, the
region
argument of the provider is used. Changing this creates a new DNS zone. - routers
Dns
Zone V2Router[] - Router configuration block which is required if zone_type is private. The router structure is documented below.
- {[key: string]: string}
- The key/value pairs to associate with the zone.
- timeouts
Dns
Zone V2Timeouts - ttl number
- The time to live (TTL) of the zone. TTL ranges from 1 to 2147483647 seconds.
Default is
300
. - value
Specs {[key: string]: string} - Map of additional options. Changing this creates a new DNS zone.
- zone
Type string - The type of zone. Can either be
public
orprivate
. Default ispublic
. Changing this creates a new DNS zone.
- description str
- A description of the zone. Max length is
255
characters. - dns_
zone_ strv2_ id - Specifies a resource ID in UUID format.
- email str
- The email contact for the zone record.
- masters Sequence[str]
- An array of master DNS servers.
- name str
- The name of the zone. Note the
.
at the end of the name. Changing this creates a new DNS zone. - region str
- The region in which to create the DNS zone.
If omitted, the
region
argument of the provider is used. Changing this creates a new DNS zone. - routers
Sequence[Dns
Zone V2Router Args] - Router configuration block which is required if zone_type is private. The router structure is documented below.
- Mapping[str, str]
- The key/value pairs to associate with the zone.
- timeouts
Dns
Zone V2Timeouts Args - ttl float
- The time to live (TTL) of the zone. TTL ranges from 1 to 2147483647 seconds.
Default is
300
. - value_
specs Mapping[str, str] - Map of additional options. Changing this creates a new DNS zone.
- zone_
type str - The type of zone. Can either be
public
orprivate
. Default ispublic
. Changing this creates a new DNS zone.
- description String
- A description of the zone. Max length is
255
characters. - dns
Zone StringV2Id - Specifies a resource ID in UUID format.
- email String
- The email contact for the zone record.
- masters List<String>
- An array of master DNS servers.
- name String
- The name of the zone. Note the
.
at the end of the name. Changing this creates a new DNS zone. - region String
- The region in which to create the DNS zone.
If omitted, the
region
argument of the provider is used. Changing this creates a new DNS zone. - routers List<Property Map>
- Router configuration block which is required if zone_type is private. The router structure is documented below.
- Map<String>
- The key/value pairs to associate with the zone.
- timeouts Property Map
- ttl Number
- The time to live (TTL) of the zone. TTL ranges from 1 to 2147483647 seconds.
Default is
300
. - value
Specs Map<String> - Map of additional options. Changing this creates a new DNS zone.
- zone
Type String - The type of zone. Can either be
public
orprivate
. Default ispublic
. Changing this creates a new DNS zone.
Supporting Types
DnsZoneV2Router, DnsZoneV2RouterArgs
- Router
Id string - The VPC UUID.
- Router
Region string - The region of the VPC. Defaults to the
region
.
- Router
Id string - The VPC UUID.
- Router
Region string - The region of the VPC. Defaults to the
region
.
- router
Id String - The VPC UUID.
- router
Region String - The region of the VPC. Defaults to the
region
.
- router
Id string - The VPC UUID.
- router
Region string - The region of the VPC. Defaults to the
region
.
- router_
id str - The VPC UUID.
- router_
region str - The region of the VPC. Defaults to the
region
.
- router
Id String - The VPC UUID.
- router
Region String - The region of the VPC. Defaults to the
region
.
DnsZoneV2Timeouts, DnsZoneV2TimeoutsArgs
Import
This resource can be imported by specifying the zone ID:
$ pulumi import flexibleengine:index/dnsZoneV2:DnsZoneV2 zone_1 <zone_id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
- License
- Notes
- This Pulumi package is based on the
flexibleengine
Terraform Provider.