| 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.AppSync.AssociateApi
Description
Maps an endpoint to your custom domain.
Synopsis
- data AssociateApi = AssociateApi' {
- domainName :: Text
- apiId :: Text
- newAssociateApi :: Text -> Text -> AssociateApi
- associateApi_domainName :: Lens' AssociateApi Text
- associateApi_apiId :: Lens' AssociateApi Text
- data AssociateApiResponse = AssociateApiResponse' {}
- newAssociateApiResponse :: Int -> AssociateApiResponse
- associateApiResponse_apiAssociation :: Lens' AssociateApiResponse (Maybe ApiAssociation)
- associateApiResponse_httpStatus :: Lens' AssociateApiResponse Int
Creating a Request
data AssociateApi Source #
See: newAssociateApi smart constructor.
Constructors
| AssociateApi' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> AssociateApi |
Create a value of AssociateApi 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:
AssociateApi, associateApi_domainName - The domain name.
AssociateApi, associateApi_apiId - The API ID.
Request Lenses
associateApi_domainName :: Lens' AssociateApi Text Source #
The domain name.
associateApi_apiId :: Lens' AssociateApi Text Source #
The API ID.
Destructuring the Response
data AssociateApiResponse Source #
See: newAssociateApiResponse smart constructor.
Constructors
| AssociateApiResponse' | |
Fields
| |
Instances
newAssociateApiResponse Source #
Arguments
| :: Int | |
| -> AssociateApiResponse |
Create a value of AssociateApiResponse 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:apiAssociation:AssociateApiResponse', associateApiResponse_apiAssociation - The ApiAssociation object.
$sel:httpStatus:AssociateApiResponse', associateApiResponse_httpStatus - The response's http status code.
Response Lenses
associateApiResponse_apiAssociation :: Lens' AssociateApiResponse (Maybe ApiAssociation) Source #
The ApiAssociation object.
associateApiResponse_httpStatus :: Lens' AssociateApiResponse Int Source #
The response's http status code.