cdk-http-pinger
v0.1.222
Published
HTTP Pinger for AWS CDK
Downloads
40
Readme
cdk-http-pinger
HTTP Pinger for AWS CDK
Sample
import { Pinger } from 'cdk-http-pinger';
const app = new App();
const stack = new Stack(app, 'my-stack');
const pinger = new Pinger(stack, 'Pinger', { url: 'https://aws.amazon.com' });
new CfnOutput(stack, 'HttpStatus', { value: pinger.httpStatus });
new CfnOutput(stack, 'HtmlTitle', { value: pinger.htmlTitle });
new CfnOutput(stack, 'URL', { value: pinger.url });
new CfnOutput(stack, 'Body', { value: pinger.body });