| 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.IoT.GetRegistrationCode
Description
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.
Constructors
| GetRegistrationCode' | |
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.
Constructors
| GetRegistrationCodeResponse' | |
Fields
| |
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.