| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.S3.GetBucketLogging
Description
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.
Constructors
| GetBucketLogging' | |
Fields
| |
Instances
Arguments
| :: BucketName | |
| -> GetBucketLogging |
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 fails with the HTTP status code
403 Forbidden (access denied).
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 fails with the HTTP status code
403 Forbidden (access denied).
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.
Constructors
| GetBucketLoggingResponse' | |
Fields
| |
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:
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.