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 key group that you can use with CloudFront signed URLs and signed cookies.
To create a key group, you must specify at least one public key for the key group. After you create a key group, you can reference it from one or more cache behaviors. When you reference a key group in a cache behavior, CloudFront requires signed URLs or signed cookies for all requests that match the cache behavior. The URLs or cookies must be signed with a private key whose corresponding public key is in the key group. The signed URL or cookie contains information about which public key CloudFront should use to verify the signature. For more information, see Serving private content in the Amazon CloudFront Developer Guide.
Synopsis
- data CreateKeyGroup = CreateKeyGroup' {}
- newCreateKeyGroup :: KeyGroupConfig -> CreateKeyGroup
- createKeyGroup_keyGroupConfig :: Lens' CreateKeyGroup KeyGroupConfig
- data CreateKeyGroupResponse = CreateKeyGroupResponse' {}
- newCreateKeyGroupResponse :: Int -> CreateKeyGroupResponse
- createKeyGroupResponse_eTag :: Lens' CreateKeyGroupResponse (Maybe Text)
- createKeyGroupResponse_location :: Lens' CreateKeyGroupResponse (Maybe Text)
- createKeyGroupResponse_keyGroup :: Lens' CreateKeyGroupResponse (Maybe KeyGroup)
- createKeyGroupResponse_httpStatus :: Lens' CreateKeyGroupResponse Int
Creating a Request
data CreateKeyGroup Source #
See: newCreateKeyGroup
smart constructor.
CreateKeyGroup' | |
|
Instances
Create a value of CreateKeyGroup
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:keyGroupConfig:CreateKeyGroup'
, createKeyGroup_keyGroupConfig
- A key group configuration.
Request Lenses
createKeyGroup_keyGroupConfig :: Lens' CreateKeyGroup KeyGroupConfig Source #
A key group configuration.
Destructuring the Response
data CreateKeyGroupResponse Source #
See: newCreateKeyGroupResponse
smart constructor.
Instances
newCreateKeyGroupResponse Source #
Create a value of CreateKeyGroupResponse
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:CreateKeyGroupResponse'
, createKeyGroupResponse_eTag
- The identifier for this version of the key group.
$sel:location:CreateKeyGroupResponse'
, createKeyGroupResponse_location
- The URL of the key group.
$sel:keyGroup:CreateKeyGroupResponse'
, createKeyGroupResponse_keyGroup
- The key group that was just created.
$sel:httpStatus:CreateKeyGroupResponse'
, createKeyGroupResponse_httpStatus
- The response's http status code.
Response Lenses
createKeyGroupResponse_eTag :: Lens' CreateKeyGroupResponse (Maybe Text) Source #
The identifier for this version of the key group.
createKeyGroupResponse_location :: Lens' CreateKeyGroupResponse (Maybe Text) Source #
The URL of the key group.
createKeyGroupResponse_keyGroup :: Lens' CreateKeyGroupResponse (Maybe KeyGroup) Source #
The key group that was just created.
createKeyGroupResponse_httpStatus :: Lens' CreateKeyGroupResponse Int Source #
The response's http status code.