DomainNew

Create a DomainNew Resource

def DomainNew(resource_name, opts=None, cdn_type=None, certificate_config=None, domain_name=None, resource_group_id=None, scope=None, sources=None, tags=None, __props__=None);
func NewDomainNew(ctx *Context, name string, args DomainNewArgs, opts ...ResourceOption) (*DomainNew, error)
public DomainNew(string name, DomainNewArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args DomainNewArgs
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 DomainNewArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args DomainNewArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

DomainNew Resource Properties

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

Inputs

The DomainNew resource accepts the following input properties:

CdnType string

Cdn type of the accelerated domain. Valid values are web, download, video.

DomainName string

Name of the accelerated domain. This name without suffix can have a string of 1 to 63 characters, must contain only alphanumeric characters or “-”, and must not begin or end with “-”, and “-” must not in the 3th and 4th character positions at the same time. Suffix .sh and .tel are not supported.

Sources Pulumi.AliCloud.Cdn.Inputs.DomainNewSourcesArgs

The source address list of the accelerated domain. Defaults to null. See Block Sources.

CertificateConfig Pulumi.AliCloud.Cdn.Inputs.DomainNewCertificateConfigArgs

Certificate config of the accelerated domain. It’s a list and consist of at most 1 item.

ResourceGroupId string

Resource group ID.

Scope string

Scope of the accelerated domain. Valid values are domestic, overseas, global. Default value is domestic. This parameter’s setting is valid Only for the international users and domestic L3 and above users .

Tags Dictionary<string, object>

A mapping of tags to assign to the resource.

CdnType string

Cdn type of the accelerated domain. Valid values are web, download, video.

DomainName string

Name of the accelerated domain. This name without suffix can have a string of 1 to 63 characters, must contain only alphanumeric characters or “-”, and must not begin or end with “-”, and “-” must not in the 3th and 4th character positions at the same time. Suffix .sh and .tel are not supported.

Sources DomainNewSources

The source address list of the accelerated domain. Defaults to null. See Block Sources.

CertificateConfig DomainNewCertificateConfig

Certificate config of the accelerated domain. It’s a list and consist of at most 1 item.

ResourceGroupId string

Resource group ID.

Scope string

Scope of the accelerated domain. Valid values are domestic, overseas, global. Default value is domestic. This parameter’s setting is valid Only for the international users and domestic L3 and above users .

Tags map[string]interface{}

A mapping of tags to assign to the resource.

cdnType string

Cdn type of the accelerated domain. Valid values are web, download, video.

domainName string

Name of the accelerated domain. This name without suffix can have a string of 1 to 63 characters, must contain only alphanumeric characters or “-”, and must not begin or end with “-”, and “-” must not in the 3th and 4th character positions at the same time. Suffix .sh and .tel are not supported.

sources DomainNewSources

The source address list of the accelerated domain. Defaults to null. See Block Sources.

certificateConfig DomainNewCertificateConfig

Certificate config of the accelerated domain. It’s a list and consist of at most 1 item.

resourceGroupId string

Resource group ID.

scope string

Scope of the accelerated domain. Valid values are domestic, overseas, global. Default value is domestic. This parameter’s setting is valid Only for the international users and domestic L3 and above users .

tags {[key: string]: any}

A mapping of tags to assign to the resource.

cdn_type str

Cdn type of the accelerated domain. Valid values are web, download, video.

domain_name str

Name of the accelerated domain. This name without suffix can have a string of 1 to 63 characters, must contain only alphanumeric characters or “-”, and must not begin or end with “-”, and “-” must not in the 3th and 4th character positions at the same time. Suffix .sh and .tel are not supported.

sources Dict[DomainNewSources]

The source address list of the accelerated domain. Defaults to null. See Block Sources.

certificate_config Dict[DomainNewCertificateConfig]

Certificate config of the accelerated domain. It’s a list and consist of at most 1 item.

resource_group_id str

Resource group ID.

scope str

Scope of the accelerated domain. Valid values are domestic, overseas, global. Default value is domestic. This parameter’s setting is valid Only for the international users and domestic L3 and above users .

tags Dict[str, Any]

A mapping of tags to assign to the resource.

Outputs

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

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

Look up an Existing DomainNew Resource

Get an existing DomainNew 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?: DomainNewState, opts?: CustomResourceOptions): DomainNew
static get(resource_name, id, opts=None, cdn_type=None, certificate_config=None, domain_name=None, resource_group_id=None, scope=None, sources=None, tags=None, __props__=None);
func GetDomainNew(ctx *Context, name string, id IDInput, state *DomainNewState, opts ...ResourceOption) (*DomainNew, error)
public static DomainNew Get(string name, Input<string> id, DomainNewState? 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:

CdnType string

Cdn type of the accelerated domain. Valid values are web, download, video.

CertificateConfig Pulumi.AliCloud.Cdn.Inputs.DomainNewCertificateConfigArgs

Certificate config of the accelerated domain. It’s a list and consist of at most 1 item.

DomainName string

Name of the accelerated domain. This name without suffix can have a string of 1 to 63 characters, must contain only alphanumeric characters or “-”, and must not begin or end with “-”, and “-” must not in the 3th and 4th character positions at the same time. Suffix .sh and .tel are not supported.

ResourceGroupId string

Resource group ID.

Scope string

Scope of the accelerated domain. Valid values are domestic, overseas, global. Default value is domestic. This parameter’s setting is valid Only for the international users and domestic L3 and above users .

Sources Pulumi.AliCloud.Cdn.Inputs.DomainNewSourcesArgs

The source address list of the accelerated domain. Defaults to null. See Block Sources.

Tags Dictionary<string, object>

A mapping of tags to assign to the resource.

CdnType string

Cdn type of the accelerated domain. Valid values are web, download, video.

CertificateConfig DomainNewCertificateConfig

Certificate config of the accelerated domain. It’s a list and consist of at most 1 item.

DomainName string

Name of the accelerated domain. This name without suffix can have a string of 1 to 63 characters, must contain only alphanumeric characters or “-”, and must not begin or end with “-”, and “-” must not in the 3th and 4th character positions at the same time. Suffix .sh and .tel are not supported.

ResourceGroupId string

Resource group ID.

Scope string

Scope of the accelerated domain. Valid values are domestic, overseas, global. Default value is domestic. This parameter’s setting is valid Only for the international users and domestic L3 and above users .

Sources DomainNewSources

The source address list of the accelerated domain. Defaults to null. See Block Sources.

Tags map[string]interface{}

A mapping of tags to assign to the resource.

cdnType string

Cdn type of the accelerated domain. Valid values are web, download, video.

certificateConfig DomainNewCertificateConfig

Certificate config of the accelerated domain. It’s a list and consist of at most 1 item.

domainName string

Name of the accelerated domain. This name without suffix can have a string of 1 to 63 characters, must contain only alphanumeric characters or “-”, and must not begin or end with “-”, and “-” must not in the 3th and 4th character positions at the same time. Suffix .sh and .tel are not supported.

resourceGroupId string

Resource group ID.

scope string

Scope of the accelerated domain. Valid values are domestic, overseas, global. Default value is domestic. This parameter’s setting is valid Only for the international users and domestic L3 and above users .

sources DomainNewSources

The source address list of the accelerated domain. Defaults to null. See Block Sources.

tags {[key: string]: any}

A mapping of tags to assign to the resource.

cdn_type str

Cdn type of the accelerated domain. Valid values are web, download, video.

certificate_config Dict[DomainNewCertificateConfig]

Certificate config of the accelerated domain. It’s a list and consist of at most 1 item.

domain_name str

Name of the accelerated domain. This name without suffix can have a string of 1 to 63 characters, must contain only alphanumeric characters or “-”, and must not begin or end with “-”, and “-” must not in the 3th and 4th character positions at the same time. Suffix .sh and .tel are not supported.

resource_group_id str

Resource group ID.

scope str

Scope of the accelerated domain. Valid values are domestic, overseas, global. Default value is domestic. This parameter’s setting is valid Only for the international users and domestic L3 and above users .

sources Dict[DomainNewSources]

The source address list of the accelerated domain. Defaults to null. See Block Sources.

tags Dict[str, Any]

A mapping of tags to assign to the resource.

Supporting Types

DomainNewCertificateConfig

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

CertName string

The SSL certificate name.

CertType string

The SSL certificate type, can be “upload”, “cas” and “free”.

ForceSet string

Set 1 to ignore the repeated verification for certificate name, and cover the information of the origin certificate (with the same name). Set 0 to work the verification.

PrivateKey string

The SSL private key. This is required if server_certificate_status is on

ServerCertificate string

The SSL server certificate string. This is required if server_certificate_status is on

ServerCertificateStatus string

This parameter indicates whether or not enable https. Valid values are on and off. Default value is on.

CertName string

The SSL certificate name.

CertType string

The SSL certificate type, can be “upload”, “cas” and “free”.

ForceSet string

Set 1 to ignore the repeated verification for certificate name, and cover the information of the origin certificate (with the same name). Set 0 to work the verification.

PrivateKey string

The SSL private key. This is required if server_certificate_status is on

ServerCertificate string

The SSL server certificate string. This is required if server_certificate_status is on

ServerCertificateStatus string

This parameter indicates whether or not enable https. Valid values are on and off. Default value is on.

certName string

The SSL certificate name.

certType string

The SSL certificate type, can be “upload”, “cas” and “free”.

forceSet string

Set 1 to ignore the repeated verification for certificate name, and cover the information of the origin certificate (with the same name). Set 0 to work the verification.

privateKey string

The SSL private key. This is required if server_certificate_status is on

serverCertificate string

The SSL server certificate string. This is required if server_certificate_status is on

serverCertificateStatus string

This parameter indicates whether or not enable https. Valid values are on and off. Default value is on.

certName str

The SSL certificate name.

certType str

The SSL certificate type, can be “upload”, “cas” and “free”.

forceSet str

Set 1 to ignore the repeated verification for certificate name, and cover the information of the origin certificate (with the same name). Set 0 to work the verification.

private_key str

The SSL private key. This is required if server_certificate_status is on

serverCertificateStatus str

This parameter indicates whether or not enable https. Valid values are on and off. Default value is on.

server_certificate str

The SSL server certificate string. This is required if server_certificate_status is on

DomainNewSources

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

Content string

The adress of source. Valid values can be ip or doaminName. Each item’s content can not be repeated.

Type string

The type of the source. Valid values are ipaddr, domain and oss.

Port int

The port of source. Valid values are 443 and 80. Default value is 80.

Priority int

Priority of the source. Valid values are 0 and 100. Default value is 20.

Weight int

Weight of the source. Valid values are from 0 to 100. Default value is 10, but if type is ipaddr, the value can only be 10.

Content string

The adress of source. Valid values can be ip or doaminName. Each item’s content can not be repeated.

Type string

The type of the source. Valid values are ipaddr, domain and oss.

Port int

The port of source. Valid values are 443 and 80. Default value is 80.

Priority int

Priority of the source. Valid values are 0 and 100. Default value is 20.

Weight int

Weight of the source. Valid values are from 0 to 100. Default value is 10, but if type is ipaddr, the value can only be 10.

content string

The adress of source. Valid values can be ip or doaminName. Each item’s content can not be repeated.

type string

The type of the source. Valid values are ipaddr, domain and oss.

port number

The port of source. Valid values are 443 and 80. Default value is 80.

priority number

Priority of the source. Valid values are 0 and 100. Default value is 20.

weight number

Weight of the source. Valid values are from 0 to 100. Default value is 10, but if type is ipaddr, the value can only be 10.

content str

The adress of source. Valid values can be ip or doaminName. Each item’s content can not be repeated.

type str

The type of the source. Valid values are ipaddr, domain and oss.

port float

The port of source. Valid values are 443 and 80. Default value is 80.

priority float

Priority of the source. Valid values are 0 and 100. Default value is 20.

weight float

Weight of the source. Valid values are from 0 to 100. Default value is 10, but if type is ipaddr, the value can only be 10.

Package Details

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