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 |
Creates a new origin access control in CloudFront. After you create an origin access control, you can add it to an origin in a CloudFront distribution so that CloudFront sends authenticated (signed) requests to the origin.
For an Amazon S3 origin, this makes it possible to block public access to the Amazon S3 bucket so that viewers (users) can access the content in the bucket only through CloudFront.
For more information about using a CloudFront origin access control, see Restricting access to an Amazon S3 origin in the Amazon CloudFront Developer Guide.
Synopsis
- data CreateOriginAccessControl = CreateOriginAccessControl' {}
- newCreateOriginAccessControl :: OriginAccessControlConfig -> CreateOriginAccessControl
- createOriginAccessControl_originAccessControlConfig :: Lens' CreateOriginAccessControl OriginAccessControlConfig
- data CreateOriginAccessControlResponse = CreateOriginAccessControlResponse' {}
- newCreateOriginAccessControlResponse :: Int -> CreateOriginAccessControlResponse
- createOriginAccessControlResponse_eTag :: Lens' CreateOriginAccessControlResponse (Maybe Text)
- createOriginAccessControlResponse_location :: Lens' CreateOriginAccessControlResponse (Maybe Text)
- createOriginAccessControlResponse_originAccessControl :: Lens' CreateOriginAccessControlResponse (Maybe OriginAccessControl)
- createOriginAccessControlResponse_httpStatus :: Lens' CreateOriginAccessControlResponse Int
Creating a Request
data CreateOriginAccessControl Source #
See: newCreateOriginAccessControl
smart constructor.
CreateOriginAccessControl' | |
|
Instances
newCreateOriginAccessControl Source #
Create a value of CreateOriginAccessControl
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:
CreateOriginAccessControl
, createOriginAccessControl_originAccessControlConfig
- Contains the origin access control.
Request Lenses
createOriginAccessControl_originAccessControlConfig :: Lens' CreateOriginAccessControl OriginAccessControlConfig Source #
Contains the origin access control.
Destructuring the Response
data CreateOriginAccessControlResponse Source #
See: newCreateOriginAccessControlResponse
smart constructor.
CreateOriginAccessControlResponse' | |
|
Instances
newCreateOriginAccessControlResponse Source #
Create a value of CreateOriginAccessControlResponse
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:eTag:CreateOriginAccessControlResponse'
, createOriginAccessControlResponse_eTag
- The version identifier for the current version of the origin access
control.
$sel:location:CreateOriginAccessControlResponse'
, createOriginAccessControlResponse_location
- The URL of the origin access control.
$sel:originAccessControl:CreateOriginAccessControlResponse'
, createOriginAccessControlResponse_originAccessControl
- Contains an origin access control.
$sel:httpStatus:CreateOriginAccessControlResponse'
, createOriginAccessControlResponse_httpStatus
- The response's http status code.
Response Lenses
createOriginAccessControlResponse_eTag :: Lens' CreateOriginAccessControlResponse (Maybe Text) Source #
The version identifier for the current version of the origin access control.
createOriginAccessControlResponse_location :: Lens' CreateOriginAccessControlResponse (Maybe Text) Source #
The URL of the origin access control.
createOriginAccessControlResponse_originAccessControl :: Lens' CreateOriginAccessControlResponse (Maybe OriginAccessControl) Source #
Contains an origin access control.
createOriginAccessControlResponse_httpStatus :: Lens' CreateOriginAccessControlResponse Int Source #
The response's http status code.