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