テンプレート名
ACS-OSS-PutBucketAcl
テンプレートの説明
バケットのアクセス制御リスト (ACL) を設定または変更します。
テンプレートの種類
自動化
所有者
Alibaba Cloud
入力パラメーター
パラメーター | 説明 | データ型 | 必須 | デフォルト値 | 制限 |
bucketName | Object Storage Service (OSS) バケットの名前。 | String | はい | ||
permissionName | ACL の名前。 | String | はい | ||
regionId | リージョン ID。 | String | いいえ | {{ ACS::RegionId }} | |
OOSAssumeRole | CloudOps Orchestration Service (OOS) によって想定される RAM ロール。 | String | いいえ | " " |
出力パラメーター
パラメーター | 説明 | データ型 |
permissionInfo | Json |
テンプレートを実行するために必要な権限ポリシー
{
"Version": "1",
"Statement": [
{
"Action": [
"oss:PutBucketACL"
],
"Resource": "*",
"Effect": "Allow"
}
]
}
参照
テンプレートの内容
FormatVersion: OOS-2019-06-01
Description:
en: Set or modify the access permission (ACL) of the bucket
name-en: ACS-OSS-PutBucketAcl
categories:
- security
Parameters:
regionId:
Type: String
Label:
en: RegionId
AssociationProperty: RegionId
Default: '{{ ACS::RegionId }}'
bucketName:
Label:
en: BucketName
Type: String
permissionName:
Label:
en: PermissionName
Type: String
AllowedValues:
- public-read-write
- public-read
- private
OOSAssumeRole:
Label:
en: OOSAssumeRole
Type: String
Default: ''
RamRole: '{{ OOSAssumeRole }}'
Tasks:
- Name: putBucketAcl
Action: 'ACS::ExecuteAPI'
Description:
en: Set or modify the access permission (ACL) of the bucket
Properties:
Service: OSS
API: PutBucketACL
Method: PUT
URI: '?acl'
Headers:
x-oss-acl: '{{ permissionName }}'
Parameters:
BucketName: '{{ bucketName }}'
RegionId: '{{ regionId }}'
Outputs:
permissionInfo:
Type: Json
Value:
bucketName: '{{ bucketName }}'
permissionName: '{{ permissionName }}'