Class HttpDataSourceOptions
(experimental) Optional configuration for Http data sources.
Inheritance
System.Object
HttpDataSourceOptions
Namespace: Amazon.CDK.AWS.AppSync
Assembly: Amazon.CDK.AWS.AppSync.dll
Syntax (csharp)
public class HttpDataSourceOptions : Object, IHttpDataSourceOptions, IDataSourceOptions
Syntax (vb)
Public Class HttpDataSourceOptions
Inherits Object
Implements IHttpDataSourceOptions, IDataSourceOptions
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
HttpDataSourceOptions() |
Properties
AuthorizationConfig | (experimental) The authorization config in case the HTTP endpoint requires authorization. |
Description | (experimental) The description of the data source. |
Name | (experimental) The name of the data source, overrides the id given by cdk. |
Constructors
HttpDataSourceOptions()
public HttpDataSourceOptions()
Properties
AuthorizationConfig
(experimental) The authorization config in case the HTTP endpoint requires authorization.
public IAwsIamConfig AuthorizationConfig { get; set; }
Property Value
Remarks
Default: - none
Stability: Experimental
Description
(experimental) The description of the data source.
public string Description { get; set; }
Property Value
System.String
Remarks
Default: - No description
Stability: Experimental
Name
(experimental) The name of the data source, overrides the id given by cdk.
public string Name { get; set; }
Property Value
System.String
Remarks
Default: - generated by cdk given the id
Stability: Experimental