| Copyright | (c) 2013-2018 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 |
| Language | Haskell2010 |
Network.AWS.CloudFront.CreateCloudFrontOriginAccessIdentity
Description
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 .
- createCloudFrontOriginAccessIdentity :: CloudFrontOriginAccessIdentityConfig -> CreateCloudFrontOriginAccessIdentity
- data CreateCloudFrontOriginAccessIdentity
- ccfoaiCloudFrontOriginAccessIdentityConfig :: Lens' CreateCloudFrontOriginAccessIdentity CloudFrontOriginAccessIdentityConfig
- createCloudFrontOriginAccessIdentityResponse :: Int -> CreateCloudFrontOriginAccessIdentityResponse
- data CreateCloudFrontOriginAccessIdentityResponse
- ccfoairsETag :: Lens' CreateCloudFrontOriginAccessIdentityResponse (Maybe Text)
- ccfoairsLocation :: Lens' CreateCloudFrontOriginAccessIdentityResponse (Maybe Text)
- ccfoairsCloudFrontOriginAccessIdentity :: Lens' CreateCloudFrontOriginAccessIdentityResponse (Maybe CloudFrontOriginAccessIdentity)
- ccfoairsResponseStatus :: Lens' CreateCloudFrontOriginAccessIdentityResponse Int
Creating a Request
createCloudFrontOriginAccessIdentity Source #
Creates a value of CreateCloudFrontOriginAccessIdentity with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ccfoaiCloudFrontOriginAccessIdentityConfig- The current configuration information for the identity.
data CreateCloudFrontOriginAccessIdentity Source #
The request to create a new origin access identity.
See: createCloudFrontOriginAccessIdentity smart constructor.
Instances
Request Lenses
ccfoaiCloudFrontOriginAccessIdentityConfig :: Lens' CreateCloudFrontOriginAccessIdentity CloudFrontOriginAccessIdentityConfig Source #
The current configuration information for the identity.
Destructuring the Response
createCloudFrontOriginAccessIdentityResponse Source #
Creates a value of CreateCloudFrontOriginAccessIdentityResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ccfoairsETag- The current version of the origin access identity created.ccfoairsLocation- The fully qualified URI of the new origin access identity just created. For example:https://cloudfront.amazonaws.com/2010-11-01/origin-access-identity/cloudfront/E74FTE3AJFJ256A.ccfoairsCloudFrontOriginAccessIdentity- The origin access identity's information.ccfoairsResponseStatus- -- | The response status code.
data CreateCloudFrontOriginAccessIdentityResponse Source #
The returned result of the corresponding request.
See: createCloudFrontOriginAccessIdentityResponse smart constructor.
Instances
Response Lenses
ccfoairsETag :: Lens' CreateCloudFrontOriginAccessIdentityResponse (Maybe Text) Source #
The current version of the origin access identity created.
ccfoairsLocation :: Lens' CreateCloudFrontOriginAccessIdentityResponse (Maybe Text) Source #
The fully qualified URI of the new origin access identity just created. For example: https://cloudfront.amazonaws.com/2010-11-01/origin-access-identity/cloudfront/E74FTE3AJFJ256A .
ccfoairsCloudFrontOriginAccessIdentity :: Lens' CreateCloudFrontOriginAccessIdentityResponse (Maybe CloudFrontOriginAccessIdentity) Source #
The origin access identity's information.
ccfoairsResponseStatus :: Lens' CreateCloudFrontOriginAccessIdentityResponse Int Source #
- - | The response status code.