ALIYUN::PVTZ::Rule は、転送ルールを追加するために使用されます。
構文
{
"Type": "ALIYUN::PVTZ::Rule",
"Properties": {
"ForwardIp": List,
"ZoneName": String,
"Type": String,
"EndpointId": String,
"RuleName": String
}
}プロパティ
| プロパティ | タイプ | 必須 | 編集可能 | 説明 | 制約 |
| ForwardIp | List | はい | はい | 宛先外部サーバーの構成。 | 詳細については、ForwardIp プロパティをご参照ください。 |
| ZoneName | String | はい | いいえ | ドメインネームシステム(DNS)トラフィック転送が必要なドメイン名。 | なし。 |
| Type | String | はい | いいえ | 転送ルールのタイプ。 | 値を OUTBOUND に設定します。これは、DNS トラフィックが外部 IP アドレスに転送されることを指定します。 |
| EndpointId | String | はい | いいえ | エンドポイントの ID。 | なし。 |
| RuleName | String | はい | はい | 転送ルール名。 | なし。 |
ForwardIp 構文
"ForwardIp": [
{
"Ip": String,
"Port": Integer
}
]ForwardIp プロパティ
| プロパティ | タイプ | 必須 | 編集可能 | 説明 | 制約 |
| Ip | String | はい | はい | 宛先外部サーバーの IP アドレス。 | なし。 |
| Port | Integer | はい | はい | 宛先外部サーバーのポート番号。 | なし。 |
戻り値
Fn::GetAtt
- ForwardIp: 宛先外部サーバーの構成。
- ZoneName: DNS トラフィック転送が必要なドメイン名。
- Vpcs: 転送ルールに関連付けられている仮想プライベートクラウド(VPC)。
- Type: 転送ルールのタイプ。
- EndpointName: エンドポイントの名前。
- EndpointId: エンドポイントの ID。
- CreateTime: 転送ルールが作成された時刻。
- RuleName: 転送ルール名。
例
JSON形式{ "ROSTemplateFormatVersion": "2015-09-01", "Parameters": { "EndpointId": { "Type": "String", "Description": "The ID of the endpoint." // エンドポイントのID。 } }, "Resources": { "ExtensionResource": { "Type": "ALIYUN::PVTZ::Rule", "Properties": { "ForwardIp": { "Ip": "172.16.1.1", "Port": "8080" }, "ZoneName": "example.com", "Type": "OUTBOUND", "EndpointId": { "Ref": "EndpointId" }, "RuleName": "TestRule" } } }, "Outputs": { "ForwardIp": { "Description": "The information about each destination external server.", // 各宛先外部サーバーの情報。 "Value": { "Fn::GetAtt": [ "ExtensionResource", "ForwardIp" ] } }, "ZoneName": { "Description": "The domain name that requires Domain Name System (DNS) traffic forwarding.", // ドメインネームシステム(DNS)トラフィック転送が必要なドメイン名。 "Value": { "Fn::GetAtt": [ "ExtensionResource", "ZoneName" ] } }, "Vpcs": { "Description": "The information about each virtual private cloud (VPC) that is associated with the forwarding rule.", // 転送ルールに関連付けられている各仮想プライベートクラウド(VPC)の情報。 "Value": { "Fn::GetAtt": [ "ExtensionResource", "Vpcs" ] } }, "Type": { "Description": "The type of the forwarding rule.", // 転送ルールのタイプ。 "Value": { "Fn::GetAtt": [ "ExtensionResource", "Type" ] } }, "EndpointName": { "Description": "The name of the endpoint.", // エンドポイントの名前。 "Value": { "Fn::GetAtt": [ "ExtensionResource", "EndpointName" ] } }, "EndpointId": { "Description": "The ID of the endpoint.", // エンドポイントのID。 "Value": { "Fn::GetAtt": [ "ExtensionResource", "EndpointId" ] } }, "CreateTime": { "Description": "The timestamp when the forwarding rule was created.", // 転送ルールが作成されたタイムスタンプ。 "Value": { "Fn::GetAtt": [ "ExtensionResource", "CreateTime" ] } }, "RuleName": { "Description": "The name of the forwarding rule.", // 転送ルール名。 "Value": { "Fn::GetAtt": [ "ExtensionResource", "RuleName" ] } } } }