Uploads request and response VTL templates for an API ID, type, field and datasource
Project description
This is intended to be used in a CI/CD process for managing AppSync resolvers. Manages both UNIT and PIPELINE resolvers. For PIPELINE resolvers referenced functions must exist prior to creating or updating the resolver.
Usage
python -m appsync_resolver_uploader --aws-access-key-id accesskey --aws-secret-access-key secret --aws-region region --api-id id --type-name type --field-name field --datasource-name datasource --request-mapping-template request.vtl --response-mapping-template response.vtl --pipeline-config name,datasource;name,datasource
Arguments
aws-access-key-id The AWS Access Key ID for the IAM user
aws-secret-access-key The AWS Secret Access Key for the IAM user
aws-region The AWS Region of the AppSync API to update
api-id The API ID of the AppSync API to upload the schema to
type-name The name of the GraphQL Type
field-name The name of the GraphQL field to attach the resolver to
datasource-name The name of the AppSync data source for which the resolver is being created - not used for pipeline resolvers
request-mapping-template The request mapping VTL file to upload
response-mapping-template The response mapping VTL file to upload
pipeline-config The list of functions to use in this resolver. Including this list changes the resolver to a pipeline
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for appsync_resolver_uploader-0.0.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9907f5b2bafc0ffa9263c58331e109b204622cb9cd1f657502517a06f7180aa |
|
MD5 | aebb54fcaccb675d39323079f13a39fe |
|
BLAKE2b-256 | c9b3487db2eafcfa79f9e753c7ce1cd6de744bea5170a4b603b407f9ded7d3fe |