DomainNew
Create a DomainNew Resource
new DomainNew(name: string, args: DomainNewArgs, opts?: CustomResourceOptions);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:
- Cdn
Type string Cdn type of the accelerated domain. Valid values are
web,download,video.- Domain
Name 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
.shand.telare not supported.- Sources
Pulumi.
Ali Cloud. Cdn. Inputs. Domain New Sources Args The source address list of the accelerated domain. Defaults to null. See Block Sources.
- Certificate
Config Pulumi.Ali Cloud. Cdn. Inputs. Domain New Certificate Config Args Certificate config of the accelerated domain. It’s a list and consist of at most 1 item.
- Resource
Group stringId Resource group ID.
- Scope string
Scope of the accelerated domain. Valid values are
domestic,overseas,global. Default value isdomestic. This parameter’s setting is valid Only for the international users and domestic L3 and above users .- Dictionary<string, object>
A mapping of tags to assign to the resource.
- Cdn
Type string Cdn type of the accelerated domain. Valid values are
web,download,video.- Domain
Name 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
.shand.telare not supported.- Sources
Domain
New Sources The source address list of the accelerated domain. Defaults to null. See Block Sources.
- Certificate
Config DomainNew Certificate Config Certificate config of the accelerated domain. It’s a list and consist of at most 1 item.
- Resource
Group stringId Resource group ID.
- Scope string
Scope of the accelerated domain. Valid values are
domestic,overseas,global. Default value isdomestic. This parameter’s setting is valid Only for the international users and domestic L3 and above users .- map[string]interface{}
A mapping of tags to assign to the resource.
- cdn
Type string Cdn type of the accelerated domain. Valid values are
web,download,video.- domain
Name 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
.shand.telare not supported.- sources
Domain
New Sources The source address list of the accelerated domain. Defaults to null. See Block Sources.
- certificate
Config DomainNew Certificate Config Certificate config of the accelerated domain. It’s a list and consist of at most 1 item.
- resource
Group stringId Resource group ID.
- scope string
Scope of the accelerated domain. Valid values are
domestic,overseas,global. Default value isdomestic. This parameter’s setting is valid Only for the international users and domestic L3 and above users .- {[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
.shand.telare not supported.- sources
Dict[Domain
New Sources] The source address list of the accelerated domain. Defaults to null. See Block Sources.
- certificate_
config Dict[DomainNew Certificate Config] Certificate config of the accelerated domain. It’s a list and consist of at most 1 item.
- resource_
group_ strid Resource group ID.
- scope str
Scope of the accelerated domain. Valid values are
domestic,overseas,global. Default value isdomestic. This parameter’s setting is valid Only for the international users and domestic L3 and above users .- 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:
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): DomainNewstatic 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:
- Cdn
Type string Cdn type of the accelerated domain. Valid values are
web,download,video.- Certificate
Config Pulumi.Ali Cloud. Cdn. Inputs. Domain New Certificate Config Args Certificate config of the accelerated domain. It’s a list and consist of at most 1 item.
- Domain
Name 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
.shand.telare not supported.- Resource
Group stringId Resource group ID.
- Scope string
Scope of the accelerated domain. Valid values are
domestic,overseas,global. Default value isdomestic. This parameter’s setting is valid Only for the international users and domestic L3 and above users .- Sources
Pulumi.
Ali Cloud. Cdn. Inputs. Domain New Sources Args The source address list of the accelerated domain. Defaults to null. See Block Sources.
- Dictionary<string, object>
A mapping of tags to assign to the resource.
- Cdn
Type string Cdn type of the accelerated domain. Valid values are
web,download,video.- Certificate
Config DomainNew Certificate Config Certificate config of the accelerated domain. It’s a list and consist of at most 1 item.
- Domain
Name 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
.shand.telare not supported.- Resource
Group stringId Resource group ID.
- Scope string
Scope of the accelerated domain. Valid values are
domestic,overseas,global. Default value isdomestic. This parameter’s setting is valid Only for the international users and domestic L3 and above users .- Sources
Domain
New Sources The source address list of the accelerated domain. Defaults to null. See Block Sources.
- map[string]interface{}
A mapping of tags to assign to the resource.
- cdn
Type string Cdn type of the accelerated domain. Valid values are
web,download,video.- certificate
Config DomainNew Certificate Config Certificate config of the accelerated domain. It’s a list and consist of at most 1 item.
- domain
Name 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
.shand.telare not supported.- resource
Group stringId Resource group ID.
- scope string
Scope of the accelerated domain. Valid values are
domestic,overseas,global. Default value isdomestic. This parameter’s setting is valid Only for the international users and domestic L3 and above users .- sources
Domain
New Sources The source address list of the accelerated domain. Defaults to null. See Block Sources.
- {[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[DomainNew Certificate Config] 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
.shand.telare not supported.- resource_
group_ strid Resource group ID.
- scope str
Scope of the accelerated domain. Valid values are
domestic,overseas,global. Default value isdomestic. This parameter’s setting is valid Only for the international users and domestic L3 and above users .- sources
Dict[Domain
New Sources] The source address list of the accelerated domain. Defaults to null. See Block Sources.
- Dict[str, Any]
A mapping of tags to assign to the resource.
Supporting Types
DomainNewCertificateConfig
- Cert
Name string The SSL certificate name.
- Cert
Type string The SSL certificate type, can be “upload”, “cas” and “free”.
- Force
Set string Set
1to ignore the repeated verification for certificate name, and cover the information of the origin certificate (with the same name). Set0to work the verification.- Private
Key string The SSL private key. This is required if
server_certificate_statusison- Server
Certificate string The SSL server certificate string. This is required if
server_certificate_statusison- Server
Certificate stringStatus This parameter indicates whether or not enable https. Valid values are
onandoff. Default value ison.
- Cert
Name string The SSL certificate name.
- Cert
Type string The SSL certificate type, can be “upload”, “cas” and “free”.
- Force
Set string Set
1to ignore the repeated verification for certificate name, and cover the information of the origin certificate (with the same name). Set0to work the verification.- Private
Key string The SSL private key. This is required if
server_certificate_statusison- Server
Certificate string The SSL server certificate string. This is required if
server_certificate_statusison- Server
Certificate stringStatus This parameter indicates whether or not enable https. Valid values are
onandoff. Default value ison.
- cert
Name string The SSL certificate name.
- cert
Type string The SSL certificate type, can be “upload”, “cas” and “free”.
- force
Set string Set
1to ignore the repeated verification for certificate name, and cover the information of the origin certificate (with the same name). Set0to work the verification.- private
Key string The SSL private key. This is required if
server_certificate_statusison- server
Certificate string The SSL server certificate string. This is required if
server_certificate_statusison- server
Certificate stringStatus This parameter indicates whether or not enable https. Valid values are
onandoff. Default value ison.
- cert
Name str The SSL certificate name.
- cert
Type str The SSL certificate type, can be “upload”, “cas” and “free”.
- force
Set str Set
1to ignore the repeated verification for certificate name, and cover the information of the origin certificate (with the same name). Set0to work the verification.- private_
key str The SSL private key. This is required if
server_certificate_statusison- server
Certificate strStatus This parameter indicates whether or not enable https. Valid values are
onandoff. Default value ison.- server_
certificate str The SSL server certificate string. This is required if
server_certificate_statusison
DomainNewSources
- Content string
The adress of source. Valid values can be ip or doaminName. Each item’s
contentcan not be repeated.- Type string
The type of the source. Valid values are
ipaddr,domainandoss.- Port int
The port of source. Valid values are
443and80. Default value is80.- Priority int
Priority of the source. Valid values are
0and100. Default value is20.- Weight int
Weight of the source. Valid values are from
0to100. Default value is10, but if type isipaddr, the value can only be10.
- Content string
The adress of source. Valid values can be ip or doaminName. Each item’s
contentcan not be repeated.- Type string
The type of the source. Valid values are
ipaddr,domainandoss.- Port int
The port of source. Valid values are
443and80. Default value is80.- Priority int
Priority of the source. Valid values are
0and100. Default value is20.- Weight int
Weight of the source. Valid values are from
0to100. Default value is10, but if type isipaddr, the value can only be10.
- content string
The adress of source. Valid values can be ip or doaminName. Each item’s
contentcan not be repeated.- type string
The type of the source. Valid values are
ipaddr,domainandoss.- port number
The port of source. Valid values are
443and80. Default value is80.- priority number
Priority of the source. Valid values are
0and100. Default value is20.- weight number
Weight of the source. Valid values are from
0to100. Default value is10, but if type isipaddr, the value can only be10.
- content str
The adress of source. Valid values can be ip or doaminName. Each item’s
contentcan not be repeated.- type str
The type of the source. Valid values are
ipaddr,domainandoss.- port float
The port of source. Valid values are
443and80. Default value is80.- priority float
Priority of the source. Valid values are
0and100. Default value is20.- weight float
Weight of the source. Valid values are from
0to100. Default value is10, but if type isipaddr, the value can only be10.
Package Details
- Repository
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.