Class CfnGraphQLApiProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGraphQLApiProps>
- Enclosing interface:
CfnGraphQLApiProps
CfnGraphQLApiProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionadditionalAuthenticationProviders
(List<? extends Object> additionalAuthenticationProviders) Sets the value ofCfnGraphQLApiProps.getAdditionalAuthenticationProviders()
additionalAuthenticationProviders
(IResolvable additionalAuthenticationProviders) Sets the value ofCfnGraphQLApiProps.getAdditionalAuthenticationProviders()
Sets the value ofCfnGraphQLApiProps.getApiType()
authenticationType
(String authenticationType) Sets the value ofCfnGraphQLApiProps.getAuthenticationType()
build()
Builds the configured instance.enhancedMetricsConfig
(IResolvable enhancedMetricsConfig) Sets the value ofCfnGraphQLApiProps.getEnhancedMetricsConfig()
enhancedMetricsConfig
(CfnGraphQLApi.EnhancedMetricsConfigProperty enhancedMetricsConfig) Sets the value ofCfnGraphQLApiProps.getEnhancedMetricsConfig()
environmentVariables
(Map<String, String> environmentVariables) Sets the value ofCfnGraphQLApiProps.getEnvironmentVariables()
environmentVariables
(IResolvable environmentVariables) Sets the value ofCfnGraphQLApiProps.getEnvironmentVariables()
introspectionConfig
(String introspectionConfig) Sets the value ofCfnGraphQLApiProps.getIntrospectionConfig()
lambdaAuthorizerConfig
(IResolvable lambdaAuthorizerConfig) Sets the value ofCfnGraphQLApiProps.getLambdaAuthorizerConfig()
lambdaAuthorizerConfig
(CfnGraphQLApi.LambdaAuthorizerConfigProperty lambdaAuthorizerConfig) Sets the value ofCfnGraphQLApiProps.getLambdaAuthorizerConfig()
logConfig
(IResolvable logConfig) Sets the value ofCfnGraphQLApiProps.getLogConfig()
logConfig
(CfnGraphQLApi.LogConfigProperty logConfig) Sets the value ofCfnGraphQLApiProps.getLogConfig()
mergedApiExecutionRoleArn
(String mergedApiExecutionRoleArn) Sets the value ofCfnGraphQLApiProps.getMergedApiExecutionRoleArn()
Sets the value ofCfnGraphQLApiProps.getName()
openIdConnectConfig
(IResolvable openIdConnectConfig) Sets the value ofCfnGraphQLApiProps.getOpenIdConnectConfig()
openIdConnectConfig
(CfnGraphQLApi.OpenIDConnectConfigProperty openIdConnectConfig) Sets the value ofCfnGraphQLApiProps.getOpenIdConnectConfig()
ownerContact
(String ownerContact) Sets the value ofCfnGraphQLApiProps.getOwnerContact()
queryDepthLimit
(Number queryDepthLimit) Sets the value ofCfnGraphQLApiProps.getQueryDepthLimit()
resolverCountLimit
(Number resolverCountLimit) Sets the value ofCfnGraphQLApiProps.getResolverCountLimit()
Sets the value ofCfnGraphQLApiProps.getTags()
userPoolConfig
(IResolvable userPoolConfig) Sets the value ofCfnGraphQLApiProps.getUserPoolConfig()
userPoolConfig
(CfnGraphQLApi.UserPoolConfigProperty userPoolConfig) Sets the value ofCfnGraphQLApiProps.getUserPoolConfig()
visibility
(String visibility) Sets the value ofCfnGraphQLApiProps.getVisibility()
xrayEnabled
(Boolean xrayEnabled) Sets the value ofCfnGraphQLApiProps.getXrayEnabled()
xrayEnabled
(IResolvable xrayEnabled) Sets the value ofCfnGraphQLApiProps.getXrayEnabled()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
authenticationType
Sets the value ofCfnGraphQLApiProps.getAuthenticationType()
- Parameters:
authenticationType
- Security configuration for your GraphQL API. This parameter is required. For allowed values (such asAPI_KEY
,AWS_IAM
,AMAZON_COGNITO_USER_POOLS
,OPENID_CONNECT
, orAWS_LAMBDA
), see Security in the AWS AppSync Developer Guide .- Returns:
this
-
name
Sets the value ofCfnGraphQLApiProps.getName()
- Parameters:
name
- The API name. This parameter is required.- Returns:
this
-
additionalAuthenticationProviders
@Stability(Stable) public CfnGraphQLApiProps.Builder additionalAuthenticationProviders(IResolvable additionalAuthenticationProviders) Sets the value ofCfnGraphQLApiProps.getAdditionalAuthenticationProviders()
- Parameters:
additionalAuthenticationProviders
- A list of additional authentication providers for theGraphqlApi
API.- Returns:
this
-
additionalAuthenticationProviders
@Stability(Stable) public CfnGraphQLApiProps.Builder additionalAuthenticationProviders(List<? extends Object> additionalAuthenticationProviders) Sets the value ofCfnGraphQLApiProps.getAdditionalAuthenticationProviders()
- Parameters:
additionalAuthenticationProviders
- A list of additional authentication providers for theGraphqlApi
API.- Returns:
this
-
apiType
Sets the value ofCfnGraphQLApiProps.getApiType()
- Parameters:
apiType
- The value that indicates whether the GraphQL API is a standard API (GRAPHQL
) or merged API (MERGED
). WARNING : If theApiType
has not been defined, explicitly setting it toGRAPHQL
in a template/stack update will result in an API replacement and new DNS values.The following values are valid:
GRAPHQL | MERGED
- Returns:
this
-
enhancedMetricsConfig
@Stability(Stable) public CfnGraphQLApiProps.Builder enhancedMetricsConfig(IResolvable enhancedMetricsConfig) Sets the value ofCfnGraphQLApiProps.getEnhancedMetricsConfig()
- Parameters:
enhancedMetricsConfig
- Enables and controls the enhanced metrics feature. Enhanced metrics emit granular data on API usage and performance such as AppSync request and error counts, latency, and cache hits/misses. All enhanced metric data is sent to your CloudWatch account, and you can configure the types of data that will be sent.Enhanced metrics can be configured at the resolver, data source, and operation levels. For more information, see Monitoring and logging in the AWS AppSync User Guide .
- Returns:
this
-
enhancedMetricsConfig
@Stability(Stable) public CfnGraphQLApiProps.Builder enhancedMetricsConfig(CfnGraphQLApi.EnhancedMetricsConfigProperty enhancedMetricsConfig) Sets the value ofCfnGraphQLApiProps.getEnhancedMetricsConfig()
- Parameters:
enhancedMetricsConfig
- Enables and controls the enhanced metrics feature. Enhanced metrics emit granular data on API usage and performance such as AppSync request and error counts, latency, and cache hits/misses. All enhanced metric data is sent to your CloudWatch account, and you can configure the types of data that will be sent.Enhanced metrics can be configured at the resolver, data source, and operation levels. For more information, see Monitoring and logging in the AWS AppSync User Guide .
- Returns:
this
-
environmentVariables
@Stability(Stable) public CfnGraphQLApiProps.Builder environmentVariables(IResolvable environmentVariables) Sets the value ofCfnGraphQLApiProps.getEnvironmentVariables()
- Parameters:
environmentVariables
- A map containing the list of resources with their properties and environment variables. For more information, see Environmental variables .Pattern :
^[A-Za-z]+\\w*$\\
Minimum : 2
Maximum : 64
- Returns:
this
-
environmentVariables
@Stability(Stable) public CfnGraphQLApiProps.Builder environmentVariables(Map<String, String> environmentVariables) Sets the value ofCfnGraphQLApiProps.getEnvironmentVariables()
- Parameters:
environmentVariables
- A map containing the list of resources with their properties and environment variables. For more information, see Environmental variables .Pattern :
^[A-Za-z]+\\w*$\\
Minimum : 2
Maximum : 64
- Returns:
this
-
introspectionConfig
@Stability(Stable) public CfnGraphQLApiProps.Builder introspectionConfig(String introspectionConfig) Sets the value ofCfnGraphQLApiProps.getIntrospectionConfig()
- Parameters:
introspectionConfig
- Sets the value of the GraphQL API to enable (ENABLED
) or disable (DISABLED
) introspection. If no value is provided, the introspection configuration will be set toENABLED
by default. This field will produce an error if the operation attempts to use the introspection feature while this field is disabled.For more information about introspection, see GraphQL introspection .
- Returns:
this
-
lambdaAuthorizerConfig
@Stability(Stable) public CfnGraphQLApiProps.Builder lambdaAuthorizerConfig(IResolvable lambdaAuthorizerConfig) Sets the value ofCfnGraphQLApiProps.getLambdaAuthorizerConfig()
- Parameters:
lambdaAuthorizerConfig
- ALambdaAuthorizerConfig
holds configuration on how to authorize AWS AppSync API access when using theAWS_LAMBDA
authorizer mode. Be aware that an AWS AppSync API may have only one Lambda authorizer configured at a time.- Returns:
this
-
lambdaAuthorizerConfig
@Stability(Stable) public CfnGraphQLApiProps.Builder lambdaAuthorizerConfig(CfnGraphQLApi.LambdaAuthorizerConfigProperty lambdaAuthorizerConfig) Sets the value ofCfnGraphQLApiProps.getLambdaAuthorizerConfig()
- Parameters:
lambdaAuthorizerConfig
- ALambdaAuthorizerConfig
holds configuration on how to authorize AWS AppSync API access when using theAWS_LAMBDA
authorizer mode. Be aware that an AWS AppSync API may have only one Lambda authorizer configured at a time.- Returns:
this
-
logConfig
Sets the value ofCfnGraphQLApiProps.getLogConfig()
- Parameters:
logConfig
- The Amazon CloudWatch Logs configuration.- Returns:
this
-
logConfig
@Stability(Stable) public CfnGraphQLApiProps.Builder logConfig(CfnGraphQLApi.LogConfigProperty logConfig) Sets the value ofCfnGraphQLApiProps.getLogConfig()
- Parameters:
logConfig
- The Amazon CloudWatch Logs configuration.- Returns:
this
-
mergedApiExecutionRoleArn
@Stability(Stable) public CfnGraphQLApiProps.Builder mergedApiExecutionRoleArn(String mergedApiExecutionRoleArn) Sets the value ofCfnGraphQLApiProps.getMergedApiExecutionRoleArn()
- Parameters:
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 theAUTO_MERGE
to update the merged API endpoint with the source API changes automatically.- Returns:
this
-
openIdConnectConfig
@Stability(Stable) public CfnGraphQLApiProps.Builder openIdConnectConfig(IResolvable openIdConnectConfig) Sets the value ofCfnGraphQLApiProps.getOpenIdConnectConfig()
- Parameters:
openIdConnectConfig
- The OpenID Connect configuration.- Returns:
this
-
openIdConnectConfig
@Stability(Stable) public CfnGraphQLApiProps.Builder openIdConnectConfig(CfnGraphQLApi.OpenIDConnectConfigProperty openIdConnectConfig) Sets the value ofCfnGraphQLApiProps.getOpenIdConnectConfig()
- Parameters:
openIdConnectConfig
- The OpenID Connect configuration.- Returns:
this
-
ownerContact
Sets the value ofCfnGraphQLApiProps.getOwnerContact()
- Parameters:
ownerContact
- The owner contact information for an API resource. This field accepts any string input with a length of 0 - 256 characters.- Returns:
this
-
queryDepthLimit
Sets the value ofCfnGraphQLApiProps.getQueryDepthLimit()
- Parameters:
queryDepthLimit
- The maximum depth a query can have in a single request. Depth refers to the amount of nested levels allowed in the body of query. The default value is0
(or unspecified), which indicates there's no depth limit. If you set a limit, it can be between1
and75
nested levels. This field will produce a limit error if the operation falls out of bounds. Note that fields can still be set to nullable or non-nullable. If a non-nullable field produces an error, the error will be thrown upwards to the first nullable field available.- Returns:
this
-
resolverCountLimit
Sets the value ofCfnGraphQLApiProps.getResolverCountLimit()
- Parameters:
resolverCountLimit
- The maximum number of resolvers that can be invoked in a single request. The default value is0
(or unspecified), which will set the limit to10000
. When specified, the limit value can be between1
and10000
. This field will produce a limit error if the operation falls out of bounds.- Returns:
this
-
tags
Sets the value ofCfnGraphQLApiProps.getTags()
- Parameters:
tags
- An arbitrary set of tags (key-value pairs) for this GraphQL API.- Returns:
this
-
userPoolConfig
Sets the value ofCfnGraphQLApiProps.getUserPoolConfig()
- Parameters:
userPoolConfig
- Optional authorization configuration for using Amazon Cognito user pools with your GraphQL endpoint.- Returns:
this
-
userPoolConfig
@Stability(Stable) public CfnGraphQLApiProps.Builder userPoolConfig(CfnGraphQLApi.UserPoolConfigProperty userPoolConfig) Sets the value ofCfnGraphQLApiProps.getUserPoolConfig()
- Parameters:
userPoolConfig
- Optional authorization configuration for using Amazon Cognito user pools with your GraphQL endpoint.- Returns:
this
-
visibility
Sets the value ofCfnGraphQLApiProps.getVisibility()
- Parameters:
visibility
- Sets the scope of the GraphQL API to public (GLOBAL
) or private (PRIVATE
). By default, the scope is set toGlobal
if no value is provided.WARNING : If
Visibility
has not been defined, explicitly setting it toGLOBAL
in a template/stack update will result in an API replacement and new DNS values.- Returns:
this
-
xrayEnabled
Sets the value ofCfnGraphQLApiProps.getXrayEnabled()
- Parameters:
xrayEnabled
- A flag indicating whether to use AWS X-Ray tracing for thisGraphqlApi
.- Returns:
this
-
xrayEnabled
Sets the value ofCfnGraphQLApiProps.getXrayEnabled()
- Parameters:
xrayEnabled
- A flag indicating whether to use AWS X-Ray tracing for thisGraphqlApi
.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnGraphQLApiProps>
- Returns:
- a new instance of
CfnGraphQLApiProps
- Throws:
NullPointerException
- if any required attribute was not provided
-