Class HttpDataSource
An AppSync datasource backed by a http endpoint.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.AppSync
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class HttpDataSource : BackedDataSource, IGrantable
Syntax (vb)
Public Class HttpDataSource
Inherits BackedDataSource
Implements IGrantable
Remarks
ExampleMetadata: infused
Examples
var api = new GraphqlApi(this, "api", new GraphqlApiProps {
Name = "api",
Definition = Definition.FromFile(Join(__dirname, "schema.graphql"))
});
var httpDs = api.AddHttpDataSource("ds", "https://states.amazonaws.com", new HttpDataSourceOptions {
Name = "httpDsWithStepF",
Description = "from appsync to StepFunctions Workflow",
AuthorizationConfig = new AwsIamConfig {
SigningRegion = "us-east-1",
SigningServiceName = "states"
}
});
httpDs.CreateResolver("MutationCallStepFunctionResolver", new BaseResolverProps {
TypeName = "Mutation",
FieldName = "callStepFunction",
RequestMappingTemplate = MappingTemplate.FromFile("request.vtl"),
ResponseMappingTemplate = MappingTemplate.FromFile("response.vtl")
});
Synopsis
Constructors
HttpDataSource(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
HttpDataSource(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
HttpDataSource(Construct, String, IHttpDataSourceProps) |
Constructors
HttpDataSource(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected HttpDataSource(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
HttpDataSource(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected HttpDataSource(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
HttpDataSource(Construct, String, IHttpDataSourceProps)
public HttpDataSource(Construct scope, string id, IHttpDataSourceProps props)
Parameters
- scope Constructs.Construct
- id System.String
- props IHttpDataSourceProps