Interface AuthorizationConfig
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
AuthorizationConfig.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-10-31T19:12:52.979Z")
@Stability(Stable)
public interface AuthorizationConfig
extends software.amazon.jsii.JsiiSerializable
Configuration of the API authorization modes.
Example:
import software.amazon.awscdk.services.appsync.*; GraphqlApi api = GraphqlApi.Builder.create(this, "api") .name("api") .definition(Definition.fromFile("schema.graphql")) .authorizationConfig(AuthorizationConfig.builder() .defaultAuthorization(AuthorizationMode.builder().authorizationType(AuthorizationType.IAM).build()) .build()) .build(); Rule rule = Rule.Builder.create(this, "Rule") .schedule(Schedule.rate(Duration.hours(1))) .build(); rule.addTarget(AppSync.Builder.create(api) .graphQLOperation("mutation Publish($message: String!){ publish(message: $message) { message } }") .variables(RuleTargetInput.fromObject(Map.of( "message", "hello world"))) .build());
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forAuthorizationConfig
static final class
An implementation forAuthorizationConfig
-
Method Summary
Modifier and TypeMethodDescriptionstatic AuthorizationConfig.Builder
builder()
default List<AuthorizationMode>
Additional authorization modes.default AuthorizationMode
Optional authorization configuration.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAdditionalAuthorizationModes
Additional authorization modes.Default: - No other modes
-
getDefaultAuthorization
Optional authorization configuration.Default: - API Key authorization
-
builder
- Returns:
- a
AuthorizationConfig.Builder
ofAuthorizationConfig
-