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.CreateGraphqlApi
Description
Creates a GraphqlApi
object.
Synopsis
- data CreateGraphqlApi = CreateGraphqlApi' {
- additionalAuthenticationProviders :: Maybe [AdditionalAuthenticationProvider]
- lambdaAuthorizerConfig :: Maybe LambdaAuthorizerConfig
- logConfig :: Maybe LogConfig
- openIDConnectConfig :: Maybe OpenIDConnectConfig
- tags :: Maybe (HashMap Text Text)
- userPoolConfig :: Maybe UserPoolConfig
- xrayEnabled :: Maybe Bool
- name :: Text
- authenticationType :: AuthenticationType
- newCreateGraphqlApi :: Text -> AuthenticationType -> CreateGraphqlApi
- createGraphqlApi_additionalAuthenticationProviders :: Lens' CreateGraphqlApi (Maybe [AdditionalAuthenticationProvider])
- createGraphqlApi_lambdaAuthorizerConfig :: Lens' CreateGraphqlApi (Maybe LambdaAuthorizerConfig)
- createGraphqlApi_logConfig :: Lens' CreateGraphqlApi (Maybe LogConfig)
- createGraphqlApi_openIDConnectConfig :: Lens' CreateGraphqlApi (Maybe OpenIDConnectConfig)
- createGraphqlApi_tags :: Lens' CreateGraphqlApi (Maybe (HashMap Text Text))
- createGraphqlApi_userPoolConfig :: Lens' CreateGraphqlApi (Maybe UserPoolConfig)
- createGraphqlApi_xrayEnabled :: Lens' CreateGraphqlApi (Maybe Bool)
- createGraphqlApi_name :: Lens' CreateGraphqlApi Text
- createGraphqlApi_authenticationType :: Lens' CreateGraphqlApi AuthenticationType
- data CreateGraphqlApiResponse = CreateGraphqlApiResponse' {}
- newCreateGraphqlApiResponse :: Int -> CreateGraphqlApiResponse
- createGraphqlApiResponse_graphqlApi :: Lens' CreateGraphqlApiResponse (Maybe GraphqlApi)
- createGraphqlApiResponse_httpStatus :: Lens' CreateGraphqlApiResponse Int
Creating a Request
data CreateGraphqlApi Source #
See: newCreateGraphqlApi
smart constructor.
Constructors
CreateGraphqlApi' | |
Fields
|
Instances
Arguments
:: Text | |
-> AuthenticationType | |
-> CreateGraphqlApi |
Create a value of CreateGraphqlApi
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:
CreateGraphqlApi
, createGraphqlApi_additionalAuthenticationProviders
- A list of additional authentication providers for the GraphqlApi
API.
CreateGraphqlApi
, createGraphqlApi_lambdaAuthorizerConfig
- Configuration for Lambda function authorization.
CreateGraphqlApi
, createGraphqlApi_logConfig
- The Amazon CloudWatch Logs configuration.
CreateGraphqlApi
, createGraphqlApi_openIDConnectConfig
- The OIDC configuration.
CreateGraphqlApi
, createGraphqlApi_tags
- A TagMap
object.
CreateGraphqlApi
, createGraphqlApi_userPoolConfig
- The Amazon Cognito user pool configuration.
CreateGraphqlApi
, createGraphqlApi_xrayEnabled
- A flag indicating whether to use X-Ray tracing for the GraphqlApi
.
CreateGraphqlApi
, createGraphqlApi_name
- A user-supplied name for the GraphqlApi
.
CreateGraphqlApi
, createGraphqlApi_authenticationType
- The authentication type: API key, Identity and Access Management (IAM),
OpenID Connect (OIDC), Amazon Cognito user pools, or Lambda.
Request Lenses
createGraphqlApi_additionalAuthenticationProviders :: Lens' CreateGraphqlApi (Maybe [AdditionalAuthenticationProvider]) Source #
A list of additional authentication providers for the GraphqlApi
API.
createGraphqlApi_lambdaAuthorizerConfig :: Lens' CreateGraphqlApi (Maybe LambdaAuthorizerConfig) Source #
Configuration for Lambda function authorization.
createGraphqlApi_logConfig :: Lens' CreateGraphqlApi (Maybe LogConfig) Source #
The Amazon CloudWatch Logs configuration.
createGraphqlApi_openIDConnectConfig :: Lens' CreateGraphqlApi (Maybe OpenIDConnectConfig) Source #
The OIDC configuration.
createGraphqlApi_tags :: Lens' CreateGraphqlApi (Maybe (HashMap Text Text)) Source #
A TagMap
object.
createGraphqlApi_userPoolConfig :: Lens' CreateGraphqlApi (Maybe UserPoolConfig) Source #
The Amazon Cognito user pool configuration.
createGraphqlApi_xrayEnabled :: Lens' CreateGraphqlApi (Maybe Bool) Source #
A flag indicating whether to use X-Ray tracing for the GraphqlApi
.
createGraphqlApi_name :: Lens' CreateGraphqlApi Text Source #
A user-supplied name for the GraphqlApi
.
createGraphqlApi_authenticationType :: Lens' CreateGraphqlApi AuthenticationType Source #
The authentication type: API key, Identity and Access Management (IAM), OpenID Connect (OIDC), Amazon Cognito user pools, or Lambda.
Destructuring the Response
data CreateGraphqlApiResponse Source #
See: newCreateGraphqlApiResponse
smart constructor.
Constructors
CreateGraphqlApiResponse' | |
Fields
|
Instances
newCreateGraphqlApiResponse Source #
Create a value of CreateGraphqlApiResponse
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:graphqlApi:CreateGraphqlApiResponse'
, createGraphqlApiResponse_graphqlApi
- The GraphqlApi
.
$sel:httpStatus:CreateGraphqlApiResponse'
, createGraphqlApiResponse_httpStatus
- The response's http status code.
Response Lenses
createGraphqlApiResponse_graphqlApi :: Lens' CreateGraphqlApiResponse (Maybe GraphqlApi) Source #
The GraphqlApi
.
createGraphqlApiResponse_httpStatus :: Lens' CreateGraphqlApiResponse Int Source #
The response's http status code.