Generation

generate functionMon, 16 Jan 2023

create an interface that uses AWS Cloudformation to mutate resources and add headers to the HTTP requests that the AWS SDK makes

Script const { CloudFormation } = require('@aws-cdk/aws-cloudformation'); const { HeaderRequestOptions } = require('aws-sdk/lib/request'); const cloudformation = new CloudFormation(); const options = { requestOptions: { customUserAgent: 'my-custom-user-agent', customRequestHeaders: { 'X-Test-Header': 'Test-Value' }, applyChecksum: true } } cloudformation.createStack(options);

Questions about programming?Chat with your personal AI assistant