interface AwsIamConfig
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.AppSync.AwsIamConfig |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsappsync#AwsIamConfig |
Java | software.amazon.awscdk.services.appsync.AwsIamConfig |
Python | aws_cdk.aws_appsync.AwsIamConfig |
TypeScript (source) | aws-cdk-lib » aws_appsync » AwsIamConfig |
The authorization config in case the HTTP endpoint requires authorization.
Example
const api = new appsync.GraphqlApi(this, 'api', {
name: 'api',
definition: appsync.Definition.fromFile(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('MutationCallStepFunctionResolver', {
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.