ALIYUN::POLARDB::GlobalSecurityIPGroup は、グローバル IP ホワイトリストテンプレートを作成するために使用されます。
構文
{
"Type": "ALIYUN::POLARDB::GlobalSecurityIPGroup",
"Properties": {
"GlobalIgName": String,
"GIpList": List,
"ResourceGroupId": String
}
}プロパティ
プロパティ | 型 | 必須 | 編集可能 | 説明 | 制約 |
GlobalIgName | String | はい | いいえ | グローバル IP ホワイトリストテンプレートの名前。 | グローバル IP ホワイトリストテンプレートの名前は、次の要件を満たしている必要があります。
|
GIpList | List | はい | はい | グローバル IP ホワイトリストテンプレートのエントリ。 | グローバル IP ホワイトリストテンプレートには、最大 1,000 個の IP アドレスまたは CIDR ブロックを追加できます。 |
ResourceGroupId | String | いいえ | はい | リソースグループの ID。 | なし。 |
戻り値
Fn::GetAtt
GlobalSecurityGroupId: グローバル IP ホワイトリストテンプレートの ID。
例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
GlobalIgName:
Type: String
Description:
en: |-
The name of the IP whitelist template. The name must meet the following requirements:
The name can contain lowercase letters, digits, and underscores (_).
The name must start with a letter and end with a letter or digit.
The name must be 2 to 120 characters in length.
Required: true
AllowedPattern: ^[a-z][a-z0-9_]*[a-z0-9]$
MinLength: 2
MaxLength: 120
GIpList:
AssociationPropertyMetadata:
Parameter:
Type: String
Description:
en: The IP address in the whitelist template.
Required: false
AssociationProperty: List[Parameter]
Type: Json
Description:
en: |-
The IP addresses in the whitelist template.
You can create up to 1,000 IP addresses or CIDR blocks for all IP whitelists.
Required: true
MinLength: 1
MaxLength: 1000
Resources:
GlobalSecurityIPGroup:
Type: ALIYUN::POLARDB::GlobalSecurityIPGroup
Properties:
GlobalIgName:
Ref: GlobalIgName
GIpList:
Ref: GIpList
Outputs:
GlobalSecurityGroupId:
Description: The ID of the IP whitelist template.
Value:
Fn::GetAtt:
- GlobalSecurityIPGroup
- GlobalSecurityGroupId
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"GlobalIgName": {
"Type": "String",
"Description": {
"en": "The name of the IP whitelist template. The name must meet the following requirements:\nThe name can contain lowercase letters, digits, and underscores (_).\nThe name must start with a letter and end with a letter or digit.\nThe name must be 2 to 120 characters in length."
},
"Required": true,
"AllowedPattern": "^[a-z][a-z0-9_]*[a-z0-9]$",
"MinLength": 2,
"MaxLength": 120
},
"GIpList": {
"AssociationPropertyMetadata": {
"Parameter": {
"Type": "String",
"Description": {
"en": "The IP address in the whitelist template."
},
"Required": false
}
},
"AssociationProperty": "List[Parameter]",
"Type": "Json",
"Description": {
"en": "The IP addresses in the whitelist template.\nYou can create up to 1,000 IP addresses or CIDR blocks for all IP whitelists."
},
"Required": true,
"MinLength": 1,
"MaxLength": 1000
}
},
"Resources": {
"GlobalSecurityIPGroup": {
"Type": "ALIYUN::POLARDB::GlobalSecurityIPGroup",
"Properties": {
"GlobalIgName": {
"Ref": "GlobalIgName"
},
"GIpList": {
"Ref": "GIpList"
}
}
}
},
"Outputs": {
"GlobalSecurityGroupId": {
"Description": "The ID of the IP whitelist template.",
"Value": {
"Fn::GetAtt": [
"GlobalSecurityIPGroup",
"GlobalSecurityGroupId"
]
}
}
}
}