Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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
- data SetResourceAccessForBucket = SetResourceAccessForBucket' {}
- newSetResourceAccessForBucket :: Text -> Text -> ResourceBucketAccess -> SetResourceAccessForBucket
- setResourceAccessForBucket_resourceName :: Lens' SetResourceAccessForBucket Text
- setResourceAccessForBucket_bucketName :: Lens' SetResourceAccessForBucket Text
- setResourceAccessForBucket_access :: Lens' SetResourceAccessForBucket ResourceBucketAccess
- data SetResourceAccessForBucketResponse = SetResourceAccessForBucketResponse' {
- operations :: Maybe [Operation]
- httpStatus :: Int
- newSetResourceAccessForBucketResponse :: Int -> SetResourceAccessForBucketResponse
- setResourceAccessForBucketResponse_operations :: Lens' SetResourceAccessForBucketResponse (Maybe [Operation])
- setResourceAccessForBucketResponse_httpStatus :: Lens' SetResourceAccessForBucketResponse Int
Creating a Request
data SetResourceAccessForBucket Source #
See: newSetResourceAccessForBucket
smart constructor.
SetResourceAccessForBucket' | |
|
Instances
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 toallow
.
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 toallow
.
Destructuring the Response
data SetResourceAccessForBucketResponse Source #
See: newSetResourceAccessForBucketResponse
smart constructor.
SetResourceAccessForBucketResponse' | |
|
Instances
Eq SetResourceAccessForBucketResponse Source # | |
Read SetResourceAccessForBucketResponse Source # | |
Show SetResourceAccessForBucketResponse Source # | |
Generic SetResourceAccessForBucketResponse Source # | |
NFData SetResourceAccessForBucketResponse Source # | |
Defined in Amazonka.Lightsail.SetResourceAccessForBucket rnf :: SetResourceAccessForBucketResponse -> () # | |
type Rep SetResourceAccessForBucketResponse Source # | |
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.
setResourceAccessForBucketResponse_httpStatus :: Lens' SetResourceAccessForBucketResponse Int Source #
The response's http status code.