DATASOURCE::SLB::AccessControl

DATASOURCE::SLB::AccessControl类型用于查询访问控制策略组的配置。

语法

{
  "Type": "DATASOURCE::SLB::AccessControl",
  "Properties": {
    "AclId": String,
    "RefreshOptions": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

AclId

String

要查询的访问控制策略组 ID。

RefreshOptions

String

当资源栈更新时,数据源资源的刷新策略。

有效值:

  • Never(默认值):更新堆栈时,从不刷新数据源资源。

  • Always:更新堆栈时,始终刷新数据源资源。

返回值

Fn::GetAtt

  • AclEntries:访问控制策略组的信息列表。

  • AddressIpVersion:关联的实例的 IP 类型。

  • ResourceGroupId:企业资源组 ID。

  • AclId:访问控制策略组 ID。

  • RelatedListeners:该访问控制策略组已绑定的监听列表。

  • Tags:ACL 的标签集合。

  • AclName:访问控制策略组名称。

示例

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  AclId:
    Type: String
    Description:
      en: The ID of the ACL.
    Required: true
Resources:
  ExtensionDataSource:
    Type: DATASOURCE::SLB::AccessControl
    Properties:
      AclId:
        Ref: AclId
Outputs:
  AclEntries:
    Description: The IP entries that you want to remove from the network ACL.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - AclEntries
  AddressIpVersion:
    Description: 'The IP version. Valid values: ipv4 and ipv6.'
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - AddressIpVersion
  ResourceGroupId:
    Description: The resource group ID.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - ResourceGroupId
  AclId:
    Description: The ID of the ACL.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - AclId
  RelatedListeners:
    Description: The listeners that are associated with the network ACL.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - RelatedListeners
  Tags:
    Description: The tags of the resource.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - Tags
  AclName:
    Description: The ACL name.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - AclName
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "AclId": {
      "Type": "String",
      "Description": {
        "en": "The ID of the ACL."
      },
      "Required": true
    }
  },
  "Resources": {
    "ExtensionDataSource": {
      "Type": "DATASOURCE::SLB::AccessControl",
      "Properties": {
        "AclId": {
          "Ref": "AclId"
        }
      }
    }
  },
  "Outputs": {
    "AclEntries": {
      "Description": "The IP entries that you want to remove from the network ACL.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "AclEntries"
        ]
      }
    },
    "AddressIpVersion": {
      "Description": "The IP version. Valid values: ipv4 and ipv6.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "AddressIpVersion"
        ]
      }
    },
    "ResourceGroupId": {
      "Description": "The resource group ID.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "ResourceGroupId"
        ]
      }
    },
    "AclId": {
      "Description": "The ID of the ACL.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "AclId"
        ]
      }
    },
    "RelatedListeners": {
      "Description": "The listeners that are associated with the network ACL.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "RelatedListeners"
        ]
      }
    },
    "Tags": {
      "Description": "The tags of the resource.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Tags"
        ]
      }
    },
    "AclName": {
      "Description": "The ACL name.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "AclName"
        ]
      }
    }
  }
}