Instance

Create an DNS Instance resource.

NOTE: Available in v1.80.0+.

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var @this = new AliCloud.Dns.Instance("this", new AliCloud.Dns.InstanceArgs
        {
            DnsSecurity = "no",
            DomainNumbers = "2",
            Period = 1,
            RenewPeriod = 1,
            RenewalStatus = "ManualRenewal",
            VersionCode = "version_personal",
        });
    }

}

Coming soon!

import pulumi
import pulumi_alicloud as alicloud

this = alicloud.dns.Instance("this",
    dns_security="no",
    domain_numbers="2",
    period=1,
    renew_period=1,
    renewal_status="ManualRenewal",
    version_code="version_personal")
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const thisInstance = new alicloud.dns.Instance("this", {
    dnsSecurity: "no",
    domainNumbers: "2",
    period: 1,
    renewPeriod: 1,
    renewalStatus: "ManualRenewal",
    versionCode: "version_personal",
});

Create a Instance Resource

def Instance(resource_name, opts=None, dns_security=None, domain_numbers=None, period=None, renew_period=None, renewal_status=None, version_code=None, __props__=None);
func NewInstance(ctx *Context, name string, args InstanceArgs, opts ...ResourceOption) (*Instance, error)
public Instance(string name, InstanceArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args InstanceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args InstanceArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args InstanceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

Instance Resource Properties

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

Inputs

The Instance resource accepts the following input properties:

DnsSecurity string

DNS security level. Valid values: no, basic, advanced.

DomainNumbers string

Number of domain names bound.

VersionCode string

Paid package version. Valid values: version_personal, version_enterprise_basic, version_enterprise_advanced.

Period int

Creating a pre-paid instance, it must be set, the unit is month, please enter an integer multiple of 12 for annually paid products.

RenewPeriod int

Automatic renewal period, the unit is month. When setting RenewalStatus to AutoRenewal, it must be set.

RenewalStatus string

Automatic renewal status. Valid values: AutoRenewal, ManualRenewal, default to ManualRenewal.

DnsSecurity string

DNS security level. Valid values: no, basic, advanced.

DomainNumbers string

Number of domain names bound.

VersionCode string

Paid package version. Valid values: version_personal, version_enterprise_basic, version_enterprise_advanced.

Period int

Creating a pre-paid instance, it must be set, the unit is month, please enter an integer multiple of 12 for annually paid products.

RenewPeriod int

Automatic renewal period, the unit is month. When setting RenewalStatus to AutoRenewal, it must be set.

RenewalStatus string

Automatic renewal status. Valid values: AutoRenewal, ManualRenewal, default to ManualRenewal.

dnsSecurity string

DNS security level. Valid values: no, basic, advanced.

domainNumbers string

Number of domain names bound.

versionCode string

Paid package version. Valid values: version_personal, version_enterprise_basic, version_enterprise_advanced.

period number

Creating a pre-paid instance, it must be set, the unit is month, please enter an integer multiple of 12 for annually paid products.

renewPeriod number

Automatic renewal period, the unit is month. When setting RenewalStatus to AutoRenewal, it must be set.

renewalStatus string

Automatic renewal status. Valid values: AutoRenewal, ManualRenewal, default to ManualRenewal.

dns_security str

DNS security level. Valid values: no, basic, advanced.

domain_numbers str

Number of domain names bound.

version_code str

Paid package version. Valid values: version_personal, version_enterprise_basic, version_enterprise_advanced.

period float

Creating a pre-paid instance, it must be set, the unit is month, please enter an integer multiple of 12 for annually paid products.

renew_period float

Automatic renewal period, the unit is month. When setting RenewalStatus to AutoRenewal, it must be set.

renewal_status str

Automatic renewal status. Valid values: AutoRenewal, ManualRenewal, default to ManualRenewal.

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
VersionName string

Paid package version name.

Id string
The provider-assigned unique ID for this managed resource.
VersionName string

Paid package version name.

id string
The provider-assigned unique ID for this managed resource.
versionName string

Paid package version name.

id str
The provider-assigned unique ID for this managed resource.
version_name str

Paid package version name.

Look up an Existing Instance Resource

Get an existing Instance 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?: InstanceState, opts?: CustomResourceOptions): Instance
static get(resource_name, id, opts=None, dns_security=None, domain_numbers=None, period=None, renew_period=None, renewal_status=None, version_code=None, version_name=None, __props__=None);
func GetInstance(ctx *Context, name string, id IDInput, state *InstanceState, opts ...ResourceOption) (*Instance, error)
public static Instance Get(string name, Input<string> id, InstanceState? state, CustomResourceOptions? opts = null)
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.

The following state arguments are supported:

DnsSecurity string

DNS security level. Valid values: no, basic, advanced.

DomainNumbers string

Number of domain names bound.

Period int

Creating a pre-paid instance, it must be set, the unit is month, please enter an integer multiple of 12 for annually paid products.

RenewPeriod int

Automatic renewal period, the unit is month. When setting RenewalStatus to AutoRenewal, it must be set.

RenewalStatus string

Automatic renewal status. Valid values: AutoRenewal, ManualRenewal, default to ManualRenewal.

VersionCode string

Paid package version. Valid values: version_personal, version_enterprise_basic, version_enterprise_advanced.

VersionName string

Paid package version name.

DnsSecurity string

DNS security level. Valid values: no, basic, advanced.

DomainNumbers string

Number of domain names bound.

Period int

Creating a pre-paid instance, it must be set, the unit is month, please enter an integer multiple of 12 for annually paid products.

RenewPeriod int

Automatic renewal period, the unit is month. When setting RenewalStatus to AutoRenewal, it must be set.

RenewalStatus string

Automatic renewal status. Valid values: AutoRenewal, ManualRenewal, default to ManualRenewal.

VersionCode string

Paid package version. Valid values: version_personal, version_enterprise_basic, version_enterprise_advanced.

VersionName string

Paid package version name.

dnsSecurity string

DNS security level. Valid values: no, basic, advanced.

domainNumbers string

Number of domain names bound.

period number

Creating a pre-paid instance, it must be set, the unit is month, please enter an integer multiple of 12 for annually paid products.

renewPeriod number

Automatic renewal period, the unit is month. When setting RenewalStatus to AutoRenewal, it must be set.

renewalStatus string

Automatic renewal status. Valid values: AutoRenewal, ManualRenewal, default to ManualRenewal.

versionCode string

Paid package version. Valid values: version_personal, version_enterprise_basic, version_enterprise_advanced.

versionName string

Paid package version name.

dns_security str

DNS security level. Valid values: no, basic, advanced.

domain_numbers str

Number of domain names bound.

period float

Creating a pre-paid instance, it must be set, the unit is month, please enter an integer multiple of 12 for annually paid products.

renew_period float

Automatic renewal period, the unit is month. When setting RenewalStatus to AutoRenewal, it must be set.

renewal_status str

Automatic renewal status. Valid values: AutoRenewal, ManualRenewal, default to ManualRenewal.

version_code str

Paid package version. Valid values: version_personal, version_enterprise_basic, version_enterprise_advanced.

version_name str

Paid package version name.

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.