Interface AppSyncOpenIdConnectConfig
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
AppSyncOpenIdConnectConfig.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-13T16:09:58.876Z")
@Stability(Stable)
public interface AppSyncOpenIdConnectConfig
extends software.amazon.jsii.JsiiSerializable
Configuration for OpenID Connect authorization in AppSync.
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.*;
AppSyncOpenIdConnectConfig appSyncOpenIdConnectConfig = AppSyncOpenIdConnectConfig.builder()
.oidcProvider("oidcProvider")
// the properties below are optional
.clientId("clientId")
.tokenExpiryFromAuth(123)
.tokenExpiryFromIssue(123)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forAppSyncOpenIdConnectConfigstatic final classAn implementation forAppSyncOpenIdConnectConfig -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default StringThe client identifier of the Relying party at the OpenID identity provider.The issuer for the OIDC configuration.default NumberThe number of milliseconds an OIDC token is valid after being authenticated by OIDC provider.default NumberThe number of milliseconds an OIDC token is valid after being issued to a user.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getOidcProvider
The issuer for the OIDC configuration.The issuer returned by discovery must exactly match the value of
issin the OIDC token. -
getClientId
The client identifier of the Relying party at the OpenID identity provider.A regular expression can be specified so AppSync can validate against multiple client identifiers at a time.
Default: - * (All)
Example:
-"ABCD|CDEF";
-
getTokenExpiryFromAuth
The number of milliseconds an OIDC token is valid after being authenticated by OIDC provider.auth_timeclaim in OIDC token is required for this validation to work.Default: - no validation
-
getTokenExpiryFromIssue
The number of milliseconds an OIDC token is valid after being issued to a user.This validation uses
iatclaim of OIDC token.Default: - no validation
-
builder
- Returns:
- a
AppSyncOpenIdConnectConfig.BuilderofAppSyncOpenIdConnectConfig
-