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:
- CdnType string
- DomainName string
- AuthConfig Pulumi.Ali Cloud. Cdn. Inputs. Domain Auth Config 
- BlockIps List<string>
- CacheConfigs List<Pulumi.Ali Cloud. Cdn. Inputs. Domain Cache Config> 
- CertificateConfig Pulumi.Ali Cloud. Cdn. Inputs. Domain Certificate Config 
- HttpHeader List<Pulumi.Configs Ali Cloud. Cdn. Inputs. Domain Http Header Config> 
- OptimizeEnable string
- Page404Config
Pulumi.Ali Cloud. Cdn. Inputs. Domain Page404Config 
- PageCompress stringEnable 
- ParameterFilter Pulumi.Config Ali Cloud. Cdn. Inputs. Domain Parameter Filter Config 
- RangeEnable string
- ReferConfig Pulumi.Ali Cloud. Cdn. Inputs. Domain Refer Config 
- Scope string
- SourcePort int
- SourceType string
- Sources List<string>
- VideoSeek stringEnable 
- CdnType string
- DomainName string
- AuthConfig DomainAuth Config Args 
- BlockIps []string
- CacheConfigs []DomainCache Config Args 
- CertificateConfig DomainCertificate Config Args 
- HttpHeader []DomainConfigs Http Header Config Args 
- OptimizeEnable string
- Page404Config
DomainPage404Config Args 
- PageCompress stringEnable 
- ParameterFilter DomainConfig Parameter Filter Config Args 
- RangeEnable string
- ReferConfig DomainRefer Config Args 
- Scope string
- SourcePort int
- SourceType string
- Sources []string
- VideoSeek stringEnable 
- cdnType String
- domainName String
- authConfig DomainAuth Config 
- blockIps List<String>
- cacheConfigs List<DomainCache Config> 
- certificateConfig DomainCertificate Config 
- httpHeader List<DomainConfigs Http Header Config> 
- optimizeEnable String
- page404Config
DomainPage404Config 
- pageCompress StringEnable 
- parameterFilter DomainConfig Parameter Filter Config 
- rangeEnable String
- referConfig DomainRefer Config 
- scope String
- sourcePort Integer
- sourceType String
- sources List<String>
- videoSeek StringEnable 
- cdnType string
- domainName string
- authConfig DomainAuth Config 
- blockIps string[]
- cacheConfigs DomainCache Config[] 
- certificateConfig DomainCertificate Config 
- httpHeader DomainConfigs Http Header Config[] 
- optimizeEnable string
- page404Config
DomainPage404Config 
- pageCompress stringEnable 
- parameterFilter DomainConfig Parameter Filter Config 
- rangeEnable string
- referConfig DomainRefer Config 
- scope string
- sourcePort number
- sourceType string
- sources string[]
- videoSeek 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 
- cdnType String
- domainName String
- authConfig Property Map
- blockIps List<String>
- cacheConfigs List<Property Map>
- certificateConfig Property Map
- httpHeader List<Property Map>Configs 
- optimizeEnable String
- page404Config Property Map
- pageCompress StringEnable 
- parameterFilter Property MapConfig 
- rangeEnable String
- referConfig Property Map
- scope String
- sourcePort Number
- sourceType String
- sources List<String>
- videoSeek 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) -> Domainfunc 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)resources:  _:    type: alicloud:cdn:Domain    get:      id: ${id}- 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.
- AuthConfig Pulumi.Ali Cloud. Cdn. Inputs. Domain Auth Config 
- BlockIps List<string>
- CacheConfigs List<Pulumi.Ali Cloud. Cdn. Inputs. Domain Cache Config> 
- CdnType string
- CertificateConfig Pulumi.Ali Cloud. Cdn. Inputs. Domain Certificate Config 
- DomainName string
- HttpHeader List<Pulumi.Configs Ali Cloud. Cdn. Inputs. Domain Http Header Config> 
- OptimizeEnable string
- Page404Config
Pulumi.Ali Cloud. Cdn. Inputs. Domain Page404Config 
- PageCompress stringEnable 
- ParameterFilter Pulumi.Config Ali Cloud. Cdn. Inputs. Domain Parameter Filter Config 
- RangeEnable string
- ReferConfig Pulumi.Ali Cloud. Cdn. Inputs. Domain Refer Config 
- Scope string
- SourcePort int
- SourceType string
- Sources List<string>
- VideoSeek stringEnable 
- AuthConfig DomainAuth Config Args 
- BlockIps []string
- CacheConfigs []DomainCache Config Args 
- CdnType string
- CertificateConfig DomainCertificate Config Args 
- DomainName string
- HttpHeader []DomainConfigs Http Header Config Args 
- OptimizeEnable string
- Page404Config
DomainPage404Config Args 
- PageCompress stringEnable 
- ParameterFilter DomainConfig Parameter Filter Config Args 
- RangeEnable string
- ReferConfig DomainRefer Config Args 
- Scope string
- SourcePort int
- SourceType string
- Sources []string
- VideoSeek stringEnable 
- authConfig DomainAuth Config 
- blockIps List<String>
- cacheConfigs List<DomainCache Config> 
- cdnType String
- certificateConfig DomainCertificate Config 
- domainName String
- httpHeader List<DomainConfigs Http Header Config> 
- optimizeEnable String
- page404Config
DomainPage404Config 
- pageCompress StringEnable 
- parameterFilter DomainConfig Parameter Filter Config 
- rangeEnable String
- referConfig DomainRefer Config 
- scope String
- sourcePort Integer
- sourceType String
- sources List<String>
- videoSeek StringEnable 
- authConfig DomainAuth Config 
- blockIps string[]
- cacheConfigs DomainCache Config[] 
- cdnType string
- certificateConfig DomainCertificate Config 
- domainName string
- httpHeader DomainConfigs Http Header Config[] 
- optimizeEnable string
- page404Config
DomainPage404Config 
- pageCompress stringEnable 
- parameterFilter DomainConfig Parameter Filter Config 
- rangeEnable string
- referConfig DomainRefer Config 
- scope string
- sourcePort number
- sourceType string
- sources string[]
- videoSeek 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 
- authConfig Property Map
- blockIps List<String>
- cacheConfigs List<Property Map>
- cdnType String
- certificateConfig Property Map
- domainName String
- httpHeader List<Property Map>Configs 
- optimizeEnable String
- page404Config Property Map
- pageCompress StringEnable 
- parameterFilter Property MapConfig 
- rangeEnable String
- referConfig Property Map
- scope String
- sourcePort Number
- sourceType String
- sources List<String>
- videoSeek StringEnable 
Supporting Types
DomainAuthConfig, DomainAuthConfigArgs      
- auth_type str
- master_key str
- slave_key str
- timeout int
DomainCacheConfig, DomainCacheConfigArgs      
- CacheContent string
- CacheType string
- Ttl int
- CacheId string
- Weight int
- CacheContent string
- CacheType string
- Ttl int
- CacheId string
- Weight int
- cacheContent String
- cacheType String
- ttl Integer
- cacheId String
- weight Integer
- cacheContent string
- cacheType string
- ttl number
- cacheId string
- weight number
- cache_content str
- cache_type str
- ttl int
- cache_id str
- weight int
- cacheContent String
- cacheType String
- ttl Number
- cacheId String
- weight Number
DomainCertificateConfig, DomainCertificateConfigArgs      
- PrivateKey string
- ServerCertificate string
- ServerCertificate stringStatus 
- PrivateKey string
- ServerCertificate string
- ServerCertificate stringStatus 
- privateKey String
- serverCertificate String
- serverCertificate StringStatus 
- privateKey string
- serverCertificate string
- serverCertificate stringStatus 
- privateKey String
- serverCertificate String
- serverCertificate StringStatus 
DomainHttpHeaderConfig, DomainHttpHeaderConfigArgs        
- HeaderKey string
- HeaderValue string
- HeaderId string
- HeaderKey string
- HeaderValue string
- HeaderId string
- headerKey String
- headerValue String
- headerId String
- headerKey string
- headerValue string
- headerId string
- header_key str
- header_value str
- header_id str
- headerKey String
- headerValue String
- headerId String
DomainPage404Config, DomainPage404ConfigArgs    
- CustomPage stringUrl 
- ErrorCode string
- PageType string
- CustomPage stringUrl 
- ErrorCode string
- PageType string
- customPage StringUrl 
- errorCode String
- pageType String
- customPage stringUrl 
- errorCode string
- pageType string
- custom_page_ strurl 
- error_code str
- page_type str
- customPage StringUrl 
- errorCode String
- pageType String
DomainParameterFilterConfig, DomainParameterFilterConfigArgs        
- Enable string
- HashKey List<string>Args 
- Enable string
- HashKey []stringArgs 
- enable String
- hashKey List<String>Args 
- enable string
- hashKey string[]Args 
- enable str
- hash_key_ Sequence[str]args 
- enable String
- hashKey List<String>Args 
DomainReferConfig, DomainReferConfigArgs      
- ReferLists List<string>
- AllowEmpty string
- ReferType string
- ReferLists []string
- AllowEmpty string
- ReferType string
- referLists List<String>
- allowEmpty String
- referType String
- referLists string[]
- allowEmpty string
- referType string
- refer_lists Sequence[str]
- allow_empty str
- refer_type str
- referLists List<String>
- allowEmpty String
- referType String
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the alicloudTerraform Provider.