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).

AttributeValue
RequiredYes
TypeString
Pattern^(?!(^\d+\.\d+\.\d+\.\d+$))(?!.*\.\.)(?!.*\.-)(?!.*-\.)[a-z0-9][a-z0-9-.]{1,61}[a-z0-9]$
Length constraints3–63
Update requiresReplacement

VersioningConfiguration

Object versioning. Maps to PUT /v1/buckets/{name}/versioning.

AttributeValue
RequiredNo
TypeVersioningConfiguration
Update requiresNo interruption

For more information, see VersioningConfiguration.

EncryptionConfiguration

Server-side encryption. Maps to PUT /v1/buckets/{name}/encryption.

AttributeValue
RequiredNo
TypeEncryptionConfiguration
Update requiresNo interruption

For more information, see EncryptionConfiguration.

AccessControlConfiguration

Bucket access control rule. Maps to PUT /v1/buckets/{name}/access-control-rule (asynchronous, 202).

AttributeValue
RequiredNo
TypeAccessControlConfiguration
Update requiresNo 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

AttributeDescription
NameThe 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).
IdThe unique identifier of the bucket. It is equal to the bucket name.
UsageThe amount of storage used by the bucket, in bytes.
PublicUrlPublic endpoint URL of the bucket. Null when no active storage device exists.
PrivateUrlPrivate endpoint URL of the bucket. Null when no active storage device exists.