| Copyright | (c) 2013-2018 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 |
| Language | Haskell2010 |
Network.AWS.AppSync.CreateGraphqlAPI
Description
Creates a GraphqlApi object.
- createGraphqlAPI :: Text -> AuthenticationType -> CreateGraphqlAPI
- data CreateGraphqlAPI
- cgaOpenIdConnectConfig :: Lens' CreateGraphqlAPI (Maybe OpenIdConnectConfig)
- cgaUserPoolConfig :: Lens' CreateGraphqlAPI (Maybe UserPoolConfig)
- cgaLogConfig :: Lens' CreateGraphqlAPI (Maybe LogConfig)
- cgaName :: Lens' CreateGraphqlAPI Text
- cgaAuthenticationType :: Lens' CreateGraphqlAPI AuthenticationType
- createGraphqlAPIResponse :: Int -> CreateGraphqlAPIResponse
- data CreateGraphqlAPIResponse
- cgarsGraphqlAPI :: Lens' CreateGraphqlAPIResponse (Maybe GraphqlAPI)
- cgarsResponseStatus :: Lens' CreateGraphqlAPIResponse Int
Creating a Request
Arguments
| :: Text | |
| -> AuthenticationType | |
| -> CreateGraphqlAPI |
Creates a value of CreateGraphqlAPI with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cgaOpenIdConnectConfig- The Open Id Connect configuration configuration.cgaUserPoolConfig- The Amazon Cognito User Pool configuration.cgaLogConfig- The Amazon CloudWatch logs configuration.cgaName- A user-supplied name for theGraphqlApi.cgaAuthenticationType- The authentication type: API key, IAM, or Amazon Cognito User Pools.
data CreateGraphqlAPI Source #
See: createGraphqlAPI smart constructor.
Instances
Request Lenses
cgaOpenIdConnectConfig :: Lens' CreateGraphqlAPI (Maybe OpenIdConnectConfig) Source #
The Open Id Connect configuration configuration.
cgaUserPoolConfig :: Lens' CreateGraphqlAPI (Maybe UserPoolConfig) Source #
The Amazon Cognito User Pool configuration.
cgaLogConfig :: Lens' CreateGraphqlAPI (Maybe LogConfig) Source #
The Amazon CloudWatch logs configuration.
cgaAuthenticationType :: Lens' CreateGraphqlAPI AuthenticationType Source #
The authentication type: API key, IAM, or Amazon Cognito User Pools.
Destructuring the Response
createGraphqlAPIResponse Source #
Arguments
| :: Int | |
| -> CreateGraphqlAPIResponse |
Creates a value of CreateGraphqlAPIResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cgarsGraphqlAPI- TheGraphqlApi.cgarsResponseStatus- -- | The response status code.
data CreateGraphqlAPIResponse Source #
See: createGraphqlAPIResponse smart constructor.
Response Lenses
cgarsGraphqlAPI :: Lens' CreateGraphqlAPIResponse (Maybe GraphqlAPI) Source #
The GraphqlApi .
cgarsResponseStatus :: Lens' CreateGraphqlAPIResponse Int Source #
- - | The response status code.