Nom du modèle
ACS-OSS-PutBucketVersioning
Description du modèle
Active la gestion des versions pour un bucket OSS spécifié.
Type de modèle
Automatisé
Propriétaire
Alibaba Cloud
Paramètres d'entrée
|**Paramètre**
|
**Description**
|
**Type**
|
**Obligatoire**
|
**Valeur par défaut**
|
**Limite**
| | --- | --- | --- | --- | --- | --- | |
bucketName
|
Nom du bucket Object Storage Service (OSS).
|
String
|
Oui
| | | |
regionId
|
ID de la région.
|
String
|
Non
|
{{ ACS::RegionId }}
| | |
OOSAssumeRole
|
Rôle RAM utilisé par le service CloudOps Orchestration Service (OOS).
|
String
|
Non
|
""
| |
Paramètres de sortie
Aucun
Stratégie d'autorisations requise pour exécuter le modèle
{
"Version": "1",
"Statement": [
{
"Action": [
"oss:PutBucketVersioning"
],
"Resource": "*",
"Effect": "Allow"
}
]
}
Références
Pour plus d'informations, consultez le fichier ACS-OSS-PutBucketVersioning.yml sur GitHub.
Contenu du modèle
FormatVersion: OOS-2019-06-01
Description:
en: Enable the versioning state of a bucket
name-en: ACS-OSS-PutBucketVersioning
categories:
- security
Parameters:
regionId:
Type: String
Label:
en: RegionId
AssociationProperty: RegionId
Default: '{{ ACS::RegionId }}'
bucketName:
Label:
en: BucketName
Type: String
OOSAssumeRole:
Label:
en: OOSAssumeRole
Type: String
Default: ''
RamRole: '{{ OOSAssumeRole }}'
Tasks:
- Name: putBucketVersioning
Action: ACS::ExecuteAPI
Description:
en: Enable the versioning state of a bucket
Properties:
Service: OSS
API: PutBucketVersioning
Method: PUT
URI: '?versioning'
Parameters:
RegionId: '{{ regionId }}'
BucketName: '{{ bucketName }}'
Body: <?xml version="1.0" encoding="UTF-8"?> <VersioningConfiguration> <Status>Enabled</Status></VersioningConfiguration>