Queries custom domain names in Function Compute.
Syntax
{
"Type": "DATASOURCE::FC::CustomDomains",
"Properties": {
"Prefix": String,
"RefreshOptions": String
}
}
Properties
|
Property |
Type |
Required |
Editable |
Description |
Constraint |
|
Prefix |
String |
No |
Yes |
The prefix of custom domain names to return. |
The names must start with the value of Prefix. For example, if you set Prefix to a, only custom domain names that start with a are returned. |
|
RefreshOptions |
String |
No |
Yes |
The refresh policy for data source resources when the stack is updated. |
Valid values:
|
Return values (Fn::GetAtt)
-
CustomDomains: Details of the custom domain names.
-
DomainNames: The custom domain names.
|
Property |
Type |
Description |
Constraint |
|
DomainNames |
List |
The custom domain names. |
None. |
|
CustomDomains |
List |
Details of the custom domain names. |
None. |
|
DomainName |
String |
The custom domain name. |
None. |
|
AccountId |
String |
The account ID. |
None. |
|
Protocol |
String |
The protocol supported by the custom domain name. |
Valid values:
|
|
ApiVersion |
String |
The API version. |
None. |
|
CreatedTime |
String |
The creation time of the custom domain name. |
None. |
|
LastModifiedTime |
String |
The most recent modification time of the custom domain name. |
None. |
|
CertConfig |
Map |
The HTTPS certificate configurations. |
Example: |
|
RouteConfig |
Map |
The route configurations that map paths to functions when the function is invoked by using the custom domain name. |
Example: |
|
TlsConfig |
Map |
The TLS configurations. |
None. |
Examples
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"Prefix": {
"Type": "String",
"Description": "Qualified returned custom domain names must be prefixed with Prefix. For example, if the Prefix is \"a\", the returned custom domain names should be started with \"a\"."
}
},
"Resources": {
"CustomDomains": {
"Type": "DATASOURCE::FC::CustomDomains",
"Properties": {
"Prefix": {
"Ref": "Prefix"
}
}
}
},
"Outputs": {
"CustomDomains": {
"Description": "The list of custom_domain.",
"Value": {
"Fn::GetAtt": [
"CustomDomains",
"CustomDomains"
]
}
},
"DomainNames": {
"Description": "The list of custom_domain names.",
"Value": {
"Fn::GetAtt": [
"CustomDomains",
"DomainNames"
]
}
}
}
}ROSTemplateFormatVersion: '2015-09-01'
Parameters:
Prefix:
Type: String
Description: Qualified returned custom domain names must be prefixed with Prefix. For example, if the Prefix is "a", the returned custom domain names should be started with "a".
Resources:
CustomDomains:
Type: DATASOURCE::FC::CustomDomains
Properties:
Prefix:
Ref: Prefix
Outputs:
CustomDomains:
Description: The list of custom_domain.
Value:
Fn::GetAtt:
- CustomDomains
- CustomDomains
DomainNames:
Description: The list of custom_domain names.
Value:
Fn::GetAtt:
- CustomDomains
- DomainNames