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
new Instance(name: string, args: InstanceArgs, opts?: CustomResourceOptions);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:
- Dns
Security string DNS security level. Valid values:
no,basic,advanced.- Domain
Numbers string Number of domain names bound.
- Version
Code 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.
- Renew
Period int Automatic renewal period, the unit is month. When setting RenewalStatus to AutoRenewal, it must be set.
- Renewal
Status string Automatic renewal status. Valid values:
AutoRenewal,ManualRenewal, default toManualRenewal.
- Dns
Security string DNS security level. Valid values:
no,basic,advanced.- Domain
Numbers string Number of domain names bound.
- Version
Code 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.
- Renew
Period int Automatic renewal period, the unit is month. When setting RenewalStatus to AutoRenewal, it must be set.
- Renewal
Status string Automatic renewal status. Valid values:
AutoRenewal,ManualRenewal, default toManualRenewal.
- dns
Security string DNS security level. Valid values:
no,basic,advanced.- domain
Numbers string Number of domain names bound.
- version
Code 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.
- renew
Period number Automatic renewal period, the unit is month. When setting RenewalStatus to AutoRenewal, it must be set.
- renewal
Status string Automatic renewal status. Valid values:
AutoRenewal,ManualRenewal, default toManualRenewal.
- 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 toManualRenewal.
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.
- Version
Name string Paid package version name.
- Id string
- The provider-assigned unique ID for this managed resource.
- Version
Name string Paid package version name.
- id string
- The provider-assigned unique ID for this managed resource.
- version
Name 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): Instancestatic 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:
- Dns
Security string DNS security level. Valid values:
no,basic,advanced.- Domain
Numbers 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.
- Renew
Period int Automatic renewal period, the unit is month. When setting RenewalStatus to AutoRenewal, it must be set.
- Renewal
Status string Automatic renewal status. Valid values:
AutoRenewal,ManualRenewal, default toManualRenewal.- Version
Code string Paid package version. Valid values:
version_personal,version_enterprise_basic,version_enterprise_advanced.- Version
Name string Paid package version name.
- Dns
Security string DNS security level. Valid values:
no,basic,advanced.- Domain
Numbers 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.
- Renew
Period int Automatic renewal period, the unit is month. When setting RenewalStatus to AutoRenewal, it must be set.
- Renewal
Status string Automatic renewal status. Valid values:
AutoRenewal,ManualRenewal, default toManualRenewal.- Version
Code string Paid package version. Valid values:
version_personal,version_enterprise_basic,version_enterprise_advanced.- Version
Name string Paid package version name.
- dns
Security string DNS security level. Valid values:
no,basic,advanced.- domain
Numbers 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.
- renew
Period number Automatic renewal period, the unit is month. When setting RenewalStatus to AutoRenewal, it must be set.
- renewal
Status string Automatic renewal status. Valid values:
AutoRenewal,ManualRenewal, default toManualRenewal.- version
Code string Paid package version. Valid values:
version_personal,version_enterprise_basic,version_enterprise_advanced.- version
Name 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 toManualRenewal.- 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
alicloudTerraform Provider.