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());
 
  • Method Details

    • getSigningRegion

      @Stability(Stable) @NotNull String getSigningRegion()
      The signing region for AWS IAM authorization.
    • getSigningServiceName

      @Stability(Stable) @NotNull String getSigningServiceName()
      The signing service name for AWS IAM authorization.
    • builder

      @Stability(Stable) static AwsIamConfig.Builder builder()
      Returns:
      a AwsIamConfig.Builder of AwsIamConfig