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 |
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.
Instances
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:
$sel:id: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.
Instances
newGetKeyGroupResponse Source #
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.
$sel:keyGroup: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.