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 registration code used to register a CA certificate with IoT.
Requires permission to access the GetRegistrationCode action.
Synopsis
- data GetRegistrationCode = GetRegistrationCode' {
- newGetRegistrationCode :: GetRegistrationCode
- data GetRegistrationCodeResponse = GetRegistrationCodeResponse' {}
- newGetRegistrationCodeResponse :: Int -> GetRegistrationCodeResponse
- getRegistrationCodeResponse_registrationCode :: Lens' GetRegistrationCodeResponse (Maybe Text)
- getRegistrationCodeResponse_httpStatus :: Lens' GetRegistrationCodeResponse Int
Creating a Request
data GetRegistrationCode Source #
The input to the GetRegistrationCode operation.
See: newGetRegistrationCode
smart constructor.
Instances
newGetRegistrationCode :: GetRegistrationCode Source #
Create a value of GetRegistrationCode
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
Destructuring the Response
data GetRegistrationCodeResponse Source #
The output from the GetRegistrationCode operation.
See: newGetRegistrationCodeResponse
smart constructor.
GetRegistrationCodeResponse' | |
|
Instances
newGetRegistrationCodeResponse Source #
Create a value of GetRegistrationCodeResponse
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:registrationCode:GetRegistrationCodeResponse'
, getRegistrationCodeResponse_registrationCode
- The CA certificate registration code.
$sel:httpStatus:GetRegistrationCodeResponse'
, getRegistrationCodeResponse_httpStatus
- The response's http status code.
Response Lenses
getRegistrationCodeResponse_registrationCode :: Lens' GetRegistrationCodeResponse (Maybe Text) Source #
The CA certificate registration code.
getRegistrationCodeResponse_httpStatus :: Lens' GetRegistrationCodeResponse Int Source #
The response's http status code.