Interface AwsIamConfig

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
AwsIamConfig.Jsii$Proxy

@Generated(value="jsii-pacmak/1.99.0 (build 8f757e4)", date="2024-06-13T18:49:14.588Z") @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