software.aws.awsprototypingsdk.openapigateway.Authorizers Maven / Gradle / Ivy
Show all versions of open-api-gateway Show documentation
package software.aws.awsprototypingsdk.openapigateway;
/**
* (experimental) Class used to construct authorizers for use in the OpenApiGatewayLambdaApi construct.
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.82.0 (build 2d2ddd7)", date = "2023-08-15T05:38:04.565Z")
@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.Authorizers")
public class Authorizers extends software.amazon.jsii.JsiiObject {
protected Authorizers(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
}
protected Authorizers(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
super(initializationMode);
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Authorizers() {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this);
}
/**
* (experimental) A Cognito User Pools authorizer.
*
* @param props This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public static @org.jetbrains.annotations.NotNull software.aws.awsprototypingsdk.openapigateway.CognitoAuthorizer cognito(final @org.jetbrains.annotations.NotNull software.aws.awsprototypingsdk.openapigateway.CognitoAuthorizerProps props) {
return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.aws.awsprototypingsdk.openapigateway.Authorizers.class, "cognito", software.amazon.jsii.NativeType.forClass(software.aws.awsprototypingsdk.openapigateway.CognitoAuthorizer.class), new Object[] { java.util.Objects.requireNonNull(props, "props is required") });
}
/**
* (experimental) A custom authorizer.
*
* @param props This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public static @org.jetbrains.annotations.NotNull software.aws.awsprototypingsdk.openapigateway.CustomAuthorizer custom(final @org.jetbrains.annotations.NotNull software.aws.awsprototypingsdk.openapigateway.CustomAuthorizerProps props) {
return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.aws.awsprototypingsdk.openapigateway.Authorizers.class, "custom", software.amazon.jsii.NativeType.forClass(software.aws.awsprototypingsdk.openapigateway.CustomAuthorizer.class), new Object[] { java.util.Objects.requireNonNull(props, "props is required") });
}
/**
* (experimental) An IAM authorizer which uses AWS signature version 4 to authorize requests.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public static @org.jetbrains.annotations.NotNull software.aws.awsprototypingsdk.openapigateway.IamAuthorizer iam() {
return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.aws.awsprototypingsdk.openapigateway.Authorizers.class, "iam", software.amazon.jsii.NativeType.forClass(software.aws.awsprototypingsdk.openapigateway.IamAuthorizer.class));
}
/**
* (experimental) No authorizer.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public static @org.jetbrains.annotations.NotNull software.aws.awsprototypingsdk.openapigateway.NoneAuthorizer none() {
return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.aws.awsprototypingsdk.openapigateway.Authorizers.class, "none", software.amazon.jsii.NativeType.forClass(software.aws.awsprototypingsdk.openapigateway.NoneAuthorizer.class));
}
}