Interface AwsIamConfig
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
AwsIamConfig.Jsii$Proxy
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-10-05T03:43:38.818Z")
@Stability(Stable)
public interface AwsIamConfig
extends software.amazon.jsii.JsiiSerializable
The authorization config in case the HTTP endpoint requires authorization.
Example:
GraphqlApi api = GraphqlApi.Builder.create(this, "api") .name("api") .definition(Definition.fromFile(join(__dirname, "schema.graphql"))) .build(); HttpDataSource httpDs = api.addHttpDataSource("ds", "https://states.amazonaws.com", HttpDataSourceOptions.builder() .name("httpDsWithStepF") .description("from appsync to StepFunctions Workflow") .authorizationConfig(AwsIamConfig.builder() .signingRegion("us-east-1") .signingServiceName("states") .build()) .build()); httpDs.createResolver("MutationCallStepFunctionResolver", BaseResolverProps.builder() .typeName("Mutation") .fieldName("callStepFunction") .requestMappingTemplate(MappingTemplate.fromFile("request.vtl")) .responseMappingTemplate(MappingTemplate.fromFile("response.vtl")) .build());
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forAwsIamConfig
static final class
An implementation forAwsIamConfig
-
Method Summary
Modifier and TypeMethodDescriptionstatic AwsIamConfig.Builder
builder()
The signing region for AWS IAM authorization.The signing service name for AWS IAM authorization.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getSigningRegion
The signing region for AWS IAM authorization. -
getSigningServiceName
The signing service name for AWS IAM authorization. -
builder
- Returns:
- a
AwsIamConfig.Builder
ofAwsIamConfig
-