| 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 |
Amazonka.CloudFront.GetKeyGroup
Description
Gets a key group, including the date and time when the key group was last modified.
To get a key group, you must provide the key group's identifier. If the
key group is referenced in a distribution's cache behavior, you can get
the key group's identifier using ListDistributions or
GetDistribution. If the key group is not referenced in a cache
behavior, you can get the identifier using ListKeyGroups.
Synopsis
- data GetKeyGroup = GetKeyGroup' {}
- newGetKeyGroup :: Text -> GetKeyGroup
- getKeyGroup_id :: Lens' GetKeyGroup Text
- data GetKeyGroupResponse = GetKeyGroupResponse' {}
- newGetKeyGroupResponse :: Int -> GetKeyGroupResponse
- getKeyGroupResponse_eTag :: Lens' GetKeyGroupResponse (Maybe Text)
- getKeyGroupResponse_keyGroup :: Lens' GetKeyGroupResponse (Maybe KeyGroup)
- getKeyGroupResponse_httpStatus :: Lens' GetKeyGroupResponse Int
Creating a Request
data GetKeyGroup Source #
See: newGetKeyGroup smart constructor.
Constructors
| GetKeyGroup' | |
Instances
Arguments
| :: Text | |
| -> GetKeyGroup |
Create a value of GetKeyGroup 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:
GetKeyGroup, getKeyGroup_id - The identifier of the key group that you are getting. To get the
identifier, use ListKeyGroups.
Request Lenses
getKeyGroup_id :: Lens' GetKeyGroup Text Source #
The identifier of the key group that you are getting. To get the
identifier, use ListKeyGroups.
Destructuring the Response
data GetKeyGroupResponse Source #
See: newGetKeyGroupResponse smart constructor.
Constructors
| GetKeyGroupResponse' | |
Instances
newGetKeyGroupResponse Source #
Arguments
| :: Int | |
| -> GetKeyGroupResponse |
Create a value of GetKeyGroupResponse 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:GetKeyGroupResponse', getKeyGroupResponse_eTag - The identifier for this version of the key group.
GetKeyGroupResponse, getKeyGroupResponse_keyGroup - The key group.
$sel:httpStatus:GetKeyGroupResponse', getKeyGroupResponse_httpStatus - The response's http status code.
Response Lenses
getKeyGroupResponse_eTag :: Lens' GetKeyGroupResponse (Maybe Text) Source #
The identifier for this version of the key group.
getKeyGroupResponse_keyGroup :: Lens' GetKeyGroupResponse (Maybe KeyGroup) Source #
The key group.
getKeyGroupResponse_httpStatus :: Lens' GetKeyGroupResponse Int Source #
The response's http status code.