AppSyncHttpDataSourceProps Struct
Properties for an AppSync http datasource.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_appsync as appsync } from 'aws-cdk-lib';
import { aws_iam as iam } from 'aws-cdk-lib';
import { aws_appsync as interfaces_appsync } from 'aws-cdk-lib/interfaces';
declare const apiRef: interfaces_appsync.IApiRef;
declare const role: iam.Role;
const appSyncHttpDataSourceProps: appsync.AppSyncHttpDataSourceProps = {
api: apiRef,
endpoint: 'endpoint',
// the properties below are optional
authorizationConfig: {
signingRegion: 'signingRegion',
signingServiceName: 'signingServiceName',
},
description: 'description',
name: 'name',
serviceRole: role,
};
Properties
authorizationConfigoptionalAppSyncAwsIamConfigauthorization_configoptionalAppSyncAwsIamConfigauthorizationConfigoptionalAppSyncAwsIamConfigAuthorizationConfigoptionalAppSyncAwsIamConfigAuthorizationConfigoptionalAppSyncAwsIamConfig= none#The authorization config in case the HTTP endpoint requires authorization.
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string= None#The description of the data source.
The http endpoint.
The name of the data source.
Default: id of data source
The only allowed pattern is: {[_A-Za-z][_0-9A-Za-z]*}. Any invalid characters will be automatically removed.