O tipo de recurso ALIYUN::CLOUDFW::VpcFirewallControlPolicy adiciona políticas de controle de acesso a grupos de políticas de firewall VPC especificados.
Sintaxe
{
"Type": "ALIYUN::CLOUDFW::VpcFirewallControlPolicy",
"Properties": {
"Destination": String,
"ApplicationName": String,
"Description": String,
"SourceType": String,
"DestPort": String,
"AclAction": String,
"Lang": String,
"DestinationType": String,
"VpcFirewallId": String,
"Source": String,
"DestPortType": String,
"Proto": String,
"RegionId": String,
"NewOrder": String,
"DestPortGroup": String,
"Release": Boolean,
"RepeatType": String,
"StartTime": Integer,
"DomainResolveType": String,
"RepeatEndTime": String,
"RepeatDays": List,
"EndTime": Integer,
"RepeatStartTime": String,
"ApplicationNameList": List,
"MemberUid": String
}
}
Propriedades
Nome da propriedade | Tipo | Obrigatório | Atualizável | Descrição | Restrições |
AclAction | String | Sim | Sim | Ação executada pelo Cloud Firewall no tráfego de uma política de controle de acesso de firewall VPC. | Valores válidos:
|
ApplicationName | String | Não | Sim | Tipo de aplicativo compatível com a política de controle de acesso do firewall VPC. | Valores válidos:
|
Description | String | Sim | Sim | Descrição da política de controle de acesso do firewall VPC. | Nenhuma |
Destination | String | Sim | Sim | Endereço de destino do tráfego na política de controle de acesso do firewall VPC. | Valores válidos:
|
DestinationType | String | Sim | Sim | Tipo de endereço de destino do tráfego na política de controle de acesso do firewall VPC. | Valores válidos:
|
NewOrder | String | Sim | Não | Prioridade da política de controle de acesso do firewall VPC. | Os valores de prioridade começam em 1 e aumentam sequencialmente. Um valor menor indica maior prioridade. O valor 1 representa a prioridade mais alta. Nota -1 indica a prioridade mais baixa. |
Proto | String | Sim | Não | Tipo de protocolo de segurança do tráfego na política de controle de acesso do firewall VPC. | Valores válidos:
|
Source | String | Sim | Sim | Endereço de origem na política de controle de acesso do firewall VPC. | Valores válidos:
|
SourceType | String | Sim | Sim | Tipo de endereço de origem na política de controle de acesso do firewall VPC. | Valores válidos:
|
VpcFirewallId | String | Sim | Não | ID do grupo de políticas de controle de acesso do firewall VPC. | Valores válidos:
Chame a operação Listar todos os grupos de políticas de controle de acesso para firewalls VPC para obter o ID do grupo de políticas da política de controle de acesso do firewall VPC. |
DestPort | String | Não | Sim | Porta de destino do tráfego na política de controle de acesso do firewall VPC. | Defina este parâmetro se DestPortType for port. |
DestPortGroup | String | Não | Sim | Nome do catálogo de endereços de portas de destino do tráfego na política de controle de acesso do firewall VPC. | Especifique este parâmetro se DestPortType for group. |
DestPortType | String | Não | Sim | Tipo de porta de destino do tráfego na política de controle de acesso do firewall VPC. | Valores válidos:
|
Lang | String | Não | Sim | Idioma das solicitações e respostas. | Valores válidos:
|
RegionId | String | Não | Não | ID da região. | Valores válidos:
|
Release | Boolean | Não | Não | Status de ativação da política de controle de acesso. | A política é ativada por padrão após a criação. Valores válidos:
|
RepeatType | String | Não | Não | Tipo de repetição do período de validade da política de controle de acesso. | Valores válidos:
|
StartTime | Integer | Não | Não | Hora de início do período de validade da política de controle de acesso. | Use o formato de timestamp UNIX em segundos. A hora deve ser exata ou meia-hora, e pelo menos 30 minutos antes da hora de término. Nota Se RepeatType for Permanent, StartTime fica vazio. Se RepeatType for None, Daily, Weekly ou Monthly, StartTime deve ter um valor. Defina a hora de início. |
RepeatEndTime | String | Não | Não | Hora final de repetição do período de validade da política de controle de acesso. | Exemplo: 23:30. A hora deve ser exata ou meia-hora, e pelo menos 30 minutos depois da hora inicial de repetição. Nota Se RepeatType for Permanent ou None, RepeatEndTime fica vazio. Se RepeatType for Daily, Weekly ou Monthly, RepeatEndTime deve ter um valor. Defina a hora final de repetição. |
RepeatDays | List | Não | Não | Coleção de dias de repetição do período de validade da política de controle de acesso. |
Observação Se RepeatType for Weekly, RepeatDays não pode conter valores duplicados.
Observação Se RepeatType for Monthly, RepeatDays não pode conter valores duplicados. |
EndTime | Integer | Não | Não | Hora de término do período de validade da política de controle de acesso. | Use o formato de timestamp UNIX em segundos. A hora deve ser exata ou meia-hora, e pelo menos 30 minutos depois da hora de início. Nota Se RepeatType for Permanent, EndTime fica vazio. Se RepeatType for None, Daily, Weekly ou Monthly, EndTime deve ter um valor. Defina a hora de término. |
RepeatStartTime | String | Não | Não | Hora inicial de repetição do período de validade da política de controle de acesso. | Exemplo: 08:00. A hora deve ser exata ou meia-hora, e pelo menos 30 minutos antes da hora final de repetição. Nota Se RepeatType for Permanent ou None, RepeatStartTime fica vazio. Se RepeatType for Daily, Weekly ou Monthly, RepeatStartTime deve ter um valor. Defina a hora inicial de repetição. |
DomainResolveType | String | Não | Não | Método de resolução de nomes de domínio da política de controle de acesso. | Valores válidos:
|
ApplicationNameList | List | Não | Não | Nome do aplicativo. | Nenhuma |
MemberUid | String | Não | Não | UID da conta membro do Cloud Firewall. | Nenhuma |
Valores de retorno
Fn::GetAtt
AclUuid: O ID exclusivo da política de controle de acesso.
Exemplo
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
AclAction:
AllowedValues:
- accept
- drop
- log
Description: 'The action that Cloud Firewall performs on the traffic. Valid values:
accept: allows the traffic.
drop: denies the traffic.
log: monitors the traffic.'
Type: String
ApplicationName:
AllowedValues:
- ANY
- FTP
- HTTP
- HTTPS
- MySQL
- SMTP
- SMTPS
- RDP
- VNC
- SSH
- Redis
- MQTT
- MongoDB
- Memcache
- SSL
Description: "The application type that the access control policy supports.\n\
Valid values: \nANY (indicates that all application types are supported) \n\
FTP \nHTTP \nHTTPS \nMySQL \nSMTP \nSMTPS \nRDP \nVNC \nSSH \nRedis \nMQTT \n\
MongoDB \nMemcache \nSSL"
Type: String
Description:
Description: The description of the access control policy.
Type: String
DestPort:
Description: 'The destination port in the access control policy.
Note This parameter must be specified if the DestPortType parameter is set to
port.'
Type: String
DestPortGroup:
Description: 'The address book of destination ports in the access control policy.
Note This parameter must be specified if the DestPortType parameter is set to
group.'
Type: String
DestPortType:
AllowedValues:
- group
- port
Description: 'The type of the destination port in the access control policy. Valid
values:
port: port
group: address book'
Type: String
Destination:
Description: 'The destination address in the access control policy.
Set this parameter in the following way:
If the DestinationType parameter is set to net, set the value to a Classless
Inter-Domain Routing (CIDR) block.
Example: 10.2.3.0/24.
If the DestinationType parameter is set to group, set the value to the name
of an address book.
Example: db_group.
If the DestinationType parameter is set to domain, set the value to a domain
name.
Example: *.aliyuncs.com.'
Type: String
DestinationType:
AllowedValues:
- domain
- group
- net
Description: 'The type of the destination address in the access control policy.
Valid values:
net: CIDR block
group: address book
domain: domain name'
Type: String
Lang:
AllowedValues:
- en
- zh
Description: 'The natural language of the request and response. Valid values:
zh: Chinese
en: English'
Type: String
NewOrder:
Description: 'The priority of the access control policy.
The priority value starts from 1. A smaller priority value indicates a higher
priority.
Note The value of -1 indicates the lowest priority.'
Type: String
Proto:
AllowedValues:
- ANY
- TCP
- UDP
- ICMP
Description: The type of the security protocol in the access control policy.
Type: String
RegionId:
AllowedValues:
- cn-hangzhou
- ap-southeast-1
Default: cn-hangzhou
Description: Region ID. Default to cn-hangzhou.
Type: String
Source:
Description: 'The source address in the access control policy.
If the SourceType parameter is set to net, set the value to a CIDR block. Example:
10.2.3.0/24.
If the SourceType parameter is set to group, set the value to the name of an
address book. Example: db_group.'
Type: String
SourceType:
AllowedValues:
- group
- net
Description: 'The type of the source address in the access control policy. Valid
values:
net: CIDR block
group: address book'
Type: String
VpcFirewallId:
Description: 'The ID of the policy group to which you want to add the access control
policy.
If the VPC firewall is used to protect CEN, set the value to the ID of the CEN
instance
that the VPC firewall protects. Example: cen-ervw5jbw1234*****.
If the VPC firewall is used to protect Express Connect, set the value to the
ID of
the VPC firewall instance. Example: vfw-a42bbb748c91234*****.
Note You can call the DescribeVpcFirewallAclGroupList operation to query the
ID of the policy group.'
Type: String
Resources:
VpcFirewallControlPolicy:
Type: ALIYUN::CLOUDFW::VpcFirewallControlPolicy
Properties:
AclAction:
Ref: AclAction
ApplicationName:
Ref: ApplicationName
Description:
Ref: Description
DestPort:
Ref: DestPort
DestPortGroup:
Ref: DestPortGroup
DestPortType:
Ref: DestPortType
Destination:
Ref: Destination
DestinationType:
Ref: DestinationType
Lang:
Ref: Lang
NewOrder:
Ref: NewOrder
Proto:
Ref: Proto
RegionId:
Ref: RegionId
Source:
Ref: Source
SourceType:
Ref: SourceType
VpcFirewallId:
Ref: VpcFirewallId
Outputs:
AclUuid:
Description: The unique ID of the access control policy.
Value:
Fn::GetAtt:
- VpcFirewallControlPolicy
- AclUuid
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"Destination": {
"Type": "String",
"Description": "The destination address in the access control policy.\nSet this parameter in the following way:\nIf the DestinationType parameter is set to net, set the value to a Classless Inter-Domain Routing (CIDR) block.\nExample: 10.2.3.0/24.\nIf the DestinationType parameter is set to group, set the value to the name of an address book.\nExample: db_group.\nIf the DestinationType parameter is set to domain, set the value to a domain name.\nExample: *.aliyuncs.com."
},
"ApplicationName": {
"Type": "String",
"Description": "The application type that the access control policy supports.\nValid values: \nANY (indicates that all application types are supported) \nFTP \nHTTP \nHTTPS \nMySQL \nSMTP \nSMTPS \nRDP \nVNC \nSSH \nRedis \nMQTT \nMongoDB \nMemcache \nSSL",
"AllowedValues": [
"ANY",
"FTP",
"HTTP",
"HTTPS",
"MySQL",
"SMTP",
"SMTPS",
"RDP",
"VNC",
"SSH",
"Redis",
"MQTT",
"MongoDB",
"Memcache",
"SSL"
]
},
"Description": {
"Type": "String",
"Description": "The description of the access control policy."
},
"SourceType": {
"Type": "String",
"Description": "The type of the source address in the access control policy. Valid values:\nnet: CIDR block\ngroup: address book",
"AllowedValues": [
"group",
"net"
]
},
"DestPort": {
"Type": "String",
"Description": "The destination port in the access control policy.\nNote This parameter must be specified if the DestPortType parameter is set to port."
},
"AclAction": {
"Type": "String",
"Description": "The action that Cloud Firewall performs on the traffic. Valid values:\naccept: allows the traffic.\ndrop: denies the traffic.\nlog: monitors the traffic.",
"AllowedValues": [
"accept",
"drop",
"log"
]
},
"Lang": {
"Type": "String",
"Description": "The natural language of the request and response. Valid values:\nzh: Chinese\nen: English",
"AllowedValues": [
"en",
"zh"
]
},
"DestinationType": {
"Type": "String",
"Description": "The type of the destination address in the access control policy. Valid values:\nnet: CIDR block\ngroup: address book\ndomain: domain name",
"AllowedValues": [
"domain",
"group",
"net"
]
},
"VpcFirewallId": {
"Type": "String",
"Description": "The ID of the policy group to which you want to add the access control policy.\nIf the VPC firewall is used to protect CEN, set the value to the ID of the CEN instance\nthat the VPC firewall protects. Example: cen-ervw5jbw1234*****.\nIf the VPC firewall is used to protect Express Connect, set the value to the ID of\nthe VPC firewall instance. Example: vfw-a42bbb748c91234*****.\nNote You can call the DescribeVpcFirewallAclGroupList operation to query the ID of the policy group."
},
"Source": {
"Type": "String",
"Description": "The source address in the access control policy.\nIf the SourceType parameter is set to net, set the value to a CIDR block. Example: 10.2.3.0/24.\nIf the SourceType parameter is set to group, set the value to the name of an address book. Example: db_group."
},
"DestPortType": {
"Type": "String",
"Description": "The type of the destination port in the access control policy. Valid values:\nport: port\ngroup: address book",
"AllowedValues": [
"group",
"port"
]
},
"Proto": {
"Type": "String",
"Description": "The type of the security protocol in the access control policy.",
"AllowedValues": [
"ANY",
"TCP",
"UDP",
"ICMP"
]
},
"RegionId": {
"Type": "String",
"Description": "Region ID. Default to cn-hangzhou.",
"AllowedValues": [
"cn-hangzhou",
"ap-southeast-1"
],
"Default": "cn-hangzhou"
},
"NewOrder": {
"Type": "String",
"Description": "The priority of the access control policy.\nThe priority value starts from 1. A smaller priority value indicates a higher priority.\nNote The value of -1 indicates the lowest priority."
},
"DestPortGroup": {
"Type": "String",
"Description": "The address book of destination ports in the access control policy.\nNote This parameter must be specified if the DestPortType parameter is set to group."
}
},
"Resources": {
"VpcFirewallControlPolicy": {
"Type": "ALIYUN::CLOUDFW::VpcFirewallControlPolicy",
"Properties": {
"Destination": {
"Ref": "Destination"
},
"ApplicationName": {
"Ref": "ApplicationName"
},
"Description": {
"Ref": "Description"
},
"SourceType": {
"Ref": "SourceType"
},
"DestPort": {
"Ref": "DestPort"
},
"AclAction": {
"Ref": "AclAction"
},
"Lang": {
"Ref": "Lang"
},
"DestinationType": {
"Ref": "DestinationType"
},
"VpcFirewallId": {
"Ref": "VpcFirewallId"
},
"Source": {
"Ref": "Source"
},
"DestPortType": {
"Ref": "DestPortType"
},
"Proto": {
"Ref": "Proto"
},
"RegionId": {
"Ref": "RegionId"
},
"NewOrder": {
"Ref": "NewOrder"
},
"DestPortGroup": {
"Ref": "DestPortGroup"
}
}
}
},
"Outputs": {
"AclUuid": {
"Description": "The unique ID of the access control policy.",
"Value": {
"Fn::GetAtt": [
"VpcFirewallControlPolicy",
"AclUuid"
]
}
}
}
}