Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
@param({
description: 'The name of the application',
required: true,
})
name: string,
@param({
description: 'The region to launch the stack in. Defaults to us-west-2',
required: false,
default: 'us-west-2'
})
region: string
) {
const transformer = new GraphQLTransform({
transformers: [
new AppSyncTransformer(),
new DynamoDBTransformer(),
new AuthTransformer()
]
})
const cfdoc = transformer.transform(schema.readSync());
const out = await updateStack(cfdoc, name, region)
return 'Application update successfully started. It may take a few minutes to finish.'
}
}
@param({
description: 'The name of the application',
required: true,
})
name: string,
@param({
description: 'The region to launch the stack in. Defaults to us-west-2',
required: false,
default: 'us-west-2'
})
region: string
) {
const transformer = new GraphQLTransform({
transformers: [
new AppSyncTransformer(),
new DynamoDBTransformer(),
new AuthTransformer()
]
})
const cfdoc = transformer.transform(schema.readSync());
const out = await createStack(cfdoc, name, region)
return 'Application creation successfully started. It may take a few minutes to finish.'
}
}