Class CfnGraphQLApi.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGraphQLApi>
- Enclosing class:
CfnGraphQLApi
CfnGraphQLApi.-
Method Summary
Modifier and TypeMethodDescriptionadditionalAuthenticationProviders(List<? extends Object> additionalAuthenticationProviders) A list of additional authentication providers for theGraphqlApiAPI.additionalAuthenticationProviders(IResolvable additionalAuthenticationProviders) A list of additional authentication providers for theGraphqlApiAPI.The value that indicates whether the GraphQL API is a standard API (GRAPHQL) or merged API (MERGED).authenticationType(String authenticationType) Security configuration for your GraphQL API.build()static CfnGraphQLApi.BuilderintrospectionConfig(String introspectionConfig) lambdaAuthorizerConfig(IResolvable lambdaAuthorizerConfig) ALambdaAuthorizerConfigholds configuration on how to authorize AWS AppSync API access when using theAWS_LAMBDAauthorizer mode.lambdaAuthorizerConfig(CfnGraphQLApi.LambdaAuthorizerConfigProperty lambdaAuthorizerConfig) ALambdaAuthorizerConfigholds configuration on how to authorize AWS AppSync API access when using theAWS_LAMBDAauthorizer mode.logConfig(IResolvable logConfig) The Amazon CloudWatch Logs configuration.logConfig(CfnGraphQLApi.LogConfigProperty logConfig) The Amazon CloudWatch Logs configuration.mergedApiExecutionRoleArn(String mergedApiExecutionRoleArn) The AWS Identity and Access Management service role ARN for a merged API.The API name.openIdConnectConfig(IResolvable openIdConnectConfig) The OpenID Connect configuration.openIdConnectConfig(CfnGraphQLApi.OpenIDConnectConfigProperty openIdConnectConfig) The OpenID Connect configuration.ownerContact(String ownerContact) The owner contact information for an API resource.queryDepthLimit(Number queryDepthLimit) resolverCountLimit(Number resolverCountLimit) An arbitrary set of tags (key-value pairs) for this GraphQL API.userPoolConfig(IResolvable userPoolConfig) Optional authorization configuration for using Amazon Cognito user pools with your GraphQL endpoint.userPoolConfig(CfnGraphQLApi.UserPoolConfigProperty userPoolConfig) Optional authorization configuration for using Amazon Cognito user pools with your GraphQL endpoint.visibility(String visibility) Sets the scope of the GraphQL API to public (GLOBAL) or private (PRIVATE).xrayEnabled(Boolean xrayEnabled) A flag indicating whether to use AWS X-Ray tracing for thisGraphqlApi.xrayEnabled(IResolvable xrayEnabled) A flag indicating whether to use AWS X-Ray tracing for thisGraphqlApi.
-
Method Details
-
create
@Stability(Stable) public static CfnGraphQLApi.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnGraphQLApi.Builder.
-
authenticationType
Security configuration for your GraphQL API.For allowed values (such as
API_KEY,AWS_IAM,AMAZON_COGNITO_USER_POOLS,OPENID_CONNECT, orAWS_LAMBDA), see Security in the AWS AppSync Developer Guide .- Parameters:
authenticationType- Security configuration for your GraphQL API. This parameter is required.- Returns:
this- See Also:
-
name
The API name.- Parameters:
name- The API name. This parameter is required.- Returns:
this- See Also:
-
additionalAuthenticationProviders
@Stability(Stable) public CfnGraphQLApi.Builder additionalAuthenticationProviders(IResolvable additionalAuthenticationProviders) A list of additional authentication providers for theGraphqlApiAPI.- Parameters:
additionalAuthenticationProviders- A list of additional authentication providers for theGraphqlApiAPI. This parameter is required.- Returns:
this- See Also:
-
additionalAuthenticationProviders
@Stability(Stable) public CfnGraphQLApi.Builder additionalAuthenticationProviders(List<? extends Object> additionalAuthenticationProviders) A list of additional authentication providers for theGraphqlApiAPI.- Parameters:
additionalAuthenticationProviders- A list of additional authentication providers for theGraphqlApiAPI. This parameter is required.- Returns:
this- See Also:
-
apiType
The value that indicates whether the GraphQL API is a standard API (GRAPHQL) or merged API (MERGED).WARNING : If the
ApiTypehas not been defined, explicitly setting it toGRAPHQLin a template/stack update will result in an API replacement and new DNS values.The following values are valid:
GRAPHQL | MERGED- Parameters:
apiType- The value that indicates whether the GraphQL API is a standard API (GRAPHQL) or merged API (MERGED). This parameter is required.- Returns:
this- See Also:
-
introspectionConfig
- Parameters:
introspectionConfig- This parameter is required.- Returns:
this- See Also:
-
lambdaAuthorizerConfig
@Stability(Stable) public CfnGraphQLApi.Builder lambdaAuthorizerConfig(IResolvable lambdaAuthorizerConfig) ALambdaAuthorizerConfigholds configuration on how to authorize AWS AppSync API access when using theAWS_LAMBDAauthorizer mode.Be aware that an AWS AppSync API may have only one Lambda authorizer configured at a time.
- Parameters:
lambdaAuthorizerConfig- ALambdaAuthorizerConfigholds configuration on how to authorize AWS AppSync API access when using theAWS_LAMBDAauthorizer mode. This parameter is required.- Returns:
this- See Also:
-
lambdaAuthorizerConfig
@Stability(Stable) public CfnGraphQLApi.Builder lambdaAuthorizerConfig(CfnGraphQLApi.LambdaAuthorizerConfigProperty lambdaAuthorizerConfig) ALambdaAuthorizerConfigholds configuration on how to authorize AWS AppSync API access when using theAWS_LAMBDAauthorizer mode.Be aware that an AWS AppSync API may have only one Lambda authorizer configured at a time.
- Parameters:
lambdaAuthorizerConfig- ALambdaAuthorizerConfigholds configuration on how to authorize AWS AppSync API access when using theAWS_LAMBDAauthorizer mode. This parameter is required.- Returns:
this- See Also:
-
logConfig
The Amazon CloudWatch Logs configuration.- Parameters:
logConfig- The Amazon CloudWatch Logs configuration. This parameter is required.- Returns:
this- See Also:
-
logConfig
@Stability(Stable) public CfnGraphQLApi.Builder logConfig(CfnGraphQLApi.LogConfigProperty logConfig) The Amazon CloudWatch Logs configuration.- Parameters:
logConfig- The Amazon CloudWatch Logs configuration. This parameter is required.- Returns:
this- See Also:
-
mergedApiExecutionRoleArn
@Stability(Stable) public CfnGraphQLApi.Builder mergedApiExecutionRoleArn(String mergedApiExecutionRoleArn) The AWS Identity and Access Management service role ARN for a merged API.The AppSync service assumes this role on behalf of the Merged API to validate access to source APIs at runtime and to prompt the
AUTO_MERGEto update the merged API endpoint with the source API changes automatically.- Parameters:
mergedApiExecutionRoleArn- The AWS Identity and Access Management service role ARN for a merged API. This parameter is required.- Returns:
this- See Also:
-
openIdConnectConfig
@Stability(Stable) public CfnGraphQLApi.Builder openIdConnectConfig(IResolvable openIdConnectConfig) The OpenID Connect configuration.- Parameters:
openIdConnectConfig- The OpenID Connect configuration. This parameter is required.- Returns:
this- See Also:
-
openIdConnectConfig
@Stability(Stable) public CfnGraphQLApi.Builder openIdConnectConfig(CfnGraphQLApi.OpenIDConnectConfigProperty openIdConnectConfig) The OpenID Connect configuration.- Parameters:
openIdConnectConfig- The OpenID Connect configuration. This parameter is required.- Returns:
this- See Also:
-
ownerContact
The owner contact information for an API resource.This field accepts any string input with a length of 0 - 256 characters.
- Parameters:
ownerContact- The owner contact information for an API resource. This parameter is required.- Returns:
this- See Also:
-
queryDepthLimit
- Parameters:
queryDepthLimit- This parameter is required.- Returns:
this- See Also:
-
resolverCountLimit
- Parameters:
resolverCountLimit- This parameter is required.- Returns:
this- See Also:
-
tags
An arbitrary set of tags (key-value pairs) for this GraphQL API.- Parameters:
tags- An arbitrary set of tags (key-value pairs) for this GraphQL API. This parameter is required.- Returns:
this- See Also:
-
userPoolConfig
Optional authorization configuration for using Amazon Cognito user pools with your GraphQL endpoint.- Parameters:
userPoolConfig- Optional authorization configuration for using Amazon Cognito user pools with your GraphQL endpoint. This parameter is required.- Returns:
this- See Also:
-
userPoolConfig
@Stability(Stable) public CfnGraphQLApi.Builder userPoolConfig(CfnGraphQLApi.UserPoolConfigProperty userPoolConfig) Optional authorization configuration for using Amazon Cognito user pools with your GraphQL endpoint.- Parameters:
userPoolConfig- Optional authorization configuration for using Amazon Cognito user pools with your GraphQL endpoint. This parameter is required.- Returns:
this- See Also:
-
visibility
Sets the scope of the GraphQL API to public (GLOBAL) or private (PRIVATE).By default, the scope is set to
Globalif no value is provided.WARNING : If
Visibilityhas not been defined, explicitly setting it toGLOBALin a template/stack update will result in an API replacement and new DNS values.- Parameters:
visibility- Sets the scope of the GraphQL API to public (GLOBAL) or private (PRIVATE). This parameter is required.- Returns:
this- See Also:
-
xrayEnabled
A flag indicating whether to use AWS X-Ray tracing for thisGraphqlApi.- Parameters:
xrayEnabled- A flag indicating whether to use AWS X-Ray tracing for thisGraphqlApi. This parameter is required.- Returns:
this- See Also:
-
xrayEnabled
A flag indicating whether to use AWS X-Ray tracing for thisGraphqlApi.- Parameters:
xrayEnabled- A flag indicating whether to use AWS X-Ray tracing for thisGraphqlApi. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnGraphQLApi>- Returns:
- a newly built instance of
CfnGraphQLApi.
-