Class HttpDataSource
(experimental) An AppSync datasource backed by a http endpoint.
Inherited Members
Namespace: Amazon.CDK.AWS.AppSync
Assembly: Amazon.CDK.AWS.AppSync.dll
Syntax (csharp)
public class HttpDataSource : BackedDataSource, IConstruct, IDependable, IGrantable
Syntax (vb)
Public Class HttpDataSource
Inherits BackedDataSource
Implements IConstruct, IDependable, IGrantable
Remarks
Stability: Experimental
ExampleMetadata: infused
Examples
var api = new GraphqlApi(this, "api", new GraphqlApiProps {
Name = "api",
Schema = Schema.FromAsset(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(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
Remarks
Stability: Experimental
Implements
Constructs.IConstruct