DATASOURCE::PVTZ::Rules is used to query forwarding rules.
Syntax
{
"Type": "DATASOURCE::PVTZ::Rules",
"Properties": {
"EndpointId": String
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
---|---|---|---|---|---|
EndpointId | String | No | Yes | The ID of the outbound endpoint. | None. |
Return values
Fn::GetAtt
- RuleIds: the IDs of the forwarding rules.
- Rules: details of the forwarding rules.
Property | Type | Description | Constraint |
---|---|---|---|
RuleIds | List | The IDs of the forwarding rules. | None. |
Rules | List | Details of the forwarding rules. | None. |
ForwardIp | List | Details of the destination IP address. | Sample value:
|
RuleId | String | The ID of the forwarding rule. | None. |
Vpcs | List | Details of associated virtual private clouds (VPCs). | Sample value:
|
EndpointName | String | The name of the endpoint. | None. |
EndpointId | String | The ID of the endpoint. | None. |
RuleName | String | The name of the forwarding rule. | None. |
Type | String | The type of the forwarding rule. | Set the value to OUTBOUND, which indicates that Domain Name System (DNS) traffic is forwarded to external IP addresses. |
CreateTime | String | The time when the forwarding rule was created. | None. |
ZoneName | String | The domain name that requires DNS traffic forwarding. | None. |
Examples
JSON
format{ "ROSTemplateFormatVersion": "2015-09-01", "Parameters": { "EndpointId": { "Type": "String", "Description": "EndpointId" } }, "Resources": { "ExtensionDataSource": { "Type": "DATASOURCE::PVTZ::Rules", "Properties": { "EndpointId": { "Ref": "EndpointId" } } } }, "Outputs": { "RuleIds": { "Description": "The list of rule IDs.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "RuleIds" ] } }, "Rules": { "Description": "The list of rules.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "Rules" ] } } } }