amazonka-lightsail-2.0: Amazon Lightsail SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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 Amazon Web Services 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
ToJSON 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

AWSRequest 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 #

Read SetResourceAccessForBucket Source # 
Instance details

Defined in Amazonka.Lightsail.SetResourceAccessForBucket

Show SetResourceAccessForBucket Source # 
Instance details

Defined in Amazonka.Lightsail.SetResourceAccessForBucket

NFData SetResourceAccessForBucket Source # 
Instance details

Defined in Amazonka.Lightsail.SetResourceAccessForBucket

Eq SetResourceAccessForBucket Source # 
Instance details

Defined in Amazonka.Lightsail.SetResourceAccessForBucket

Hashable SetResourceAccessForBucket Source # 
Instance details

Defined in Amazonka.Lightsail.SetResourceAccessForBucket

type AWSResponse 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" "amazonka-lightsail-2.0-77hvsZhtZFxFduYae8QaN0" '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))))

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:

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

Defined in Amazonka.Lightsail.SetResourceAccessForBucket

Associated Types

type Rep SetResourceAccessForBucketResponse :: Type -> Type #

Read SetResourceAccessForBucketResponse Source # 
Instance details

Defined in Amazonka.Lightsail.SetResourceAccessForBucket

Show SetResourceAccessForBucketResponse Source # 
Instance details

Defined in Amazonka.Lightsail.SetResourceAccessForBucket

NFData SetResourceAccessForBucketResponse Source # 
Instance details

Defined in Amazonka.Lightsail.SetResourceAccessForBucket

Eq 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" "amazonka-lightsail-2.0-77hvsZhtZFxFduYae8QaN0" '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.