Class CfnApiPropsMixin.AuthProviderProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.appsync.CfnApiPropsMixin.AuthProviderProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnApiPropsMixin.AuthProviderProperty>
- Enclosing interface:
CfnApiPropsMixin.AuthProviderProperty
@Stability(Stable)
public static final class CfnApiPropsMixin.AuthProviderProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnApiPropsMixin.AuthProviderProperty>
A builder for
CfnApiPropsMixin.AuthProviderProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnApiPropsMixin.AuthProviderProperty.getAuthType()build()Builds the configured instance.cognitoConfig(CfnApiPropsMixin.CognitoConfigProperty cognitoConfig) Sets the value ofCfnApiPropsMixin.AuthProviderProperty.getCognitoConfig()cognitoConfig(IResolvable cognitoConfig) Sets the value ofCfnApiPropsMixin.AuthProviderProperty.getCognitoConfig()lambdaAuthorizerConfig(CfnApiPropsMixin.LambdaAuthorizerConfigProperty lambdaAuthorizerConfig) Sets the value ofCfnApiPropsMixin.AuthProviderProperty.getLambdaAuthorizerConfig()lambdaAuthorizerConfig(IResolvable lambdaAuthorizerConfig) Sets the value ofCfnApiPropsMixin.AuthProviderProperty.getLambdaAuthorizerConfig()openIdConnectConfig(CfnApiPropsMixin.OpenIDConnectConfigProperty openIdConnectConfig) Sets the value ofCfnApiPropsMixin.AuthProviderProperty.getOpenIdConnectConfig()openIdConnectConfig(IResolvable openIdConnectConfig) Sets the value ofCfnApiPropsMixin.AuthProviderProperty.getOpenIdConnectConfig()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
authType
Sets the value ofCfnApiPropsMixin.AuthProviderProperty.getAuthType()- Parameters:
authType- The authorization type.- Returns:
this
-
cognitoConfig
@Stability(Stable) public CfnApiPropsMixin.AuthProviderProperty.Builder cognitoConfig(IResolvable cognitoConfig) Sets the value ofCfnApiPropsMixin.AuthProviderProperty.getCognitoConfig()- Parameters:
cognitoConfig- Describes an Amazon Cognito user pool configuration.- Returns:
this
-
cognitoConfig
@Stability(Stable) public CfnApiPropsMixin.AuthProviderProperty.Builder cognitoConfig(CfnApiPropsMixin.CognitoConfigProperty cognitoConfig) Sets the value ofCfnApiPropsMixin.AuthProviderProperty.getCognitoConfig()- Parameters:
cognitoConfig- Describes an Amazon Cognito user pool configuration.- Returns:
this
-
lambdaAuthorizerConfig
@Stability(Stable) public CfnApiPropsMixin.AuthProviderProperty.Builder lambdaAuthorizerConfig(IResolvable lambdaAuthorizerConfig) Sets the value ofCfnApiPropsMixin.AuthProviderProperty.getLambdaAuthorizerConfig()- Parameters:
lambdaAuthorizerConfig- ALambdaAuthorizerConfigspecifies how to authorize AWS AppSync API access when using theAWS_LAMBDAauthorizer mode. Be aware that an AWS AppSync API can have only one AWS Lambda authorizer configured at a time.- Returns:
this
-
lambdaAuthorizerConfig
@Stability(Stable) public CfnApiPropsMixin.AuthProviderProperty.Builder lambdaAuthorizerConfig(CfnApiPropsMixin.LambdaAuthorizerConfigProperty lambdaAuthorizerConfig) Sets the value ofCfnApiPropsMixin.AuthProviderProperty.getLambdaAuthorizerConfig()- Parameters:
lambdaAuthorizerConfig- ALambdaAuthorizerConfigspecifies how to authorize AWS AppSync API access when using theAWS_LAMBDAauthorizer mode. Be aware that an AWS AppSync API can have only one AWS Lambda authorizer configured at a time.- Returns:
this
-
openIdConnectConfig
@Stability(Stable) public CfnApiPropsMixin.AuthProviderProperty.Builder openIdConnectConfig(IResolvable openIdConnectConfig) Sets the value ofCfnApiPropsMixin.AuthProviderProperty.getOpenIdConnectConfig()- Parameters:
openIdConnectConfig- Describes an OpenID Connect (OIDC) configuration.- Returns:
this
-
openIdConnectConfig
@Stability(Stable) public CfnApiPropsMixin.AuthProviderProperty.Builder openIdConnectConfig(CfnApiPropsMixin.OpenIDConnectConfigProperty openIdConnectConfig) Sets the value ofCfnApiPropsMixin.AuthProviderProperty.getOpenIdConnectConfig()- Parameters:
openIdConnectConfig- Describes an OpenID Connect (OIDC) configuration.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnApiPropsMixin.AuthProviderProperty>- Returns:
- a new instance of
CfnApiPropsMixin.AuthProviderProperty - Throws:
NullPointerException- if any required attribute was not provided
-