ALIYUN::DDoSPro::Port は、Anti-DDoS Proxy インスタンスのポート フォワーディング ルールを作成するために使用されます。
構文
{
"Type": "ALIYUN::DDoSPro::Port",
"Properties": {
"BackendPort": String,
"InstanceId": String,
"RealServers": List,
"FrontendPort": String,
"FrontendProtocol": String
}
}プロパティ
プロパティ | タイプ | 必須 | 編集可能 | 説明 | 制約 |
FrontendProtocol | String | はい | いいえ | 転送プロトコルのタイプ。 | 有効な値:
|
InstanceId | String | はい | いいえ | ポート フォワーディング ルールが属する Anti-DDoS Proxy インスタンスの ID。 | なし。 |
RealServers | List | はい | いいえ | オリジン サーバーの IP アドレス。 | なし。 |
BackendPort | String | いいえ | いいえ | オリジン サーバーのポート。 | 有効な値: 0 から 65535。 |
FrontendPort | String | いいえ | いいえ | 転送ポート。 | 有効な値: 0 から 65535。 |
戻り値
Fn::GetAtt
FrontendPort: 転送ポート。
例
YAML フォーマット
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
BackendPort:
Type: String
Description:
en: 'The port of the origin server. Valid values: 0 to 65535.'
Required: false
InstanceId:
Type: String
Description:
ja: ポート フォワーディング ルールが属する Anti-DDoS Pro または Anti-DDoS Premium インスタンスの ID。
Required: true
RealServers:
AssociationPropertyMetadata:
Parameter:
Type: String
Description:
ja: オリジン サーバーの IP アドレス。
Required: true
AssociationProperty: List[Parameter]
Type: Json
Description:
ja: オリジン サーバーの IP アドレスで構成される配列。
Required: true
FrontendPort:
Type: String
Description:
ja: '転送ポート。有効な値: 0 から 65535。'
Required: false
FrontendProtocol:
Type: String
Description:
ja: |-
プロトコルのタイプ。有効な値:
tcp
udp
AllowedValues:
- tcp
- udp
Required: true
Resources:
ExtensionResource:
Type: ALIYUN::DDoSPro::Port
Properties:
BackendPort:
Ref: BackendPort
InstanceId:
Ref: InstanceId
RealServers:
Ref: RealServers
FrontendPort:
Ref: FrontendPort
FrontendProtocol:
Ref: FrontendProtocol
Outputs:
FrontendPort:
Description: 転送ポート。
Value:
Fn::GetAtt:
- ExtensionResource
- FrontendPort
JSON フォーマット
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"BackendPort": {
"Type": "String",
"Description": {
"ja": "オリジン サーバーのポート。有効な値: 0 から 65535。"
},
"Required": false
},
"InstanceId": {
"Type": "String",
"Description": {
"ja": "ポート フォワーディング ルールが属する Anti-DDoS Pro または Anti-DDoS Premium インスタンスの ID。"
},
"Required": true
},
"RealServers": {
"AssociationPropertyMetadata": {
"Parameter": {
"Type": "String",
"Description": {
"ja": "オリジン サーバーの IP アドレス。"
},
"Required": true
}
},
"AssociationProperty": "List[Parameter]",
"Type": "Json",
"Description": {
"ja": "オリジン サーバーの IP アドレスで構成される配列。"
},
"Required": true
},
"FrontendPort": {
"Type": "String",
"Description": {
"ja": "転送ポート。有効な値: 0 から 65535。"
},
"Required": false
},
"FrontendProtocol": {
"Type": "String",
"Description": {
"ja": "プロトコルのタイプ。有効な値: \ntcp\nudp"
},
"AllowedValues": [
"tcp",
"udp"
],
"Required": true
}
},
"Resources": {
"ExtensionResource": {
"Type": "ALIYUN::DDoSPro::Port",
"Properties": {
"BackendPort": {
"Ref": "BackendPort"
},
"InstanceId": {
"Ref": "InstanceId"
},
"RealServers": {
"Ref": "RealServers"
},
"FrontendPort": {
"Ref": "FrontendPort"
},
"FrontendProtocol": {
"Ref": "FrontendProtocol"
}
}
}
},
"Outputs": {
"FrontendPort": {
"Description": "転送ポート。",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"FrontendPort"
]
}
}
}
}