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.BuilderlambdaAuthorizerConfig(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.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
- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
- 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
-
name
The API name.- Parameters:
name- The API name. This parameter is required.- Returns:
this
-
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
-
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
-
apiType
The value that indicates whether the GraphQL API is a standard API (GRAPHQL) or merged API (MERGED).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
-
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
-
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
-
logConfig
The Amazon CloudWatch Logs configuration.- Parameters:
logConfig- The Amazon CloudWatch Logs configuration. This parameter is required.- Returns:
this
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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.- Parameters:
visibility- Sets the scope of the GraphQL API to public (GLOBAL) or private (PRIVATE). This parameter is required.- Returns:
this
-
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
-
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
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnGraphQLApi>- Returns:
- a newly built instance of
CfnGraphQLApi.
-