vkcs.PublicdnsZone
Explore with Pulumi AI
Manages a public DNS record resource within VKCS.
New since v0.2.0.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as vkcs from "@pulumi/vkcs";
const zone = new vkcs.PublicdnsZone("zone", {
zone: local.zone_name,
primaryDns: "ns1.mcs.mail.ru",
adminEmail: "admin@example.com",
expire: 3600000,
});
import pulumi
import pulumi_vkcs as vkcs
zone = vkcs.PublicdnsZone("zone",
zone=local["zone_name"],
primary_dns="ns1.mcs.mail.ru",
admin_email="admin@example.com",
expire=3600000)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/vkcs/vkcs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vkcs.NewPublicdnsZone(ctx, "zone", &vkcs.PublicdnsZoneArgs{
Zone: pulumi.Any(local.Zone_name),
PrimaryDns: pulumi.String("ns1.mcs.mail.ru"),
AdminEmail: pulumi.String("admin@example.com"),
Expire: pulumi.Float64(3600000),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vkcs = Pulumi.Vkcs;
return await Deployment.RunAsync(() =>
{
var zone = new Vkcs.PublicdnsZone("zone", new()
{
Zone = local.Zone_name,
PrimaryDns = "ns1.mcs.mail.ru",
AdminEmail = "admin@example.com",
Expire = 3600000,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vkcs.PublicdnsZone;
import com.pulumi.vkcs.PublicdnsZoneArgs;
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 zone = new PublicdnsZone("zone", PublicdnsZoneArgs.builder()
.zone(local.zone_name())
.primaryDns("ns1.mcs.mail.ru")
.adminEmail("admin@example.com")
.expire(3600000)
.build());
}
}
resources:
zone:
type: vkcs:PublicdnsZone
properties:
zone: ${local.zone_name}
primaryDns: ns1.mcs.mail.ru
adminEmail: admin@example.com
expire: 3.6e+06
Create PublicdnsZone Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PublicdnsZone(name: string, args: PublicdnsZoneArgs, opts?: CustomResourceOptions);
@overload
def PublicdnsZone(resource_name: str,
args: PublicdnsZoneArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PublicdnsZone(resource_name: str,
opts: Optional[ResourceOptions] = None,
zone: Optional[str] = None,
admin_email: Optional[str] = None,
expire: Optional[float] = None,
primary_dns: Optional[str] = None,
publicdns_zone_id: Optional[str] = None,
refresh: Optional[float] = None,
region: Optional[str] = None,
retry: Optional[float] = None,
timeouts: Optional[PublicdnsZoneTimeoutsArgs] = None,
ttl: Optional[float] = None)
func NewPublicdnsZone(ctx *Context, name string, args PublicdnsZoneArgs, opts ...ResourceOption) (*PublicdnsZone, error)
public PublicdnsZone(string name, PublicdnsZoneArgs args, CustomResourceOptions? opts = null)
public PublicdnsZone(String name, PublicdnsZoneArgs args)
public PublicdnsZone(String name, PublicdnsZoneArgs args, CustomResourceOptions options)
type: vkcs:PublicdnsZone
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 PublicdnsZoneArgs
- 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 PublicdnsZoneArgs
- 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 PublicdnsZoneArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PublicdnsZoneArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PublicdnsZoneArgs
- 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 publicdnsZoneResource = new Vkcs.PublicdnsZone("publicdnsZoneResource", new()
{
Zone = "string",
AdminEmail = "string",
Expire = 0,
PrimaryDns = "string",
PublicdnsZoneId = "string",
Refresh = 0,
Region = "string",
Retry = 0,
Timeouts = new Vkcs.Inputs.PublicdnsZoneTimeoutsArgs
{
Create = "string",
Delete = "string",
},
Ttl = 0,
});
example, err := vkcs.NewPublicdnsZone(ctx, "publicdnsZoneResource", &vkcs.PublicdnsZoneArgs{
Zone: pulumi.String("string"),
AdminEmail: pulumi.String("string"),
Expire: pulumi.Float64(0),
PrimaryDns: pulumi.String("string"),
PublicdnsZoneId: pulumi.String("string"),
Refresh: pulumi.Float64(0),
Region: pulumi.String("string"),
Retry: pulumi.Float64(0),
Timeouts: &.PublicdnsZoneTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
},
Ttl: pulumi.Float64(0),
})
var publicdnsZoneResource = new PublicdnsZone("publicdnsZoneResource", PublicdnsZoneArgs.builder()
.zone("string")
.adminEmail("string")
.expire(0)
.primaryDns("string")
.publicdnsZoneId("string")
.refresh(0)
.region("string")
.retry(0)
.timeouts(PublicdnsZoneTimeoutsArgs.builder()
.create("string")
.delete("string")
.build())
.ttl(0)
.build());
publicdns_zone_resource = vkcs.PublicdnsZone("publicdnsZoneResource",
zone="string",
admin_email="string",
expire=0,
primary_dns="string",
publicdns_zone_id="string",
refresh=0,
region="string",
retry=0,
timeouts={
"create": "string",
"delete": "string",
},
ttl=0)
const publicdnsZoneResource = new vkcs.PublicdnsZone("publicdnsZoneResource", {
zone: "string",
adminEmail: "string",
expire: 0,
primaryDns: "string",
publicdnsZoneId: "string",
refresh: 0,
region: "string",
retry: 0,
timeouts: {
create: "string",
"delete": "string",
},
ttl: 0,
});
type: vkcs:PublicdnsZone
properties:
adminEmail: string
expire: 0
primaryDns: string
publicdnsZoneId: string
refresh: 0
region: string
retry: 0
timeouts:
create: string
delete: string
ttl: 0
zone: string
PublicdnsZone 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 PublicdnsZone resource accepts the following input properties:
- Zone string
- required string → The name of the zone. Changes this creates a new zone.
- Admin
Email string - optional string → The admin email of the zone SOA.
- Expire double
- optional number → The expire time of the zone SOA.
- Primary
Dns string - optional string → The primary DNS of the zone SOA.
- Publicdns
Zone stringId - string → ID of the resource.
- Refresh double
- optional number → The refresh time of the zone SOA.
- Region string
- optional string → The region in which to obtain the V2 Public DNS client. If omitted, the
region
argument of the provider is used. Changing this creates a new zone. - Retry double
- optional number → The retry time of the zone SOA.
- Timeouts
Publicdns
Zone Timeouts - Ttl double
- optional number → The TTL (time to live) of the zone SOA.
- Zone string
- required string → The name of the zone. Changes this creates a new zone.
- Admin
Email string - optional string → The admin email of the zone SOA.
- Expire float64
- optional number → The expire time of the zone SOA.
- Primary
Dns string - optional string → The primary DNS of the zone SOA.
- Publicdns
Zone stringId - string → ID of the resource.
- Refresh float64
- optional number → The refresh time of the zone SOA.
- Region string
- optional string → The region in which to obtain the V2 Public DNS client. If omitted, the
region
argument of the provider is used. Changing this creates a new zone. - Retry float64
- optional number → The retry time of the zone SOA.
- Timeouts
Publicdns
Zone Timeouts Args - Ttl float64
- optional number → The TTL (time to live) of the zone SOA.
- zone String
- required string → The name of the zone. Changes this creates a new zone.
- admin
Email String - optional string → The admin email of the zone SOA.
- expire Double
- optional number → The expire time of the zone SOA.
- primary
Dns String - optional string → The primary DNS of the zone SOA.
- publicdns
Zone StringId - string → ID of the resource.
- refresh Double
- optional number → The refresh time of the zone SOA.
- region String
- optional string → The region in which to obtain the V2 Public DNS client. If omitted, the
region
argument of the provider is used. Changing this creates a new zone. - retry Double
- optional number → The retry time of the zone SOA.
- timeouts
Publicdns
Zone Timeouts - ttl Double
- optional number → The TTL (time to live) of the zone SOA.
- zone string
- required string → The name of the zone. Changes this creates a new zone.
- admin
Email string - optional string → The admin email of the zone SOA.
- expire number
- optional number → The expire time of the zone SOA.
- primary
Dns string - optional string → The primary DNS of the zone SOA.
- publicdns
Zone stringId - string → ID of the resource.
- refresh number
- optional number → The refresh time of the zone SOA.
- region string
- optional string → The region in which to obtain the V2 Public DNS client. If omitted, the
region
argument of the provider is used. Changing this creates a new zone. - retry number
- optional number → The retry time of the zone SOA.
- timeouts
Publicdns
Zone Timeouts - ttl number
- optional number → The TTL (time to live) of the zone SOA.
- zone str
- required string → The name of the zone. Changes this creates a new zone.
- admin_
email str - optional string → The admin email of the zone SOA.
- expire float
- optional number → The expire time of the zone SOA.
- primary_
dns str - optional string → The primary DNS of the zone SOA.
- publicdns_
zone_ strid - string → ID of the resource.
- refresh float
- optional number → The refresh time of the zone SOA.
- region str
- optional string → The region in which to obtain the V2 Public DNS client. If omitted, the
region
argument of the provider is used. Changing this creates a new zone. - retry float
- optional number → The retry time of the zone SOA.
- timeouts
Publicdns
Zone Timeouts Args - ttl float
- optional number → The TTL (time to live) of the zone SOA.
- zone String
- required string → The name of the zone. Changes this creates a new zone.
- admin
Email String - optional string → The admin email of the zone SOA.
- expire Number
- optional number → The expire time of the zone SOA.
- primary
Dns String - optional string → The primary DNS of the zone SOA.
- publicdns
Zone StringId - string → ID of the resource.
- refresh Number
- optional number → The refresh time of the zone SOA.
- region String
- optional string → The region in which to obtain the V2 Public DNS client. If omitted, the
region
argument of the provider is used. Changing this creates a new zone. - retry Number
- optional number → The retry time of the zone SOA.
- timeouts Property Map
- ttl Number
- optional number → The TTL (time to live) of the zone SOA.
Outputs
All input properties are implicitly available as output properties. Additionally, the PublicdnsZone resource produces the following output properties:
Look up Existing PublicdnsZone Resource
Get an existing PublicdnsZone 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?: PublicdnsZoneState, opts?: CustomResourceOptions): PublicdnsZone
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
admin_email: Optional[str] = None,
expire: Optional[float] = None,
primary_dns: Optional[str] = None,
publicdns_zone_id: Optional[str] = None,
refresh: Optional[float] = None,
region: Optional[str] = None,
retry: Optional[float] = None,
serial: Optional[float] = None,
status: Optional[str] = None,
timeouts: Optional[PublicdnsZoneTimeoutsArgs] = None,
ttl: Optional[float] = None,
zone: Optional[str] = None) -> PublicdnsZone
func GetPublicdnsZone(ctx *Context, name string, id IDInput, state *PublicdnsZoneState, opts ...ResourceOption) (*PublicdnsZone, error)
public static PublicdnsZone Get(string name, Input<string> id, PublicdnsZoneState? state, CustomResourceOptions? opts = null)
public static PublicdnsZone get(String name, Output<String> id, PublicdnsZoneState state, CustomResourceOptions options)
resources: _: type: vkcs:PublicdnsZone 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.
- Admin
Email string - optional string → The admin email of the zone SOA.
- Expire double
- optional number → The expire time of the zone SOA.
- Primary
Dns string - optional string → The primary DNS of the zone SOA.
- Publicdns
Zone stringId - string → ID of the resource.
- Refresh double
- optional number → The refresh time of the zone SOA.
- Region string
- optional string → The region in which to obtain the V2 Public DNS client. If omitted, the
region
argument of the provider is used. Changing this creates a new zone. - Retry double
- optional number → The retry time of the zone SOA.
- Serial double
- number → The serial number of the zone SOA.
- Status string
- string → The status of the zone.
- Timeouts
Publicdns
Zone Timeouts - Ttl double
- optional number → The TTL (time to live) of the zone SOA.
- Zone string
- required string → The name of the zone. Changes this creates a new zone.
- Admin
Email string - optional string → The admin email of the zone SOA.
- Expire float64
- optional number → The expire time of the zone SOA.
- Primary
Dns string - optional string → The primary DNS of the zone SOA.
- Publicdns
Zone stringId - string → ID of the resource.
- Refresh float64
- optional number → The refresh time of the zone SOA.
- Region string
- optional string → The region in which to obtain the V2 Public DNS client. If omitted, the
region
argument of the provider is used. Changing this creates a new zone. - Retry float64
- optional number → The retry time of the zone SOA.
- Serial float64
- number → The serial number of the zone SOA.
- Status string
- string → The status of the zone.
- Timeouts
Publicdns
Zone Timeouts Args - Ttl float64
- optional number → The TTL (time to live) of the zone SOA.
- Zone string
- required string → The name of the zone. Changes this creates a new zone.
- admin
Email String - optional string → The admin email of the zone SOA.
- expire Double
- optional number → The expire time of the zone SOA.
- primary
Dns String - optional string → The primary DNS of the zone SOA.
- publicdns
Zone StringId - string → ID of the resource.
- refresh Double
- optional number → The refresh time of the zone SOA.
- region String
- optional string → The region in which to obtain the V2 Public DNS client. If omitted, the
region
argument of the provider is used. Changing this creates a new zone. - retry Double
- optional number → The retry time of the zone SOA.
- serial Double
- number → The serial number of the zone SOA.
- status String
- string → The status of the zone.
- timeouts
Publicdns
Zone Timeouts - ttl Double
- optional number → The TTL (time to live) of the zone SOA.
- zone String
- required string → The name of the zone. Changes this creates a new zone.
- admin
Email string - optional string → The admin email of the zone SOA.
- expire number
- optional number → The expire time of the zone SOA.
- primary
Dns string - optional string → The primary DNS of the zone SOA.
- publicdns
Zone stringId - string → ID of the resource.
- refresh number
- optional number → The refresh time of the zone SOA.
- region string
- optional string → The region in which to obtain the V2 Public DNS client. If omitted, the
region
argument of the provider is used. Changing this creates a new zone. - retry number
- optional number → The retry time of the zone SOA.
- serial number
- number → The serial number of the zone SOA.
- status string
- string → The status of the zone.
- timeouts
Publicdns
Zone Timeouts - ttl number
- optional number → The TTL (time to live) of the zone SOA.
- zone string
- required string → The name of the zone. Changes this creates a new zone.
- admin_
email str - optional string → The admin email of the zone SOA.
- expire float
- optional number → The expire time of the zone SOA.
- primary_
dns str - optional string → The primary DNS of the zone SOA.
- publicdns_
zone_ strid - string → ID of the resource.
- refresh float
- optional number → The refresh time of the zone SOA.
- region str
- optional string → The region in which to obtain the V2 Public DNS client. If omitted, the
region
argument of the provider is used. Changing this creates a new zone. - retry float
- optional number → The retry time of the zone SOA.
- serial float
- number → The serial number of the zone SOA.
- status str
- string → The status of the zone.
- timeouts
Publicdns
Zone Timeouts Args - ttl float
- optional number → The TTL (time to live) of the zone SOA.
- zone str
- required string → The name of the zone. Changes this creates a new zone.
- admin
Email String - optional string → The admin email of the zone SOA.
- expire Number
- optional number → The expire time of the zone SOA.
- primary
Dns String - optional string → The primary DNS of the zone SOA.
- publicdns
Zone StringId - string → ID of the resource.
- refresh Number
- optional number → The refresh time of the zone SOA.
- region String
- optional string → The region in which to obtain the V2 Public DNS client. If omitted, the
region
argument of the provider is used. Changing this creates a new zone. - retry Number
- optional number → The retry time of the zone SOA.
- serial Number
- number → The serial number of the zone SOA.
- status String
- string → The status of the zone.
- timeouts Property Map
- ttl Number
- optional number → The TTL (time to live) of the zone SOA.
- zone String
- required string → The name of the zone. Changes this creates a new zone.
Supporting Types
PublicdnsZoneTimeouts, PublicdnsZoneTimeoutsArgs
Import
Public DNS zones can be imported using the id
, e.g.
$ pulumi import vkcs:index/publicdnsZone:PublicdnsZone zone b758c4e5-ec13-4dfa-8458-b8502625499c
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- vkcs vk-cs/terraform-provider-vkcs
- License
- Notes
- This Pulumi package is based on the
vkcs
Terraform Provider.