Class CfnGraphQLApi.AdditionalAuthenticationProviderProperty.Builder
java.lang.Object
software.amazon.awscdk.services.appsync.CfnGraphQLApi.AdditionalAuthenticationProviderProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGraphQLApi.AdditionalAuthenticationProviderProperty>
- Enclosing interface:
- CfnGraphQLApi.AdditionalAuthenticationProviderProperty
@Stability(Stable)
public static final class CfnGraphQLApi.AdditionalAuthenticationProviderProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGraphQLApi.AdditionalAuthenticationProviderProperty>
A builder for
CfnGraphQLApi.AdditionalAuthenticationProviderProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionauthenticationType
(String authenticationType) build()
Builds the configured instance.lambdaAuthorizerConfig
(IResolvable lambdaAuthorizerConfig) lambdaAuthorizerConfig
(CfnGraphQLApi.LambdaAuthorizerConfigProperty lambdaAuthorizerConfig) openIdConnectConfig
(IResolvable openIdConnectConfig) openIdConnectConfig
(CfnGraphQLApi.OpenIDConnectConfigProperty openIdConnectConfig) userPoolConfig
(IResolvable userPoolConfig) userPoolConfig
(CfnGraphQLApi.CognitoUserPoolConfigProperty userPoolConfig)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
authenticationType
@Stability(Stable) public CfnGraphQLApi.AdditionalAuthenticationProviderProperty.Builder authenticationType(String authenticationType) - Parameters:
authenticationType
- The authentication type for API key, AWS Identity and Access Management , OIDC, Amazon Cognito user pools , or AWS Lambda . This parameter is required. Valid Values:API_KEY
|AWS_IAM
|OPENID_CONNECT
|AMAZON_COGNITO_USER_POOLS
|AWS_LAMBDA
- Returns:
this
-
lambdaAuthorizerConfig
@Stability(Stable) public CfnGraphQLApi.AdditionalAuthenticationProviderProperty.Builder lambdaAuthorizerConfig(IResolvable lambdaAuthorizerConfig) Sets the value ofCfnGraphQLApi.AdditionalAuthenticationProviderProperty.getLambdaAuthorizerConfig()
- Parameters:
lambdaAuthorizerConfig
- Configuration for AWS Lambda function authorization.- Returns:
this
-
lambdaAuthorizerConfig
@Stability(Stable) public CfnGraphQLApi.AdditionalAuthenticationProviderProperty.Builder lambdaAuthorizerConfig(CfnGraphQLApi.LambdaAuthorizerConfigProperty lambdaAuthorizerConfig) Sets the value ofCfnGraphQLApi.AdditionalAuthenticationProviderProperty.getLambdaAuthorizerConfig()
- Parameters:
lambdaAuthorizerConfig
- Configuration for AWS Lambda function authorization.- Returns:
this
-
openIdConnectConfig
@Stability(Stable) public CfnGraphQLApi.AdditionalAuthenticationProviderProperty.Builder openIdConnectConfig(IResolvable openIdConnectConfig) - Parameters:
openIdConnectConfig
- The OIDC configuration.- Returns:
this
-
openIdConnectConfig
@Stability(Stable) public CfnGraphQLApi.AdditionalAuthenticationProviderProperty.Builder openIdConnectConfig(CfnGraphQLApi.OpenIDConnectConfigProperty openIdConnectConfig) - Parameters:
openIdConnectConfig
- The OIDC configuration.- Returns:
this
-
userPoolConfig
@Stability(Stable) public CfnGraphQLApi.AdditionalAuthenticationProviderProperty.Builder userPoolConfig(IResolvable userPoolConfig) - Parameters:
userPoolConfig
- The Amazon Cognito user pool configuration.- Returns:
this
-
userPoolConfig
@Stability(Stable) public CfnGraphQLApi.AdditionalAuthenticationProviderProperty.Builder userPoolConfig(CfnGraphQLApi.CognitoUserPoolConfigProperty userPoolConfig) - Parameters:
userPoolConfig
- The Amazon Cognito user pool configuration.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnGraphQLApi.AdditionalAuthenticationProviderProperty>
- Returns:
- a new instance of
CfnGraphQLApi.AdditionalAuthenticationProviderProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-