| 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.CognitoIdentityProvider.GetSigningCertificate
Description
This method takes a user pool ID, and returns the signing certificate. The issued certificate is valid for 10 years from the date of issue.
Amazon Cognito issues and assigns a new signing certificate annually.
This process returns a new value in the response to
GetSigningCertificate, but doesn't invalidate the original
certificate.
Synopsis
- data GetSigningCertificate = GetSigningCertificate' {
- userPoolId :: Text
- newGetSigningCertificate :: Text -> GetSigningCertificate
- getSigningCertificate_userPoolId :: Lens' GetSigningCertificate Text
- data GetSigningCertificateResponse = GetSigningCertificateResponse' {
- certificate :: Maybe Text
- httpStatus :: Int
- newGetSigningCertificateResponse :: Int -> GetSigningCertificateResponse
- getSigningCertificateResponse_certificate :: Lens' GetSigningCertificateResponse (Maybe Text)
- getSigningCertificateResponse_httpStatus :: Lens' GetSigningCertificateResponse Int
Creating a Request
data GetSigningCertificate Source #
Request to get a signing certificate from Amazon Cognito.
See: newGetSigningCertificate smart constructor.
Constructors
| GetSigningCertificate' | |
Fields
| |
Instances
newGetSigningCertificate Source #
Arguments
| :: Text | |
| -> GetSigningCertificate |
Create a value of GetSigningCertificate 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:
GetSigningCertificate, getSigningCertificate_userPoolId - The user pool ID.
Request Lenses
getSigningCertificate_userPoolId :: Lens' GetSigningCertificate Text Source #
The user pool ID.
Destructuring the Response
data GetSigningCertificateResponse Source #
Response from Amazon Cognito for a signing certificate request.
See: newGetSigningCertificateResponse smart constructor.
Constructors
| GetSigningCertificateResponse' | |
Fields
| |
Instances
newGetSigningCertificateResponse Source #
Create a value of GetSigningCertificateResponse 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:certificate:GetSigningCertificateResponse', getSigningCertificateResponse_certificate - The signing certificate.
$sel:httpStatus:GetSigningCertificateResponse', getSigningCertificateResponse_httpStatus - The response's http status code.
Response Lenses
getSigningCertificateResponse_certificate :: Lens' GetSigningCertificateResponse (Maybe Text) Source #
The signing certificate.
getSigningCertificateResponse_httpStatus :: Lens' GetSigningCertificateResponse Int Source #
The response's http status code.