Skip to content

/AWS1/CL_LSA=>CREATEBUCKET()

About CreateBucket

Creates an Amazon Lightsail bucket.

A bucket is a cloud storage resource available in the Lightsail object storage service. Use buckets to store objects such as data and its descriptive metadata. For more information about buckets, see Buckets in Amazon Lightsail in the Amazon Lightsail Developer Guide.

Method Signature

IMPORTING

Required arguments:

IV_BUCKETNAME TYPE /AWS1/LSABUCKETNAME /AWS1/LSABUCKETNAME

The name for the bucket.

For more information about bucket names, see Bucket naming rules in Amazon Lightsail in the Amazon Lightsail Developer Guide.

IV_BUNDLEID TYPE /AWS1/LSANONEMPTYSTRING /AWS1/LSANONEMPTYSTRING

The ID of the bundle to use for the bucket.

A bucket bundle specifies the monthly cost, storage space, and data transfer quota for a bucket.

Use the GetBucketBundles action to get a list of bundle IDs that you can specify.

Use the UpdateBucketBundle action to change the bundle after the bucket is created.

Optional arguments:

IT_TAGS TYPE /AWS1/CL_LSATAG=>TT_TAGLIST TT_TAGLIST

The tag keys and optional values to add to the bucket during creation.

Use the TagResource action to tag the bucket after it's created.

IV_ENABLEOBJECTVERSIONING TYPE /AWS1/LSABOOLEAN /AWS1/LSABOOLEAN

A Boolean value that indicates whether to enable versioning of objects in the bucket.

For more information about versioning, see Enabling and suspending object versioning in a bucket in Amazon Lightsail in the Amazon Lightsail Developer Guide.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_LSACREATEBUCKETRESULT /AWS1/CL_LSACREATEBUCKETRESULT