software.aws.awsprototypingsdk.openapigateway.CognitoAuthorizer Maven / Gradle / Ivy
Show all versions of open-api-gateway Show documentation
package software.aws.awsprototypingsdk.openapigateway;
/**
* (experimental) An authorizer that uses Cognito identity or access tokens.
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.82.0 (build 2d2ddd7)", date = "2023-08-15T05:38:04.567Z")
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@software.amazon.jsii.Jsii(module = software.aws.awsprototypingsdk.openapigateway.$Module.class, fqn = "@aws-prototyping-sdk/open-api-gateway.CognitoAuthorizer")
public class CognitoAuthorizer extends software.aws.awsprototypingsdk.openapigateway.Authorizer {
protected CognitoAuthorizer(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
}
protected CognitoAuthorizer(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
super(initializationMode);
}
/**
* @param props This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public CognitoAuthorizer(final @org.jetbrains.annotations.NotNull software.aws.awsprototypingsdk.openapigateway.CognitoAuthorizerProps props) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(props, "props is required") });
}
/**
* (experimental) Returns this authorizer with scopes applied, intended for usage in individual operations where scopes may differ on a per-operation basis.
*
* @see https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-method.html#cfn-apigateway-method-authorizationscopes
* @param authorizationScopes the scopes to apply. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public @org.jetbrains.annotations.NotNull software.aws.awsprototypingsdk.openapigateway.CognitoAuthorizer withScopes(final @org.jetbrains.annotations.NotNull java.lang.String... authorizationScopes) {
return software.amazon.jsii.Kernel.call(this, "withScopes", software.amazon.jsii.NativeType.forClass(software.aws.awsprototypingsdk.openapigateway.CognitoAuthorizer.class), java.util.Arrays.