{"_id":"@aws-cdk/aws-custom-resources","_rev":"8-42388cc8ebe3402a78f9edbbb719fb74","name":"@aws-cdk/aws-custom-resources","dist-tags":{"latest":"0.8.1"},"versions":{"0.8.0":{"name":"@aws-cdk/aws-custom-resources","version":"0.8.0","description":"CDK Constructs to make it easier to build custom resources","main":"lib/index.js","types":"lib/index.d.ts","jsii":{"outdir":"dist","targets":{"java":{"package":"com.amazonaws.cdk.aws.customresources","maven":{"groupId":"com.amazonaws.cdk","artifactId":"aws-customresources"}},"dotnet":{"namespace":"Amazon.CDK.AWS.CustomResources"}}},"repository":{"type":"git","url":"git://github.com/awslabs/aws-cdk.git"},"scripts":{"build":"cdk-build","watch":"cdk-watch","lint":"cdk-lint","test":"cdk-test","integ":"cdk-integ","pkglint":"pkglint -f"},"keywords":["aws","cdk","constructs","custom-resources"],"author":{"name":"Amazon Web Services","url":"https://aws.amazon.com"},"license":"Apache-2.0","devDependencies":{"@aws-cdk/assert":"^0.8.0+bb95676","cdk-build-tools":"^0.8.0+bb95676","cdk-integ-tools":"^0.8.0+bb95676","pkglint":"^0.8.0+bb95676"},"dependencies":{"@aws-cdk/aws-cloudformation":"^0.8.0+bb95676","@aws-cdk/aws-iam":"^0.8.0+bb95676","@aws-cdk/aws-lambda":"^0.8.0+bb95676","@aws-cdk/aws-sns":"^0.8.0+bb95676","@aws-cdk/cdk":"^0.8.0+bb95676"},"_resolved":"","_integrity":"","_from":"file:/var/folders/n2/6v4_tbz97ws0h4bn5gbyvzb0m8vcjb/T/tmp.RsFoCAtz/y/npm/@aws-cdk/aws-custom-resources/aws-custom-resources-0.8.0.tgz","bugs":{"url":"https://github.com/awslabs/aws-cdk/issues"},"homepage":"https://github.com/awslabs/aws-cdk#readme","_id":"@aws-cdk/aws-custom-resources@0.8.0","_npmVersion":"6.1.0","_nodeVersion":"8.9.4","_npmUser":{"name":"eladb","email":"elad.benisrael@gmail.com"},"dist":{"integrity":"sha512-bFcnCfuqvP30xcts05Em1qVJSKheG/i//TqNLXi3N7xwAdS9Y4Lx4boeT06jWlAcKD3jFyHymZdgY9LPTcdjgw==","shasum":"ccef901a8f583edd6048298328aa88b2bc5a132c","tarball":"https://registry.npmjs.org/@aws-cdk/aws-custom-resources/-/aws-custom-resources-0.8.0.tgz","fileCount":24,"unpackedSize":226552,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbYGTbCRA9TVsSAnZWagAA1ZYP/1JivZCWBoijpkO55qfE\naeJY6ZlOpP94zetZ1tj6Ssh3Vha27e4QauRlFunNgm2NwZxwPPKYZi4+A/4/\n1XcncKyuiLJcWKbFLB32x4+f+shfxELyJuML+j7QFromkOWjUvrMXB0FhWXZ\nzFGJK6gqRoJahloyEIKaqL200yptqs3WqAGA+9et9k6fLf3letcMXPHS38T4\nn9oUQu837Z0+fNuK9k+sVblji94oFKM7wjjdNIEjHEk/Tm3Ba4et3GvLARpU\nmlCgmKo5KncpUaKbXga/YrdzjuCD33CoqZigm9Y6Ki9vpjQ9Gyt2JsXFiZr0\naLaBBgGmRT+5AguEOOkOohlhvYVHNgGG4/D1bd34SR+w49+lJVjpJd0tAxAh\nbJwzSwNwOKfYwMgRhUmVvdDIXSoCwVirgyu7quw/Fef/JoJeGpNntZ/reCjy\nrBTZOU8IIobePidoVNx9vGdAikF6ZVicJEWmtyfDzrYRd2LG45weWbm2SV5w\nAeIOmldZSRoHNkBftF6IEuPuvYnn4f2LlJf6zfdLLzgedWi0k66O3m0crd9u\nM3/ovjfGvk/KprtcpC6MErZugP49Jc77Jy+dp0CxIeRC6AMp1OE4bEs/XSqW\nfvMPtGHs/GUo1MCLvONHO0F0gGMFJ4V9q55Pq4MCn2x2iXv5ICqVIRH8F3T4\nshy9\r\n=Lwb3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCEyBzYyisY62na0aOnBFWjZZgup5liYh/G4lAGPu/N5QIhAN0QelnVoO6AKK0swAUH9gwzReifp+5oB/pUe+aapBvZ"}]},"maintainers":[{"name":"amzn-oss","email":"osa-3p@amazon.com"},{"name":"eladb","email":"elad.benisrael@gmail.com"},{"name":"romainmuller","email":"romain.muller@telecomnancy.net"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/aws-custom-resources_0.8.0_1533043931645_0.31108403624027603"},"_hasShrinkwrap":false,"deprecated":"Contents of this package have been moved into @aws-cdk/aws-cloudformation"},"0.8.1":{"name":"@aws-cdk/aws-custom-resources","version":"0.8.1","description":"CDK Constructs to make it easier to build custom resources","main":"lib/index.js","types":"lib/index.d.ts","jsii":{"outdir":"dist","targets":{"java":{"package":"software.amazon.awscdk.services.customresources","maven":{"groupId":"software.amazon.awscdk","artifactId":"custom-resources"}},"sphinx":{}}},"repository":{"type":"git","url":"git+https://github.com/awslabs/aws-cdk.git"},"scripts":{"build":"cdk-build","watch":"cdk-watch","lint":"cdk-lint","test":"cdk-test","integ":"cdk-integ","pkglint":"pkglint -f","package":"cdk-package"},"keywords":["aws","cdk","constructs","custom-resources"],"author":{"name":"Amazon Web Services","url":"https://aws.amazon.com"},"license":"Apache-2.0","devDependencies":{"@aws-cdk/assert":"^0.8.1","cdk-build-tools":"^0.8.1","cdk-integ-tools":"^0.8.1","pkglint":"^0.8.1"},"dependencies":{"@aws-cdk/aws-cloudformation":"^0.8.1","@aws-cdk/aws-iam":"^0.8.1","@aws-cdk/aws-lambda":"^0.8.1","@aws-cdk/aws-sns":"^0.8.1","@aws-cdk/cdk":"^0.8.1"},"homepage":"https://github.com/awslabs/aws-cdk","bugs":{"url":"https://github.com/awslabs/aws-cdk/issues"},"_id":"@aws-cdk/aws-custom-resources@0.8.1","_npmVersion":"5.6.0","_nodeVersion":"10.1.0","_npmUser":{"name":"rix0rrr","email":"rix0rrr@gmail.com"},"dist":{"integrity":"sha512-RarGm7tC8pQJwTEZjx8jK8WI3iTqt74GQX387RQY06e9kBFea9sKbZt6V7YEFv/za129LNr0nJ5LCrRB5A4kTA==","shasum":"de704219c247810a36287a1027a25a8302ed2e67","tarball":"https://registry.npmjs.org/@aws-cdk/aws-custom-resources/-/aws-custom-resources-0.8.1.tgz","fileCount":23,"unpackedSize":139386,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbbA+MCRA9TVsSAnZWagAAM2QP/02g/F3/xCfv78i5SNtN\n3cfNfg49kMzm03Uqvebw1AYIiqMEPrmfN9zyjdvFMrGH5GnVU9aavkGTP6DZ\nBdJGAR8T6i/OiazTtJYfOJB4Cv7hRqy6ZTWIRNm6sxEDfj2gp8dpJNbHnJTj\n7JAZohUMDb+a5i90ZTveMuXitNchQwQUpdAxOZ7XeiDi3KV9WnY7LWuJSVsX\nORvevpuzzTb2/quc1uEalIl/0yK6YukywtARAxxucPeW9RlN7zBnFSVDwOS5\ny98uN+O0sc5YrG1cyU4yuWDYzl+wT4Av6uLLfG7rtx0qwarrEIyRNqoyquxb\nlObRtU3dmdN1v5Fq1ZVbQEx9WpEqMimMXAG9MbrP8qDgYv11HztI8/Lw9V2x\nmuTq9PF9ViKLSy3QF+uKwHlJ6v4Ty43BA2wOhNj8JwVxSDC5e0nbFAAnmEpp\naiVeTpXamzImPaTW1Faa5/I7SkBzTMuMRVeHW1ukTwW6HxJ0NFCtoNer6xcl\nlM+1jnKK/cH1NLFiJ9hrdK3wJwICqc2dUdqsH2ZPturWZloHrmjFBH1AC3Pk\nuJd90BkDDRX0OF7RFOLSjIz2L8AEGZ3VPRvMF33ELnOSCTrJSHAuznt7To1K\nAJHGF93Kmy80Fmen5kflhKLvxKJF0mHUGxyFy87/oik/vIT+YvtHZJ8xxjRt\n+JGE\r\n=BlpE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC5mlSJ+q8bFsK1s+3B3o/0MI32eJUWKROfukegDYlrOAIgCxkVgDwYLRB9aoB0bDc0Jj2ljUizhGzB61vHCEM/bRI="}]},"maintainers":[{"email":"osa-3p@amazon.com","name":"amzn-oss"},{"email":"elad.benisrael@gmail.com","name":"eladb"},{"email":"rix0rrr@gmail.com","name":"rix0rrr"},{"email":"romain.muller@telecomnancy.net","name":"romainmuller"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/aws-custom-resources_0.8.1_1533808523910_0.9314284941226405"},"_hasShrinkwrap":false,"deprecated":"Contents of this package have been moved into @aws-cdk/aws-cloudformation"}},"time":{"created":"2018-07-31T13:32:11.611Z","0.8.0":"2018-07-31T13:32:11.747Z","modified":"2023-11-21T10:14:39.030Z","0.8.1":"2018-08-09T09:55:24.081Z"},"maintainers":[{"email":"osa-3p@amazon.com","name":"amzn-oss"},{"email":"aws-cdk-dev@amazon.com","name":"aws-cdk-team"}],"description":"CDK Constructs to make it easier to build custom resources","homepage":"https://github.com/awslabs/aws-cdk","keywords":["aws","cdk","constructs","custom-resources"],"repository":{"type":"git","url":"git+https://github.com/awslabs/aws-cdk.git"},"author":{"name":"Amazon Web Services","url":"https://aws.amazon.com"},"bugs":{"url":"https://github.com/awslabs/aws-cdk/issues"},"license":"Apache-2.0","readme":"## CDK Custom Resources\n\nCustom Resources are CloudFormation resources that are implemented by\narbitrary user code. They can do arbitrary lookups or modifications\nduring a CloudFormation synthesis run.\n\nYou will typically use Lambda to implement a Construct implemented as a\nCustom Resource (though SNS topics can be used as well). Your Lambda function\nwill be sent a `CREATE`, `UPDATE` or `DELETE` message, depending on the\nCloudFormation life cycle, and can return any number of output values which\nwill be available as attributes of your Construct. In turn, those can\nbe used as input to other Constructs in your model.\n\nIn general, consumers of your Construct will not need to care whether\nit is implemented in term of other CloudFormation resources or as a\ncustom resource.\n\nNote: when implementing your Custom Resource using a Lambda, use\na `SingletonLambda` so that even if your custom resource is instantiated\nmultiple times, the Lambda will only get uploaded once.\n\n### Example\n\nSample of a Custom Resource that copies files into an S3 bucket during deployment\n(implementation of actual `copy.py` operation elided).\n\n```ts\ninterface CopyOperationProps {\n    sourceBucket: IBucket;\n    targetBucket: IBucket;\n}\n\nclass CopyOperation extends Construct {\n    constructor(parent: Construct, name: string, props: DemoResourceProps) {\n        super(parent, name);\n\n        const lambdaProvider = new SingletonLambda(this, 'Provider', {\n            uuid: 'f7d4f730-4ee1-11e8-9c2d-fa7ae01bbebc',\n            code: new LambdaInlineCode(resources['copy.py']),\n            handler: 'index.handler',\n            timeout: 60,\n            runtime: LambdaRuntime.Python3,\n        });\n\n        new CustomResource(this, 'Resource', {\n            lambdaProvider,\n            properties: {\n                sourceBucketArn: props.sourceBucket.bucketArn,\n                targetBucketArn: props.targetBucket.bucketArn,\n            }\n        });\n    }\n}\n```\n\nMore examples are in the `example` directory, including an example of how to use\nthe `cfnresponse` module that is provided for you by CloudFormation.\n\n### References\n\nSee the following section of the docs on details to write Custom Resources:\n\n* [Introduction](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-custom-resources.html)\n* [Reference](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/crpg-ref.html)\n* [Code Reference](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-code.html)\n","readmeFilename":"README.md"}