SCP::ObjectStorage::Bucket
SCP::ObjectStorage::Bucket
SCP::ObjectStorage::Bucket
Description
A Bucket resource of the SCP Object Storage service.
Version
1.2.0
Syntax
To declare this entity in your Infrastructure Builder template, use the following syntax:
JSON
{
"Type" : "SCP::ObjectStorage::Bucket",
"Properties" : {
"Name" : "String",
"VersioningConfiguration" : "VersioningConfiguration",
"EncryptionConfiguration" : "EncryptionConfiguration",
"AccessControlConfiguration" : "AccessControlConfiguration"
}
}
YAML
Type: SCP::ObjectStorage::Bucket
Properties:
Name: String
VersioningConfiguration: VersioningConfiguration
EncryptionConfiguration: EncryptionConfiguration
AccessControlConfiguration: AccessControlConfiguration
Properties
Name
The name of the bucket. It must be 3 to 63 characters long and match the pattern ^[a-z0-9][a-z0-9-.]*[a-z0-9]$ (no IP address format).
| Attribute | Value |
|---|---|
| Required | Yes |
| Type | String |
| Pattern | ^(?!(^\d+\.\d+\.\d+\.\d+$))(?!.*\.\.)(?!.*\.-)(?!.*-\.)[a-z0-9][a-z0-9-.]{1,61}[a-z0-9]$ |
| Length constraints | 3–63 |
| Update requires | Replacement |
VersioningConfiguration
Object versioning. Maps to PUT /v1/buckets/{name}/versioning.
| Attribute | Value |
|---|---|
| Required | No |
| Type | VersioningConfiguration |
| Update requires | No interruption |
For more information, see VersioningConfiguration.
EncryptionConfiguration
Server-side encryption. Maps to PUT /v1/buckets/{name}/encryption.
| Attribute | Value |
|---|---|
| Required | No |
| Type | EncryptionConfiguration |
| Update requires | No interruption |
For more information, see EncryptionConfiguration.
AccessControlConfiguration
Bucket access control rule. Maps to PUT /v1/buckets/{name}/access-control-rule (asynchronous, 202).
| Attribute | Value |
|---|---|
| Required | No |
| Type | AccessControlConfiguration |
| Update requires | No interruption |
For more information, see AccessControlConfiguration.
Return Values
Ref
When you pass the logical ID of this resource to the Ref function, Ref returns the value of the Name.
Fn::GetAtt
| Attribute | Description |
|---|---|
| Name | The name of the bucket. It must be 3 to 63 characters long and match the pattern ^[a-z0-9][a-z0-9-.]*[a-z0-9]$ (no IP address format). |
| Id | The unique identifier of the bucket. It is equal to the bucket name. |
| Usage | The amount of storage used by the bucket, in bytes. |
| PublicUrl | Public endpoint URL of the bucket. Null when no active storage device exists. |
| PrivateUrl | Private endpoint URL of the bucket. Null when no active storage device exists. |