Interface HttpDataSourceOptions
- All Superinterfaces:
DataSourceOptions
,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
HttpDataSourceOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-22T02:23:57.185Z")
@Stability(Stable)
public interface HttpDataSourceOptions
extends software.amazon.jsii.JsiiSerializable, DataSourceOptions
Optional configuration for Http data sources.
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 forHttpDataSourceOptions
static final class
An implementation forHttpDataSourceOptions
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default AwsIamConfig
The authorization config in case the HTTP endpoint requires authorization.Methods inherited from interface software.amazon.awscdk.services.appsync.DataSourceOptions
getDescription, getName
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAuthorizationConfig
The authorization config in case the HTTP endpoint requires authorization.Default: - none
-
builder
- Returns:
- a
HttpDataSourceOptions.Builder
ofHttpDataSourceOptions
-