Class HttpDataSource

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IGrantable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.98.0 (build 00b106d)", date="2024-05-02T15:58:21.586Z") @Stability(Stable) public class HttpDataSource extends BackedDataSource
An AppSync datasource backed by a http endpoint.

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

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    A fluent builder for HttpDataSource.

    Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

    software.amazon.jsii.JsiiObject.InitializationMode

    Nested classes/interfaces inherited from interface software.constructs.IConstruct

    software.constructs.IConstruct.Jsii$Default

    Nested classes/interfaces inherited from interface software.amazon.awscdk.services.iam.IGrantable

    IGrantable.Jsii$Default
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    HttpDataSource(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    HttpDataSource(software.amazon.jsii.JsiiObjectRef objRef)
     
     
    HttpDataSource(software.constructs.Construct scope, String id, HttpDataSourceProps props)
     
  • Method Summary

    Methods inherited from class software.amazon.awscdk.services.appsync.BackedDataSource

    getGrantPrincipal

    Methods inherited from class software.amazon.awscdk.services.appsync.BaseDataSource

    createFunction, createResolver, getApi, getDs, getName, getServiceRole, setApi, setServiceRole

    Methods inherited from class software.constructs.Construct

    getNode, isConstruct, toString

    Methods inherited from class software.amazon.jsii.JsiiObject

    jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Constructor Details

    • HttpDataSource

      protected HttpDataSource(software.amazon.jsii.JsiiObjectRef objRef)
    • HttpDataSource

      protected HttpDataSource(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • HttpDataSource

      @Stability(Stable) public HttpDataSource(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull HttpDataSourceProps props)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      props - This parameter is required.