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 |
Creates a new origin access identity. If you're using Amazon S3 for your origin, you can use an origin access identity to require users to access your content using a CloudFront URL instead of the Amazon S3 URL. For more information about how to use origin access identities, see Serving Private Content through CloudFront in the Amazon CloudFront Developer Guide.
Synopsis
- data CreateCloudFrontOriginAccessIdentity = CreateCloudFrontOriginAccessIdentity' {}
- newCreateCloudFrontOriginAccessIdentity :: CloudFrontOriginAccessIdentityConfig -> CreateCloudFrontOriginAccessIdentity
- createCloudFrontOriginAccessIdentity_cloudFrontOriginAccessIdentityConfig :: Lens' CreateCloudFrontOriginAccessIdentity CloudFrontOriginAccessIdentityConfig
- data CreateCloudFrontOriginAccessIdentityResponse = CreateCloudFrontOriginAccessIdentityResponse' {}
- newCreateCloudFrontOriginAccessIdentityResponse :: Int -> CreateCloudFrontOriginAccessIdentityResponse
- createCloudFrontOriginAccessIdentityResponse_eTag :: Lens' CreateCloudFrontOriginAccessIdentityResponse (Maybe Text)
- createCloudFrontOriginAccessIdentityResponse_location :: Lens' CreateCloudFrontOriginAccessIdentityResponse (Maybe Text)
- createCloudFrontOriginAccessIdentityResponse_cloudFrontOriginAccessIdentity :: Lens' CreateCloudFrontOriginAccessIdentityResponse (Maybe CloudFrontOriginAccessIdentity)
- createCloudFrontOriginAccessIdentityResponse_httpStatus :: Lens' CreateCloudFrontOriginAccessIdentityResponse Int
Creating a Request
data CreateCloudFrontOriginAccessIdentity Source #
The request to create a new origin access identity (OAI). An origin access identity is a special CloudFront user that you can associate with Amazon S3 origins, so that you can secure all or just some of your Amazon S3 content. For more information, see Restricting Access to Amazon S3 Content by Using an Origin Access Identity in the Amazon CloudFront Developer Guide.
See: newCreateCloudFrontOriginAccessIdentity
smart constructor.
CreateCloudFrontOriginAccessIdentity' | |
|
Instances
newCreateCloudFrontOriginAccessIdentity Source #
:: CloudFrontOriginAccessIdentityConfig |
|
-> CreateCloudFrontOriginAccessIdentity |
Create a value of CreateCloudFrontOriginAccessIdentity
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:cloudFrontOriginAccessIdentityConfig:CreateCloudFrontOriginAccessIdentity'
, createCloudFrontOriginAccessIdentity_cloudFrontOriginAccessIdentityConfig
- The current configuration information for the identity.
Request Lenses
createCloudFrontOriginAccessIdentity_cloudFrontOriginAccessIdentityConfig :: Lens' CreateCloudFrontOriginAccessIdentity CloudFrontOriginAccessIdentityConfig Source #
The current configuration information for the identity.
Destructuring the Response
data CreateCloudFrontOriginAccessIdentityResponse Source #
The returned result of the corresponding request.
See: newCreateCloudFrontOriginAccessIdentityResponse
smart constructor.
CreateCloudFrontOriginAccessIdentityResponse' | |
|
Instances
newCreateCloudFrontOriginAccessIdentityResponse Source #
:: Int |
|
-> CreateCloudFrontOriginAccessIdentityResponse |
Create a value of CreateCloudFrontOriginAccessIdentityResponse
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:CreateCloudFrontOriginAccessIdentityResponse'
, createCloudFrontOriginAccessIdentityResponse_eTag
- The current version of the origin access identity created.
$sel:location:CreateCloudFrontOriginAccessIdentityResponse'
, createCloudFrontOriginAccessIdentityResponse_location
- The fully qualified URI of the new origin access identity just created.
$sel:cloudFrontOriginAccessIdentity:CreateCloudFrontOriginAccessIdentityResponse'
, createCloudFrontOriginAccessIdentityResponse_cloudFrontOriginAccessIdentity
- The origin access identity's information.
$sel:httpStatus:CreateCloudFrontOriginAccessIdentityResponse'
, createCloudFrontOriginAccessIdentityResponse_httpStatus
- The response's http status code.
Response Lenses
createCloudFrontOriginAccessIdentityResponse_eTag :: Lens' CreateCloudFrontOriginAccessIdentityResponse (Maybe Text) Source #
The current version of the origin access identity created.
createCloudFrontOriginAccessIdentityResponse_location :: Lens' CreateCloudFrontOriginAccessIdentityResponse (Maybe Text) Source #
The fully qualified URI of the new origin access identity just created.
createCloudFrontOriginAccessIdentityResponse_cloudFrontOriginAccessIdentity :: Lens' CreateCloudFrontOriginAccessIdentityResponse (Maybe CloudFrontOriginAccessIdentity) Source #
The origin access identity's information.
createCloudFrontOriginAccessIdentityResponse_httpStatus :: Lens' CreateCloudFrontOriginAccessIdentityResponse Int Source #
The response's http status code.