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 |
Gets the Object Lock configuration for a bucket. The rule specified in the Object Lock configuration will be applied by default to every new object placed in the specified bucket. For more information, see Locking Objects.
Synopsis
- data GetObjectLockConfiguration = GetObjectLockConfiguration' {}
- newGetObjectLockConfiguration :: BucketName -> GetObjectLockConfiguration
- getObjectLockConfiguration_expectedBucketOwner :: Lens' GetObjectLockConfiguration (Maybe Text)
- getObjectLockConfiguration_bucket :: Lens' GetObjectLockConfiguration BucketName
- data GetObjectLockConfigurationResponse = GetObjectLockConfigurationResponse' {}
- newGetObjectLockConfigurationResponse :: Int -> GetObjectLockConfigurationResponse
- getObjectLockConfigurationResponse_objectLockConfiguration :: Lens' GetObjectLockConfigurationResponse (Maybe ObjectLockConfiguration)
- getObjectLockConfigurationResponse_httpStatus :: Lens' GetObjectLockConfigurationResponse Int
Creating a Request
data GetObjectLockConfiguration Source #
See: newGetObjectLockConfiguration
smart constructor.
GetObjectLockConfiguration' | |
|
Instances
newGetObjectLockConfiguration Source #
Create a value of GetObjectLockConfiguration
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:GetObjectLockConfiguration'
, getObjectLockConfiguration_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:GetObjectLockConfiguration'
, getObjectLockConfiguration_bucket
- The bucket whose Object Lock configuration you want to retrieve.
When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this action with an access point through the Amazon Web Services SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using access points in the Amazon S3 User Guide.
Request Lenses
getObjectLockConfiguration_expectedBucketOwner :: Lens' GetObjectLockConfiguration (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.
getObjectLockConfiguration_bucket :: Lens' GetObjectLockConfiguration BucketName Source #
The bucket whose Object Lock configuration you want to retrieve.
When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this action with an access point through the Amazon Web Services SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using access points in the Amazon S3 User Guide.
Destructuring the Response
data GetObjectLockConfigurationResponse Source #
See: newGetObjectLockConfigurationResponse
smart constructor.
GetObjectLockConfigurationResponse' | |
|
Instances
Eq GetObjectLockConfigurationResponse Source # | |
Read GetObjectLockConfigurationResponse Source # | |
Show GetObjectLockConfigurationResponse Source # | |
Generic GetObjectLockConfigurationResponse Source # | |
NFData GetObjectLockConfigurationResponse Source # | |
Defined in Amazonka.S3.GetObjectLockConfiguration rnf :: GetObjectLockConfigurationResponse -> () # | |
type Rep GetObjectLockConfigurationResponse Source # | |
Defined in Amazonka.S3.GetObjectLockConfiguration type Rep GetObjectLockConfigurationResponse = D1 ('MetaData "GetObjectLockConfigurationResponse" "Amazonka.S3.GetObjectLockConfiguration" "libZSservicesZSamazonka-s3ZSamazonka-s3" 'False) (C1 ('MetaCons "GetObjectLockConfigurationResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "objectLockConfiguration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ObjectLockConfiguration)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newGetObjectLockConfigurationResponse Source #
Create a value of GetObjectLockConfigurationResponse
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:objectLockConfiguration:GetObjectLockConfigurationResponse'
, getObjectLockConfigurationResponse_objectLockConfiguration
- The specified bucket's Object Lock configuration.
$sel:httpStatus:GetObjectLockConfigurationResponse'
, getObjectLockConfigurationResponse_httpStatus
- The response's http status code.
Response Lenses
getObjectLockConfigurationResponse_objectLockConfiguration :: Lens' GetObjectLockConfigurationResponse (Maybe ObjectLockConfiguration) Source #
The specified bucket's Object Lock configuration.
getObjectLockConfigurationResponse_httpStatus :: Lens' GetObjectLockConfigurationResponse Int Source #
The response's http status code.