interface AwsIamConfig
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.AppSync.AwsIamConfig |
Java | software.amazon.awscdk.services.appsync.AwsIamConfig |
Python | aws_cdk.aws_appsync.AwsIamConfig |
TypeScript (source) | @aws-cdk/aws-appsync » AwsIamConfig |
The authorization config in case the HTTP endpoint requires authorization.
Example
const api = new appsync.GraphqlApi(this, 'api', {
name: 'api',
schema: appsync.Schema.fromAsset(path.join(__dirname, 'schema.graphql')),
});
const httpDs = api.addHttpDataSource(
'ds',
'https://states.amazonaws.com',
{
name: 'httpDsWithStepF',
description: 'from appsync to StepFunctions Workflow',
authorizationConfig: {
signingRegion: 'us-east-1',
signingServiceName: 'states',
}
}
);
httpDs.createResolver({
typeName: 'Mutation',
fieldName: 'callStepFunction',
requestMappingTemplate: appsync.MappingTemplate.fromFile('request.vtl'),
responseMappingTemplate: appsync.MappingTemplate.fromFile('response.vtl'),
});
Properties
Name | Type | Description |
---|---|---|
signing | string | The signing region for AWS IAM authorization. |
signing | string | The signing service name for AWS IAM authorization. |
signingRegion
Type:
string
The signing region for AWS IAM authorization.
signingServiceName
Type:
string
The signing service name for AWS IAM authorization.