DATASOURCE::GA::Acl

DATASOURCE::GA::Acl类型用于查询单个访问控制策略组详情。

语法

{
  "Type": "DATASOURCE::GA::Acl",
  "Properties": {
    "AclId": String,
    "RefreshOptions": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

AclId

String

访问控制策略组ID。

RefreshOptions

String

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

有效值:

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

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

返回值

Fn::GetAtt

  • AclEntries:ACL中的条目。

  • ResourceGroupId:ACL绑定的资源组ID。

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

  • AddressIPVersion:访问控制策略组的IP版本。

  • Tags:ACL绑定的标签。

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

示例

  • YAML格式

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      AclId:
        Type: String
        Description:
          en: The ID of the ACL.
        Required: true
    Resources:
      ExtensionDataSource:
        Type: DATASOURCE::GA::Acl
        Properties:
          AclId:
            Ref: AclId
    Outputs:
      AclEntries:
        Description: The entries of the ACL.
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - AclEntries
      ResourceGroupId:
        Description: The name of the network ACL.
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - ResourceGroupId
      AclId:
        Description: The ID of the ACL.
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - AclId
      AddressIPVersion:
        Description: The ID of the network ACL.
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - AddressIPVersion
      Tags:
        Description: The tag of the ACL.
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - Tags
      AclName:
        Description: The ID of the GA instance.
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - AclName
    
  • JSON格式

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "AclId": {
          "Type": "String",
          "Description": {
            "en": "The ID of the ACL."
          },
          "Required": true
        }
      },
      "Resources": {
        "ExtensionDataSource": {
          "Type": "DATASOURCE::GA::Acl",
          "Properties": {
            "AclId": {
              "Ref": "AclId"
            }
          }
        }
      },
      "Outputs": {
        "AclEntries": {
          "Description": "The entries of the ACL.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "AclEntries"
            ]
          }
        },
        "ResourceGroupId": {
          "Description": "The name of the network ACL.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "ResourceGroupId"
            ]
          }
        },
        "AclId": {
          "Description": "The ID of the ACL.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "AclId"
            ]
          }
        },
        "AddressIPVersion": {
          "Description": "The ID of the network ACL.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "AddressIPVersion"
            ]
          }
        },
        "Tags": {
          "Description": "The tag of the ACL.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "Tags"
            ]
          }
        },
        "AclName": {
          "Description": "The ID of the GA instance.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "AclName"
            ]
          }
        }
      }
    }