Interface CfnApi.AuthProviderProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnApi.AuthProviderProperty.Jsii$Proxy
- Enclosing class:
CfnApi
@Stability(Stable)
public static interface CfnApi.AuthProviderProperty
extends software.amazon.jsii.JsiiSerializable
An auth provider for the AppSync API.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.appsync.*;
AuthProviderProperty authProviderProperty = AuthProviderProperty.builder()
.authType("authType")
// the properties below are optional
.cognitoConfig(CognitoConfigProperty.builder()
.awsRegion("awsRegion")
.userPoolId("userPoolId")
// the properties below are optional
.appIdClientRegex("appIdClientRegex")
.build())
.lambdaAuthorizerConfig(LambdaAuthorizerConfigProperty.builder()
.authorizerUri("authorizerUri")
// the properties below are optional
.authorizerResultTtlInSeconds(123)
.identityValidationExpression("identityValidationExpression")
.build())
.openIdConnectConfig(OpenIDConnectConfigProperty.builder()
.issuer("issuer")
// the properties below are optional
.authTtl(123)
.clientId("clientId")
.iatTtl(123)
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnApi.AuthProviderPropertystatic final classAn implementation forCfnApi.AuthProviderProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Security configuration for your AppSync API.default ObjectOptional authorization configuration for using Amazon Cognito user pools with your API endpoint.default ObjectA LambdaAuthorizerConfig holds configuration on how to authorize AWS AppSync API access when using the AWS_LAMBDA authorizer mode.default ObjectThe OpenID Connect configuration.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAuthType
Security configuration for your AppSync API.- See Also:
-
getCognitoConfig
Optional authorization configuration for using Amazon Cognito user pools with your API endpoint.- See Also:
-
getLambdaAuthorizerConfig
A LambdaAuthorizerConfig holds configuration on how to authorize AWS AppSync API access when using the AWS_LAMBDA authorizer mode.Be aware that an AWS AppSync API may have only one Lambda authorizer configured at a time.
- See Also:
-
getOpenIdConnectConfig
The OpenID Connect configuration.- See Also:
-
builder
-