1. Packages
  2. Scaleway
  3. API Docs
  4. DomainZone
Scaleway v1.15.0 published on Tuesday, Jul 30, 2024 by pulumiverse

scaleway.DomainZone

Explore with Pulumi AI

scaleway logo
Scaleway v1.15.0 published on Tuesday, Jul 30, 2024 by pulumiverse

    Creates and manages Scaleway Domain zone.
    For more information, see the documentation.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as scaleway from "@pulumiverse/scaleway";
    
    const test = new scaleway.DomainZone("test", {
        domain: "scaleway-terraform.com",
        subdomain: "test",
    });
    
    import pulumi
    import pulumiverse_scaleway as scaleway
    
    test = scaleway.DomainZone("test",
        domain="scaleway-terraform.com",
        subdomain="test")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := scaleway.NewDomainZone(ctx, "test", &scaleway.DomainZoneArgs{
    			Domain:    pulumi.String("scaleway-terraform.com"),
    			Subdomain: pulumi.String("test"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Scaleway = Pulumiverse.Scaleway;
    
    return await Deployment.RunAsync(() => 
    {
        var test = new Scaleway.DomainZone("test", new()
        {
            Domain = "scaleway-terraform.com",
            Subdomain = "test",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.scaleway.DomainZone;
    import com.pulumi.scaleway.DomainZoneArgs;
    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 test = new DomainZone("test", DomainZoneArgs.builder()
                .domain("scaleway-terraform.com")
                .subdomain("test")
                .build());
    
        }
    }
    
    resources:
      test:
        type: scaleway:DomainZone
        properties:
          domain: scaleway-terraform.com
          subdomain: test
    

    Create DomainZone Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new DomainZone(name: string, args: DomainZoneArgs, opts?: CustomResourceOptions);
    @overload
    def DomainZone(resource_name: str,
                   args: DomainZoneArgs,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def DomainZone(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   domain: Optional[str] = None,
                   subdomain: Optional[str] = None,
                   project_id: Optional[str] = None)
    func NewDomainZone(ctx *Context, name string, args DomainZoneArgs, opts ...ResourceOption) (*DomainZone, error)
    public DomainZone(string name, DomainZoneArgs args, CustomResourceOptions? opts = null)
    public DomainZone(String name, DomainZoneArgs args)
    public DomainZone(String name, DomainZoneArgs args, CustomResourceOptions options)
    
    type: scaleway:DomainZone
    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 DomainZoneArgs
    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 DomainZoneArgs
    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 DomainZoneArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DomainZoneArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DomainZoneArgs
    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 domainZoneResource = new Scaleway.DomainZone("domainZoneResource", new()
    {
        Domain = "string",
        Subdomain = "string",
        ProjectId = "string",
    });
    
    example, err := scaleway.NewDomainZone(ctx, "domainZoneResource", &scaleway.DomainZoneArgs{
    	Domain:    pulumi.String("string"),
    	Subdomain: pulumi.String("string"),
    	ProjectId: pulumi.String("string"),
    })
    
    var domainZoneResource = new DomainZone("domainZoneResource", DomainZoneArgs.builder()
        .domain("string")
        .subdomain("string")
        .projectId("string")
        .build());
    
    domain_zone_resource = scaleway.DomainZone("domainZoneResource",
        domain="string",
        subdomain="string",
        project_id="string")
    
    const domainZoneResource = new scaleway.DomainZone("domainZoneResource", {
        domain: "string",
        subdomain: "string",
        projectId: "string",
    });
    
    type: scaleway:DomainZone
    properties:
        domain: string
        projectId: string
        subdomain: string
    

    DomainZone 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 DomainZone resource accepts the following input properties:

    Domain string
    The domain where the DNS zone will be created.
    Subdomain string
    The subdomain(zone name) to create in the domain.
    ProjectId string
    project_id) The ID of the project the domain is associated with.
    Domain string
    The domain where the DNS zone will be created.
    Subdomain string
    The subdomain(zone name) to create in the domain.
    ProjectId string
    project_id) The ID of the project the domain is associated with.
    domain String
    The domain where the DNS zone will be created.
    subdomain String
    The subdomain(zone name) to create in the domain.
    projectId String
    project_id) The ID of the project the domain is associated with.
    domain string
    The domain where the DNS zone will be created.
    subdomain string
    The subdomain(zone name) to create in the domain.
    projectId string
    project_id) The ID of the project the domain is associated with.
    domain str
    The domain where the DNS zone will be created.
    subdomain str
    The subdomain(zone name) to create in the domain.
    project_id str
    project_id) The ID of the project the domain is associated with.
    domain String
    The domain where the DNS zone will be created.
    subdomain String
    The subdomain(zone name) to create in the domain.
    projectId String
    project_id) The ID of the project the domain is associated with.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Message string
    Message
    Ns List<string>
    NameServer list for zone.
    NsDefaults List<string>
    NameServer default list for zone.
    NsMasters List<string>
    NameServer master list for zone.
    Status string
    The domain zone status.
    UpdatedAt string
    The date and time of the last update of the DNS zone.
    Id string
    The provider-assigned unique ID for this managed resource.
    Message string
    Message
    Ns []string
    NameServer list for zone.
    NsDefaults []string
    NameServer default list for zone.
    NsMasters []string
    NameServer master list for zone.
    Status string
    The domain zone status.
    UpdatedAt string
    The date and time of the last update of the DNS zone.
    id String
    The provider-assigned unique ID for this managed resource.
    message String
    Message
    ns List<String>
    NameServer list for zone.
    nsDefaults List<String>
    NameServer default list for zone.
    nsMasters List<String>
    NameServer master list for zone.
    status String
    The domain zone status.
    updatedAt String
    The date and time of the last update of the DNS zone.
    id string
    The provider-assigned unique ID for this managed resource.
    message string
    Message
    ns string[]
    NameServer list for zone.
    nsDefaults string[]
    NameServer default list for zone.
    nsMasters string[]
    NameServer master list for zone.
    status string
    The domain zone status.
    updatedAt string
    The date and time of the last update of the DNS zone.
    id str
    The provider-assigned unique ID for this managed resource.
    message str
    Message
    ns Sequence[str]
    NameServer list for zone.
    ns_defaults Sequence[str]
    NameServer default list for zone.
    ns_masters Sequence[str]
    NameServer master list for zone.
    status str
    The domain zone status.
    updated_at str
    The date and time of the last update of the DNS zone.
    id String
    The provider-assigned unique ID for this managed resource.
    message String
    Message
    ns List<String>
    NameServer list for zone.
    nsDefaults List<String>
    NameServer default list for zone.
    nsMasters List<String>
    NameServer master list for zone.
    status String
    The domain zone status.
    updatedAt String
    The date and time of the last update of the DNS zone.

    Look up Existing DomainZone Resource

    Get an existing DomainZone 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?: DomainZoneState, opts?: CustomResourceOptions): DomainZone
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            domain: Optional[str] = None,
            message: Optional[str] = None,
            ns: Optional[Sequence[str]] = None,
            ns_defaults: Optional[Sequence[str]] = None,
            ns_masters: Optional[Sequence[str]] = None,
            project_id: Optional[str] = None,
            status: Optional[str] = None,
            subdomain: Optional[str] = None,
            updated_at: Optional[str] = None) -> DomainZone
    func GetDomainZone(ctx *Context, name string, id IDInput, state *DomainZoneState, opts ...ResourceOption) (*DomainZone, error)
    public static DomainZone Get(string name, Input<string> id, DomainZoneState? state, CustomResourceOptions? opts = null)
    public static DomainZone get(String name, Output<String> id, DomainZoneState 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:
    Domain string
    The domain where the DNS zone will be created.
    Message string
    Message
    Ns List<string>
    NameServer list for zone.
    NsDefaults List<string>
    NameServer default list for zone.
    NsMasters List<string>
    NameServer master list for zone.
    ProjectId string
    project_id) The ID of the project the domain is associated with.
    Status string
    The domain zone status.
    Subdomain string
    The subdomain(zone name) to create in the domain.
    UpdatedAt string
    The date and time of the last update of the DNS zone.
    Domain string
    The domain where the DNS zone will be created.
    Message string
    Message
    Ns []string
    NameServer list for zone.
    NsDefaults []string
    NameServer default list for zone.
    NsMasters []string
    NameServer master list for zone.
    ProjectId string
    project_id) The ID of the project the domain is associated with.
    Status string
    The domain zone status.
    Subdomain string
    The subdomain(zone name) to create in the domain.
    UpdatedAt string
    The date and time of the last update of the DNS zone.
    domain String
    The domain where the DNS zone will be created.
    message String
    Message
    ns List<String>
    NameServer list for zone.
    nsDefaults List<String>
    NameServer default list for zone.
    nsMasters List<String>
    NameServer master list for zone.
    projectId String
    project_id) The ID of the project the domain is associated with.
    status String
    The domain zone status.
    subdomain String
    The subdomain(zone name) to create in the domain.
    updatedAt String
    The date and time of the last update of the DNS zone.
    domain string
    The domain where the DNS zone will be created.
    message string
    Message
    ns string[]
    NameServer list for zone.
    nsDefaults string[]
    NameServer default list for zone.
    nsMasters string[]
    NameServer master list for zone.
    projectId string
    project_id) The ID of the project the domain is associated with.
    status string
    The domain zone status.
    subdomain string
    The subdomain(zone name) to create in the domain.
    updatedAt string
    The date and time of the last update of the DNS zone.
    domain str
    The domain where the DNS zone will be created.
    message str
    Message
    ns Sequence[str]
    NameServer list for zone.
    ns_defaults Sequence[str]
    NameServer default list for zone.
    ns_masters Sequence[str]
    NameServer master list for zone.
    project_id str
    project_id) The ID of the project the domain is associated with.
    status str
    The domain zone status.
    subdomain str
    The subdomain(zone name) to create in the domain.
    updated_at str
    The date and time of the last update of the DNS zone.
    domain String
    The domain where the DNS zone will be created.
    message String
    Message
    ns List<String>
    NameServer list for zone.
    nsDefaults List<String>
    NameServer default list for zone.
    nsMasters List<String>
    NameServer master list for zone.
    projectId String
    project_id) The ID of the project the domain is associated with.
    status String
    The domain zone status.
    subdomain String
    The subdomain(zone name) to create in the domain.
    updatedAt String
    The date and time of the last update of the DNS zone.

    Import

    Zone can be imported using the {subdomain}.{domain}, e.g.

    bash

    $ pulumi import scaleway:index/domainZone:DomainZone test test.scaleway-terraform.com
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    scaleway pulumiverse/pulumi-scaleway
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the scaleway Terraform Provider.
    scaleway logo
    Scaleway v1.15.0 published on Tuesday, Jul 30, 2024 by pulumiverse