ALIYUN::SAG::ACL

更新时间:
复制 MD 格式

The ALIYUN::SAG::ACL resource type creates an access control list (ACL).

Syntax

{
  "Type": "ALIYUN::SAG::ACL",
  "Properties": {
    "Name": String
  }
}

Properties

Property Name

Type

Required

Update allowed

Description

Constraints

Name

String

Yes

Yes

The name of the access control.

The name must be 2 to 128 characters in length. It must start with a letter. It can contain digits, periods (.), underscores (_), and hyphens (-). The name cannot start with http:// or https://.

Return values

Fn::GetAtt

AclId: The ID of the access control list.

Examples

YAML format

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  Name:
    Type: String
    Description: |-
      The name of the access control.
      The name must be 2 to 128 characters in length. It must start with a letter. It can contain digits, periods (.), underscores (_), and hyphens (-). The name cannot start with http:// or https://.
Resources:
  ACL:
    Type: ALIYUN::SAG::ACL
    Properties:
      Name:
        Ref: Name
Outputs:
  AclId:
    Description: The ID of the access control.
    Value:
      Fn::GetAtt:
        - ACL
        - AclId

JSON format

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "Name": {
      "Type": "String",
      "Description": "The name of the access control. The name must be 2 to 128 characters in length. It must start with a letter. It can contain digits, periods (.), underscores (_), and hyphens (-). The name cannot start with http:// or https://."
    }
  },
  "Resources": {
    "ACL": {
      "Type": "ALIYUN::SAG::ACL",
      "Properties": {
        "Name": {
          "Ref": "Name"
        }
      }
    }
  },
  "Outputs": {
    "AclId": {
      "Description": "The ID of the access control.",
      "Value": {
        "Fn::GetAtt": [
          "ACL",
          "AclId"
        ]
      }
    }
  }
}