すべてのプロダクト
Search
ドキュメントセンター

Resource Orchestration Service:ALIYUN::PVTZ::Rule

最終更新日:Jan 16, 2025

ALIYUN::PVTZ::Rule は、転送ルールを追加するために使用されます。

構文

{
  "Type": "ALIYUN::PVTZ::Rule",
  "Properties": {
    "ForwardIp": List,
    "ZoneName": String,
    "Type": String,
    "EndpointId": String,
    "RuleName": String
  }
}

プロパティ

プロパティタイプ必須編集可能説明制約
ForwardIpListはいはい宛先外部サーバーの構成。詳細については、ForwardIp プロパティをご参照ください。
ZoneNameStringはいいいえドメインネームシステム(DNS)トラフィック転送が必要なドメイン名。なし。
TypeStringはいいいえ転送ルールのタイプ。値を OUTBOUND に設定します。これは、DNS トラフィックが外部 IP アドレスに転送されることを指定します。
EndpointIdStringはいいいえエンドポイントの ID。なし。
RuleNameStringはいはい転送ルール名。なし。

ForwardIp 構文

"ForwardIp": [
  {
    "Ip": String,
    "Port": Integer
  }
]

ForwardIp プロパティ

プロパティタイプ必須編集可能説明制約
IpStringはいはい宛先外部サーバーの IP アドレス。なし。
PortIntegerはいはい宛先外部サーバーのポート番号。なし。

戻り値

Fn::GetAtt

  • ForwardIp: 宛先外部サーバーの構成。
  • ZoneName: DNS トラフィック転送が必要なドメイン名。
  • Vpcs: 転送ルールに関連付けられている仮想プライベートクラウド(VPC)。
  • Type: 転送ルールのタイプ。
  • EndpointName: エンドポイントの名前。
  • EndpointId: エンドポイントの ID。
  • CreateTime: 転送ルールが作成された時刻。
  • RuleName: 転送ルール名。

  • YAML 形式

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      EndpointId:
        Type: String
        Description: The ID of the endpoint.
    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.
        Value:
          Fn::GetAtt:
            - ExtensionResource
            - ZoneName
      Vpcs:
        Description: The information about each virtual private cloud (VPC) that is associated with the forwarding rule.
        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.
        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
  • 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"
            ]
          }
        }
      }
    }