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

Description

Sets the Amazon Lightsail resources that can access the specified Lightsail bucket.

Lightsail buckets currently support setting access for Lightsail instances in the same AWS Region.

Synopsis

Creating a Request

data SetResourceAccessForBucket Source #

See: newSetResourceAccessForBucket smart constructor.

Constructors

SetResourceAccessForBucket' 

Fields

  • resourceName :: Text

    The name of the Lightsail instance for which to set bucket access. The instance must be in a running or stopped state.

  • bucketName :: Text

    The name of the bucket for which to set access to another Lightsail resource.

  • access :: ResourceBucketAccess

    The access setting.

    The following access settings are available:

    • allow - Allows access to the bucket and its objects.
    • deny - Denies access to the bucket and its objects. Use this setting to remove access for a resource previously set to allow.

Instances

Instances details
Eq SetResourceAccessForBucket Source # 
Instance details

Defined in Amazonka.Lightsail.SetResourceAccessForBucket

Read SetResourceAccessForBucket Source # 
Instance details

Defined in Amazonka.Lightsail.SetResourceAccessForBucket

Show SetResourceAccessForBucket Source # 
Instance details

Defined in Amazonka.Lightsail.SetResourceAccessForBucket

Generic SetResourceAccessForBucket Source # 
Instance details

Defined in Amazonka.Lightsail.SetResourceAccessForBucket

Associated Types

type Rep SetResourceAccessForBucket :: Type -> Type #

NFData SetResourceAccessForBucket Source # 
Instance details

Defined in Amazonka.Lightsail.SetResourceAccessForBucket

Hashable SetResourceAccessForBucket Source # 
Instance details

Defined in Amazonka.Lightsail.SetResourceAccessForBucket

ToJSON SetResourceAccessForBucket Source # 
Instance details

Defined in Amazonka.Lightsail.SetResourceAccessForBucket

AWSRequest SetResourceAccessForBucket Source # 
Instance details

Defined in Amazonka.Lightsail.SetResourceAccessForBucket

ToHeaders SetResourceAccessForBucket Source # 
Instance details

Defined in Amazonka.Lightsail.SetResourceAccessForBucket

ToPath SetResourceAccessForBucket Source # 
Instance details

Defined in Amazonka.Lightsail.SetResourceAccessForBucket

ToQuery SetResourceAccessForBucket Source # 
Instance details

Defined in Amazonka.Lightsail.SetResourceAccessForBucket

type Rep SetResourceAccessForBucket Source # 
Instance details

Defined in Amazonka.Lightsail.SetResourceAccessForBucket

type Rep SetResourceAccessForBucket = D1 ('MetaData "SetResourceAccessForBucket" "Amazonka.Lightsail.SetResourceAccessForBucket" "libZSservicesZSamazonka-lightsailZSamazonka-lightsail" 'False) (C1 ('MetaCons "SetResourceAccessForBucket'" 'PrefixI 'True) (S1 ('MetaSel ('Just "resourceName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "bucketName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "access") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ResourceBucketAccess))))
type AWSResponse SetResourceAccessForBucket Source # 
Instance details

Defined in Amazonka.Lightsail.SetResourceAccessForBucket

newSetResourceAccessForBucket Source #

Create a value of SetResourceAccessForBucket 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:resourceName:SetResourceAccessForBucket', setResourceAccessForBucket_resourceName - The name of the Lightsail instance for which to set bucket access. The instance must be in a running or stopped state.

$sel:bucketName:SetResourceAccessForBucket', setResourceAccessForBucket_bucketName - The name of the bucket for which to set access to another Lightsail resource.

$sel:access:SetResourceAccessForBucket', setResourceAccessForBucket_access - The access setting.

The following access settings are available:

  • allow - Allows access to the bucket and its objects.
  • deny - Denies access to the bucket and its objects. Use this setting to remove access for a resource previously set to allow.

Request Lenses

setResourceAccessForBucket_resourceName :: Lens' SetResourceAccessForBucket Text Source #

The name of the Lightsail instance for which to set bucket access. The instance must be in a running or stopped state.

setResourceAccessForBucket_bucketName :: Lens' SetResourceAccessForBucket Text Source #

The name of the bucket for which to set access to another Lightsail resource.

setResourceAccessForBucket_access :: Lens' SetResourceAccessForBucket ResourceBucketAccess Source #

The access setting.

The following access settings are available:

  • allow - Allows access to the bucket and its objects.
  • deny - Denies access to the bucket and its objects. Use this setting to remove access for a resource previously set to allow.

Destructuring the Response

data SetResourceAccessForBucketResponse Source #

Constructors

SetResourceAccessForBucketResponse' 

Fields

  • 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 SetResourceAccessForBucketResponse Source # 
Instance details

Defined in Amazonka.Lightsail.SetResourceAccessForBucket

Read SetResourceAccessForBucketResponse Source # 
Instance details

Defined in Amazonka.Lightsail.SetResourceAccessForBucket

Show SetResourceAccessForBucketResponse Source # 
Instance details

Defined in Amazonka.Lightsail.SetResourceAccessForBucket

Generic SetResourceAccessForBucketResponse Source # 
Instance details

Defined in Amazonka.Lightsail.SetResourceAccessForBucket

Associated Types

type Rep SetResourceAccessForBucketResponse :: Type -> Type #

NFData SetResourceAccessForBucketResponse Source # 
Instance details

Defined in Amazonka.Lightsail.SetResourceAccessForBucket

type Rep SetResourceAccessForBucketResponse Source # 
Instance details

Defined in Amazonka.Lightsail.SetResourceAccessForBucket

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

newSetResourceAccessForBucketResponse Source #

Create a value of SetResourceAccessForBucketResponse 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:operations:SetResourceAccessForBucketResponse', setResourceAccessForBucketResponse_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:SetResourceAccessForBucketResponse', setResourceAccessForBucketResponse_httpStatus - The response's http status code.

Response Lenses

setResourceAccessForBucketResponse_operations :: Lens' SetResourceAccessForBucketResponse (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.