libZSservicesZSamazonka-lightsailZSamazonka-lightsail
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Lightsail.CreateBucket

Description

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.

Synopsis

Creating a Request

data CreateBucket Source #

See: newCreateBucket smart constructor.

Constructors

CreateBucket' 

Fields

  • enableObjectVersioning :: Maybe Bool

    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.

  • tags :: Maybe [Tag]

    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.

  • bucketName :: Text

    The name for the bucket.

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

  • bundleId :: Text

    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.

Instances

Instances details
Eq CreateBucket Source # 
Instance details

Defined in Amazonka.Lightsail.CreateBucket

Read CreateBucket Source # 
Instance details

Defined in Amazonka.Lightsail.CreateBucket

Show CreateBucket Source # 
Instance details

Defined in Amazonka.Lightsail.CreateBucket

Generic CreateBucket Source # 
Instance details

Defined in Amazonka.Lightsail.CreateBucket

Associated Types

type Rep CreateBucket :: Type -> Type #

NFData CreateBucket Source # 
Instance details

Defined in Amazonka.Lightsail.CreateBucket

Methods

rnf :: CreateBucket -> () #

Hashable CreateBucket Source # 
Instance details

Defined in Amazonka.Lightsail.CreateBucket

ToJSON CreateBucket Source # 
Instance details

Defined in Amazonka.Lightsail.CreateBucket

AWSRequest CreateBucket Source # 
Instance details

Defined in Amazonka.Lightsail.CreateBucket

Associated Types

type AWSResponse CreateBucket #

ToHeaders CreateBucket Source # 
Instance details

Defined in Amazonka.Lightsail.CreateBucket

ToPath CreateBucket Source # 
Instance details

Defined in Amazonka.Lightsail.CreateBucket

ToQuery CreateBucket Source # 
Instance details

Defined in Amazonka.Lightsail.CreateBucket

type Rep CreateBucket Source # 
Instance details

Defined in Amazonka.Lightsail.CreateBucket

type Rep CreateBucket = D1 ('MetaData "CreateBucket" "Amazonka.Lightsail.CreateBucket" "libZSservicesZSamazonka-lightsailZSamazonka-lightsail" 'False) (C1 ('MetaCons "CreateBucket'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "enableObjectVersioning") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag]))) :*: (S1 ('MetaSel ('Just "bucketName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "bundleId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse CreateBucket Source # 
Instance details

Defined in Amazonka.Lightsail.CreateBucket

newCreateBucket Source #

Create a value of CreateBucket with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:enableObjectVersioning:CreateBucket', createBucket_enableObjectVersioning - 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.

$sel:tags:CreateBucket', createBucket_tags - 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.

$sel:bucketName:CreateBucket', createBucket_bucketName - The name for the bucket.

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

$sel:bundleId:CreateBucket', createBucket_bundleId - 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.

Request Lenses

createBucket_enableObjectVersioning :: Lens' CreateBucket (Maybe Bool) Source #

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.

createBucket_tags :: Lens' CreateBucket (Maybe [Tag]) Source #

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.

createBucket_bucketName :: Lens' CreateBucket Text Source #

The name for the bucket.

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

createBucket_bundleId :: Lens' CreateBucket Text Source #

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.

Destructuring the Response

data CreateBucketResponse Source #

See: newCreateBucketResponse smart constructor.

Constructors

CreateBucketResponse' 

Fields

  • bucket :: Maybe Bucket

    An object that describes the bucket that is created.

  • operations :: Maybe [Operation]

    An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq CreateBucketResponse Source # 
Instance details

Defined in Amazonka.Lightsail.CreateBucket

Read CreateBucketResponse Source # 
Instance details

Defined in Amazonka.Lightsail.CreateBucket

Show CreateBucketResponse Source # 
Instance details

Defined in Amazonka.Lightsail.CreateBucket

Generic CreateBucketResponse Source # 
Instance details

Defined in Amazonka.Lightsail.CreateBucket

Associated Types

type Rep CreateBucketResponse :: Type -> Type #

NFData CreateBucketResponse Source # 
Instance details

Defined in Amazonka.Lightsail.CreateBucket

Methods

rnf :: CreateBucketResponse -> () #

type Rep CreateBucketResponse Source # 
Instance details

Defined in Amazonka.Lightsail.CreateBucket

type Rep CreateBucketResponse = D1 ('MetaData "CreateBucketResponse" "Amazonka.Lightsail.CreateBucket" "libZSservicesZSamazonka-lightsailZSamazonka-lightsail" 'False) (C1 ('MetaCons "CreateBucketResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "bucket") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bucket)) :*: (S1 ('MetaSel ('Just "operations") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Operation])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newCreateBucketResponse Source #

Create a value of CreateBucketResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:bucket:CreateBucketResponse', createBucketResponse_bucket - An object that describes the bucket that is created.

$sel:operations:CreateBucketResponse', createBucketResponse_operations - An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

$sel:httpStatus:CreateBucketResponse', createBucketResponse_httpStatus - The response's http status code.

Response Lenses

createBucketResponse_bucket :: Lens' CreateBucketResponse (Maybe Bucket) Source #

An object that describes the bucket that is created.

createBucketResponse_operations :: Lens' CreateBucketResponse (Maybe [Operation]) Source #

An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.