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 |
Returns the logging status of a bucket and the permissions users have to view and modify that status. To use GET, you must be the bucket owner.
The following operations are related to GetBucketLogging
:
Synopsis
- data GetBucketLogging = GetBucketLogging' {}
- newGetBucketLogging :: BucketName -> GetBucketLogging
- getBucketLogging_expectedBucketOwner :: Lens' GetBucketLogging (Maybe Text)
- getBucketLogging_bucket :: Lens' GetBucketLogging BucketName
- data GetBucketLoggingResponse = GetBucketLoggingResponse' {}
- newGetBucketLoggingResponse :: Int -> GetBucketLoggingResponse
- getBucketLoggingResponse_loggingEnabled :: Lens' GetBucketLoggingResponse (Maybe LoggingEnabled)
- getBucketLoggingResponse_httpStatus :: Lens' GetBucketLoggingResponse Int
Creating a Request
data GetBucketLogging Source #
See: newGetBucketLogging
smart constructor.
GetBucketLogging' | |
|
Instances
Create a value of GetBucketLogging
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:expectedBucketOwner:GetBucketLogging'
, getBucketLogging_expectedBucketOwner
- The account ID of the expected bucket owner. If the bucket is owned by a
different account, the request will fail with an HTTP
403 (Access Denied)
error.
$sel:bucket:GetBucketLogging'
, getBucketLogging_bucket
- The bucket name for which to get the logging information.
Request Lenses
getBucketLogging_expectedBucketOwner :: Lens' GetBucketLogging (Maybe Text) Source #
The account ID of the expected bucket owner. If the bucket is owned by a
different account, the request will fail with an HTTP
403 (Access Denied)
error.
getBucketLogging_bucket :: Lens' GetBucketLogging BucketName Source #
The bucket name for which to get the logging information.
Destructuring the Response
data GetBucketLoggingResponse Source #
See: newGetBucketLoggingResponse
smart constructor.
GetBucketLoggingResponse' | |
|
Instances
newGetBucketLoggingResponse Source #
Create a value of GetBucketLoggingResponse
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:loggingEnabled:GetBucketLoggingResponse'
, getBucketLoggingResponse_loggingEnabled
- Undocumented member.
$sel:httpStatus:GetBucketLoggingResponse'
, getBucketLoggingResponse_httpStatus
- The response's http status code.
Response Lenses
getBucketLoggingResponse_loggingEnabled :: Lens' GetBucketLoggingResponse (Maybe LoggingEnabled) Source #
Undocumented member.
getBucketLoggingResponse_httpStatus :: Lens' GetBucketLoggingResponse Int Source #
The response's http status code.