alicloud.cdn.Domain
Explore with Pulumi AI
Create Domain Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Domain(name: string, args: DomainArgs, opts?: CustomResourceOptions);
@overload
def Domain(resource_name: str,
args: DomainArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Domain(resource_name: str,
opts: Optional[ResourceOptions] = None,
cdn_type: Optional[str] = None,
domain_name: Optional[str] = None,
page404_config: Optional[DomainPage404ConfigArgs] = None,
page_compress_enable: Optional[str] = None,
certificate_config: Optional[DomainCertificateConfigArgs] = None,
block_ips: Optional[Sequence[str]] = None,
http_header_configs: Optional[Sequence[DomainHttpHeaderConfigArgs]] = None,
optimize_enable: Optional[str] = None,
auth_config: Optional[DomainAuthConfigArgs] = None,
cache_configs: Optional[Sequence[DomainCacheConfigArgs]] = None,
parameter_filter_config: Optional[DomainParameterFilterConfigArgs] = None,
range_enable: Optional[str] = None,
refer_config: Optional[DomainReferConfigArgs] = None,
scope: Optional[str] = None,
source_port: Optional[int] = None,
source_type: Optional[str] = None,
sources: Optional[Sequence[str]] = None,
video_seek_enable: Optional[str] = None)
func NewDomain(ctx *Context, name string, args DomainArgs, opts ...ResourceOption) (*Domain, error)
public Domain(string name, DomainArgs args, CustomResourceOptions? opts = null)
public Domain(String name, DomainArgs args)
public Domain(String name, DomainArgs args, CustomResourceOptions options)
type: alicloud:cdn:Domain
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 DomainArgs
- 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 DomainArgs
- 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 DomainArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DomainArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DomainArgs
- 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 domainResource = new AliCloud.Cdn.Domain("domainResource", new()
{
CdnType = "string",
DomainName = "string",
Scope = "string",
});
example, err := cdn.NewDomain(ctx, "domainResource", &cdn.DomainArgs{
CdnType: pulumi.String("string"),
DomainName: pulumi.String("string"),
Scope: pulumi.String("string"),
})
var domainResource = new Domain("domainResource", DomainArgs.builder()
.cdnType("string")
.domainName("string")
.scope("string")
.build());
domain_resource = alicloud.cdn.Domain("domainResource",
cdn_type="string",
domain_name="string",
scope="string")
const domainResource = new alicloud.cdn.Domain("domainResource", {
cdnType: "string",
domainName: "string",
scope: "string",
});
type: alicloud:cdn:Domain
properties:
cdnType: string
domainName: string
scope: string
Domain Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Domain resource accepts the following input properties:
- Cdn
Type string - Domain
Name string - Auth
Config Pulumi.Ali Cloud. Cdn. Inputs. Domain Auth Config - Block
Ips List<string> - Cache
Configs List<Pulumi.Ali Cloud. Cdn. Inputs. Domain Cache Config> - Certificate
Config Pulumi.Ali Cloud. Cdn. Inputs. Domain Certificate Config - Http
Header List<Pulumi.Configs Ali Cloud. Cdn. Inputs. Domain Http Header Config> - Optimize
Enable string - Page404Config
Pulumi.
Ali Cloud. Cdn. Inputs. Domain Page404Config - Page
Compress stringEnable - Parameter
Filter Pulumi.Config Ali Cloud. Cdn. Inputs. Domain Parameter Filter Config - Range
Enable string - Refer
Config Pulumi.Ali Cloud. Cdn. Inputs. Domain Refer Config - Scope string
- Source
Port int - Source
Type string - Sources List<string>
- Video
Seek stringEnable
- Cdn
Type string - Domain
Name string - Auth
Config DomainAuth Config Args - Block
Ips []string - Cache
Configs []DomainCache Config Args - Certificate
Config DomainCertificate Config Args - Http
Header []DomainConfigs Http Header Config Args - Optimize
Enable string - Page404Config
Domain
Page404Config Args - Page
Compress stringEnable - Parameter
Filter DomainConfig Parameter Filter Config Args - Range
Enable string - Refer
Config DomainRefer Config Args - Scope string
- Source
Port int - Source
Type string - Sources []string
- Video
Seek stringEnable
- cdn
Type String - domain
Name String - auth
Config DomainAuth Config - block
Ips List<String> - cache
Configs List<DomainCache Config> - certificate
Config DomainCertificate Config - http
Header List<DomainConfigs Http Header Config> - optimize
Enable String - page404Config
Domain
Page404Config - page
Compress StringEnable - parameter
Filter DomainConfig Parameter Filter Config - range
Enable String - refer
Config DomainRefer Config - scope String
- source
Port Integer - source
Type String - sources List<String>
- video
Seek StringEnable
- cdn
Type string - domain
Name string - auth
Config DomainAuth Config - block
Ips string[] - cache
Configs DomainCache Config[] - certificate
Config DomainCertificate Config - http
Header DomainConfigs Http Header Config[] - optimize
Enable string - page404Config
Domain
Page404Config - page
Compress stringEnable - parameter
Filter DomainConfig Parameter Filter Config - range
Enable string - refer
Config DomainRefer Config - scope string
- source
Port number - source
Type string - sources string[]
- video
Seek stringEnable
- cdn_
type str - domain_
name str - auth_
config DomainAuth Config Args - block_
ips Sequence[str] - cache_
configs Sequence[DomainCache Config Args] - certificate_
config DomainCertificate Config Args - http_
header_ Sequence[Domainconfigs Http Header Config Args] - optimize_
enable str - page404_
config DomainPage404Config Args - page_
compress_ strenable - parameter_
filter_ Domainconfig Parameter Filter Config Args - range_
enable str - refer_
config DomainRefer Config Args - scope str
- source_
port int - source_
type str - sources Sequence[str]
- video_
seek_ strenable
- cdn
Type String - domain
Name String - auth
Config Property Map - block
Ips List<String> - cache
Configs List<Property Map> - certificate
Config Property Map - http
Header List<Property Map>Configs - optimize
Enable String - page404Config Property Map
- page
Compress StringEnable - parameter
Filter Property MapConfig - range
Enable String - refer
Config Property Map - scope String
- source
Port Number - source
Type String - sources List<String>
- video
Seek StringEnable
Outputs
All input properties are implicitly available as output properties. Additionally, the Domain 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 string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing Domain Resource
Get an existing Domain 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?: DomainState, opts?: CustomResourceOptions): Domain
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
auth_config: Optional[DomainAuthConfigArgs] = None,
block_ips: Optional[Sequence[str]] = None,
cache_configs: Optional[Sequence[DomainCacheConfigArgs]] = None,
cdn_type: Optional[str] = None,
certificate_config: Optional[DomainCertificateConfigArgs] = None,
domain_name: Optional[str] = None,
http_header_configs: Optional[Sequence[DomainHttpHeaderConfigArgs]] = None,
optimize_enable: Optional[str] = None,
page404_config: Optional[DomainPage404ConfigArgs] = None,
page_compress_enable: Optional[str] = None,
parameter_filter_config: Optional[DomainParameterFilterConfigArgs] = None,
range_enable: Optional[str] = None,
refer_config: Optional[DomainReferConfigArgs] = None,
scope: Optional[str] = None,
source_port: Optional[int] = None,
source_type: Optional[str] = None,
sources: Optional[Sequence[str]] = None,
video_seek_enable: Optional[str] = None) -> Domain
func GetDomain(ctx *Context, name string, id IDInput, state *DomainState, opts ...ResourceOption) (*Domain, error)
public static Domain Get(string name, Input<string> id, DomainState? state, CustomResourceOptions? opts = null)
public static Domain get(String name, Output<String> id, DomainState 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.
- Auth
Config Pulumi.Ali Cloud. Cdn. Inputs. Domain Auth Config - Block
Ips List<string> - Cache
Configs List<Pulumi.Ali Cloud. Cdn. Inputs. Domain Cache Config> - Cdn
Type string - Certificate
Config Pulumi.Ali Cloud. Cdn. Inputs. Domain Certificate Config - Domain
Name string - Http
Header List<Pulumi.Configs Ali Cloud. Cdn. Inputs. Domain Http Header Config> - Optimize
Enable string - Page404Config
Pulumi.
Ali Cloud. Cdn. Inputs. Domain Page404Config - Page
Compress stringEnable - Parameter
Filter Pulumi.Config Ali Cloud. Cdn. Inputs. Domain Parameter Filter Config - Range
Enable string - Refer
Config Pulumi.Ali Cloud. Cdn. Inputs. Domain Refer Config - Scope string
- Source
Port int - Source
Type string - Sources List<string>
- Video
Seek stringEnable
- Auth
Config DomainAuth Config Args - Block
Ips []string - Cache
Configs []DomainCache Config Args - Cdn
Type string - Certificate
Config DomainCertificate Config Args - Domain
Name string - Http
Header []DomainConfigs Http Header Config Args - Optimize
Enable string - Page404Config
Domain
Page404Config Args - Page
Compress stringEnable - Parameter
Filter DomainConfig Parameter Filter Config Args - Range
Enable string - Refer
Config DomainRefer Config Args - Scope string
- Source
Port int - Source
Type string - Sources []string
- Video
Seek stringEnable
- auth
Config DomainAuth Config - block
Ips List<String> - cache
Configs List<DomainCache Config> - cdn
Type String - certificate
Config DomainCertificate Config - domain
Name String - http
Header List<DomainConfigs Http Header Config> - optimize
Enable String - page404Config
Domain
Page404Config - page
Compress StringEnable - parameter
Filter DomainConfig Parameter Filter Config - range
Enable String - refer
Config DomainRefer Config - scope String
- source
Port Integer - source
Type String - sources List<String>
- video
Seek StringEnable
- auth
Config DomainAuth Config - block
Ips string[] - cache
Configs DomainCache Config[] - cdn
Type string - certificate
Config DomainCertificate Config - domain
Name string - http
Header DomainConfigs Http Header Config[] - optimize
Enable string - page404Config
Domain
Page404Config - page
Compress stringEnable - parameter
Filter DomainConfig Parameter Filter Config - range
Enable string - refer
Config DomainRefer Config - scope string
- source
Port number - source
Type string - sources string[]
- video
Seek stringEnable
- auth_
config DomainAuth Config Args - block_
ips Sequence[str] - cache_
configs Sequence[DomainCache Config Args] - cdn_
type str - certificate_
config DomainCertificate Config Args - domain_
name str - http_
header_ Sequence[Domainconfigs Http Header Config Args] - optimize_
enable str - page404_
config DomainPage404Config Args - page_
compress_ strenable - parameter_
filter_ Domainconfig Parameter Filter Config Args - range_
enable str - refer_
config DomainRefer Config Args - scope str
- source_
port int - source_
type str - sources Sequence[str]
- video_
seek_ strenable
- auth
Config Property Map - block
Ips List<String> - cache
Configs List<Property Map> - cdn
Type String - certificate
Config Property Map - domain
Name String - http
Header List<Property Map>Configs - optimize
Enable String - page404Config Property Map
- page
Compress StringEnable - parameter
Filter Property MapConfig - range
Enable String - refer
Config Property Map - scope String
- source
Port Number - source
Type String - sources List<String>
- video
Seek StringEnable
Supporting Types
DomainAuthConfig, DomainAuthConfigArgs
- auth_
type str - master_
key str - slave_
key str - timeout int
DomainCacheConfig, DomainCacheConfigArgs
- Cache
Content string - Cache
Type string - Ttl int
- Cache
Id string - Weight int
- Cache
Content string - Cache
Type string - Ttl int
- Cache
Id string - Weight int
- cache
Content String - cache
Type String - ttl Integer
- cache
Id String - weight Integer
- cache
Content string - cache
Type string - ttl number
- cache
Id string - weight number
- cache_
content str - cache_
type str - ttl int
- cache_
id str - weight int
- cache
Content String - cache
Type String - ttl Number
- cache
Id String - weight Number
DomainCertificateConfig, DomainCertificateConfigArgs
- Private
Key string - Server
Certificate string - Server
Certificate stringStatus
- Private
Key string - Server
Certificate string - Server
Certificate stringStatus
- private
Key String - server
Certificate String - server
Certificate StringStatus
- private
Key string - server
Certificate string - server
Certificate stringStatus
- private
Key String - server
Certificate String - server
Certificate StringStatus
DomainHttpHeaderConfig, DomainHttpHeaderConfigArgs
- Header
Key string - Header
Value string - Header
Id string
- Header
Key string - Header
Value string - Header
Id string
- header
Key String - header
Value String - header
Id String
- header
Key string - header
Value string - header
Id string
- header_
key str - header_
value str - header_
id str
- header
Key String - header
Value String - header
Id String
DomainPage404Config, DomainPage404ConfigArgs
- Custom
Page stringUrl - Error
Code string - Page
Type string
- Custom
Page stringUrl - Error
Code string - Page
Type string
- custom
Page StringUrl - error
Code String - page
Type String
- custom
Page stringUrl - error
Code string - page
Type string
- custom_
page_ strurl - error_
code str - page_
type str
- custom
Page StringUrl - error
Code String - page
Type String
DomainParameterFilterConfig, DomainParameterFilterConfigArgs
- Enable string
- Hash
Key List<string>Args
- Enable string
- Hash
Key []stringArgs
- enable String
- hash
Key List<String>Args
- enable string
- hash
Key string[]Args
- enable str
- hash_
key_ Sequence[str]args
- enable String
- hash
Key List<String>Args
DomainReferConfig, DomainReferConfigArgs
- Refer
Lists List<string> - Allow
Empty string - Refer
Type string
- Refer
Lists []string - Allow
Empty string - Refer
Type string
- refer
Lists List<String> - allow
Empty String - refer
Type String
- refer
Lists string[] - allow
Empty string - refer
Type string
- refer_
lists Sequence[str] - allow_
empty str - refer_
type str
- refer
Lists List<String> - allow
Empty String - refer
Type String
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.