agent-claw: automated task changes
This commit is contained in:
1
cdk/node_modules/aws-cdk-lib/.jsii
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/.jsii
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"schema":"jsii/file-redirect","compression":"gzip","filename":".jsii.gz"}
|
||||
BIN
cdk/node_modules/aws-cdk-lib/.jsii.gz
generated
vendored
Normal file
BIN
cdk/node_modules/aws-cdk-lib/.jsii.gz
generated
vendored
Normal file
Binary file not shown.
BIN
cdk/node_modules/aws-cdk-lib/.jsii.tabl.json.gz
generated
vendored
Normal file
BIN
cdk/node_modules/aws-cdk-lib/.jsii.tabl.json.gz
generated
vendored
Normal file
Binary file not shown.
11
cdk/node_modules/aws-cdk-lib/.warnings.jsii.js
generated
vendored
Normal file
11
cdk/node_modules/aws-cdk-lib/.warnings.jsii.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
201
cdk/node_modules/aws-cdk-lib/LICENSE
generated
vendored
Normal file
201
cdk/node_modules/aws-cdk-lib/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,201 @@
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright 2018-2026 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
790
cdk/node_modules/aws-cdk-lib/NOTICE
generated
vendored
Normal file
790
cdk/node_modules/aws-cdk-lib/NOTICE
generated
vendored
Normal file
@@ -0,0 +1,790 @@
|
||||
AWS Cloud Development Kit (AWS CDK)
|
||||
Copyright 2018-2026 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
The AWS CDK includes the following third-party software/licensing:
|
||||
|
||||
** minimatch - https://www.npmjs.com/package/minimatch
|
||||
|
||||
Blue Oak Model License
|
||||
|
||||
Version 1.0.0
|
||||
|
||||
Purpose
|
||||
|
||||
This license gives everyone as much permission to work with
|
||||
this software as possible, while protecting contributors
|
||||
from liability.
|
||||
|
||||
Acceptance
|
||||
|
||||
In order to receive this license, you must agree to its
|
||||
rules. The rules of this license are both obligations
|
||||
under that agreement and conditions to your license.
|
||||
You must not do anything with this software that triggers
|
||||
a rule that you cannot or will not follow.
|
||||
|
||||
Copyright
|
||||
|
||||
Each contributor licenses you to do everything with this
|
||||
software that would otherwise infringe that contributor's
|
||||
copyright in it.
|
||||
|
||||
Notices
|
||||
|
||||
You must ensure that everyone who gets a copy of
|
||||
any part of this software from you, with or without
|
||||
changes, also gets the text of this license or a link to
|
||||
https://blueoakcouncil.org/license/1.0.0.
|
||||
|
||||
Excuse
|
||||
|
||||
If anyone notifies you in writing that you have not
|
||||
complied with Notices, you can keep your
|
||||
license by taking all practical steps to comply within 30
|
||||
days after the notice. If you do not do so, your license
|
||||
ends immediately.
|
||||
|
||||
Patent
|
||||
|
||||
Each contributor licenses you to do everything with this
|
||||
software that would otherwise infringe any patent claims
|
||||
they can license or become able to license.
|
||||
|
||||
Reliability
|
||||
|
||||
No contributor can revoke this license.
|
||||
|
||||
No Liability
|
||||
|
||||
As far as the law allows, this software comes as is,
|
||||
without any warranty or condition, and no contributor
|
||||
will be liable to anyone for any damages related to this
|
||||
software or this license, under any kind of legal claim.
|
||||
|
||||
----------------
|
||||
|
||||
The AWS CDK includes the following third-party software/licensing:
|
||||
|
||||
** mime-db - https://www.npmjs.com/package/mime-db
|
||||
** mime-types - https://www.npmjs.com/package/mime-types
|
||||
(The MIT License)
|
||||
|
||||
Copyright (c) 2014 Jonathan Ong <me@jongleberry.com>
|
||||
Copyright (c) 2015-2022 Douglas Christopher Wilson <doug@somethingdoug.com>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
'Software'), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
----------------
|
||||
|
||||
** fs-extra - https://www.npmjs.com/package/fs-extra
|
||||
Copyright (c) 2011-2017 JP Richardson
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files
|
||||
(the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify,
|
||||
merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
|
||||
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
|
||||
OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
||||
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
----------------
|
||||
|
||||
** semver - https://www.npmjs.com/package/semver
|
||||
Copyright (c) Isaac Z. Schlueter and Contributors
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for any
|
||||
purpose with or without fee is hereby granted, provided that the above
|
||||
copyright notice and this permission notice appear in all copies.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
||||
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
||||
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
||||
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
||||
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
----------------
|
||||
|
||||
** yaml - https://www.npmjs.com/package/yaml
|
||||
Copyright 2018 Eemeli Aro <eemeli@gmail.com>
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for any purpose
|
||||
with or without fee is hereby granted, provided that the above copyright notice
|
||||
and this permission notice appear in all copies.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
||||
FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
|
||||
OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
|
||||
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
|
||||
THIS SOFTWARE.
|
||||
|
||||
----------------
|
||||
|
||||
** case - https://www.npmjs.com/package/case
|
||||
Copyright (c) 2013 Nathan Bubna
|
||||
|
||||
Permission is hereby granted, free of charge, to any person
|
||||
obtaining a copy of this software and associated documentation
|
||||
files (the "Software"), to deal in the Software without
|
||||
restriction, including without limitation the rights to use,
|
||||
copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the
|
||||
Software is furnished to do so, subject to the following
|
||||
conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
||||
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
||||
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||
OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
----------------
|
||||
|
||||
** jsonschema - https://www.npmjs.com/package/jsonschema
|
||||
Copyright (C) 2012-2015 Tom de Grunt <tom@degrunt.nl>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
this software and associated documentation files (the "Software"), to deal in
|
||||
the Software without restriction, including without limitation the rights to
|
||||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
||||
of the Software, and to permit persons to whom the Software is furnished to do
|
||||
so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
|
||||
----------------
|
||||
|
||||
** punycode - https://www.npmjs.com/package/punycode
|
||||
Copyright Mathias Bynens <https://mathiasbynens.be/>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
----------------
|
||||
|
||||
** ignore - https://www.npmjs.com/package/ignore
|
||||
Copyright (c) 2013 Kael Zhang <i@kael.me>, contributors
|
||||
http://kael.me/
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
----------------
|
||||
|
||||
** @balena/dockerignore - https://www.npmjs.com/package/@balena/dockerignore
|
||||
The MIT License (MIT)
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a
|
||||
copy of this software and associated documentation files (the "Software"),
|
||||
to deal in the Software without restriction, including without limitation
|
||||
the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
and/or sell copies of the Software, and to permit persons to whom the
|
||||
Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
DEALINGS IN THE SOFTWARE.
|
||||
|
||||
----------------
|
||||
|
||||
** graceful-fs - https://www.npmjs.com/package/graceful-fs
|
||||
Copyright (c) Isaac Z. Schlueter, Ben Noordhuis, and Contributors
|
||||
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for any
|
||||
purpose with or without fee is hereby granted, provided that the above
|
||||
copyright notice and this permission notice appear in all copies.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
||||
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
||||
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
||||
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
||||
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
----------------
|
||||
|
||||
** jsonfile - https://www.npmjs.com/package/jsonfile
|
||||
Copyright (c) 2012-2015, JP Richardson <jprichardson@gmail.com>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files
|
||||
(the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify,
|
||||
merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
|
||||
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
|
||||
OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
||||
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
----------------
|
||||
|
||||
** universalify - https://www.npmjs.com/package/universalify
|
||||
Copyright (c) 2017, Ryan Zimmerman <opensrc@ryanzim.com>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
this software and associated documentation files (the 'Software'), to deal in
|
||||
the Software without restriction, including without limitation the rights to
|
||||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
||||
the Software, and to permit persons to whom the Software is furnished to do so,
|
||||
subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
||||
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
----------------
|
||||
|
||||
** brace-expansion - https://www.npmjs.com/package/brace-expansion
|
||||
Copyright Julian Gruber <julian@juliangruber.com>
|
||||
TypeScript port Copyright Isaac Z. Schlueter <i@izs.me>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
|
||||
----------------
|
||||
|
||||
** balanced-match - https://www.npmjs.com/package/balanced-match
|
||||
Original code Copyright Julian Gruber <julian@juliangruber.com>
|
||||
Port to TypeScript Copyright Isaac Z. Schlueter <i@izs.me>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
|
||||
----------------
|
||||
|
||||
** kubectl - https://github.com/kubernetes/kubectl
|
||||
Copyright 2017 The Kubernetes Authors.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
|
||||
----------------
|
||||
|
||||
** helm - https://github.com/helm/helm
|
||||
Copyright 2016 The Kubernetes Authors All Rights Reserved
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
|
||||
----------------
|
||||
|
||||
** ajv - https://www.npmjs.com/package/ajv/v/8.12.0 | MIT
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2015-2021 Evgeny Poberezkin
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
|
||||
|
||||
|
||||
----------------
|
||||
|
||||
** ansi-regex - https://www.npmjs.com/package/ansi-regex/v/5.0.1 | MIT
|
||||
MIT License
|
||||
|
||||
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
|
||||
----------------
|
||||
|
||||
** ansi-styles - https://www.npmjs.com/package/ansi-styles/v/4.3.0 | MIT
|
||||
MIT License
|
||||
|
||||
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
|
||||
----------------
|
||||
|
||||
** astral-regex - https://www.npmjs.com/package/astral-regex/v/2.0.0 | MIT
|
||||
MIT License
|
||||
|
||||
Copyright (c) Kevin Mårtensson <kevinmartensson@gmail.com> (github.com/kevva)
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
|
||||
----------------
|
||||
|
||||
** color-convert - https://www.npmjs.com/package/color-convert/v/2.0.1 | MIT
|
||||
Copyright (c) 2011-2016 Heather Arthur <fayearthur@gmail.com>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
|
||||
|
||||
----------------
|
||||
|
||||
** color-name - https://www.npmjs.com/package/color-name/v/1.1.4 | MIT
|
||||
The MIT License (MIT)
|
||||
Copyright (c) 2015 Dmitry Ivanov
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
----------------
|
||||
|
||||
** emoji-regex - https://www.npmjs.com/package/emoji-regex/v/8.0.0 | MIT
|
||||
Copyright Mathias Bynens <https://mathiasbynens.be/>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
|
||||
----------------
|
||||
|
||||
** fast-deep-equal - https://www.npmjs.com/package/fast-deep-equal/v/3.1.3 | MIT
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2017 Evgeny Poberezkin
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
|
||||
|
||||
----------------
|
||||
|
||||
** is-fullwidth-code-point - https://www.npmjs.com/package/is-fullwidth-code-point/v/3.0.0 | MIT
|
||||
MIT License
|
||||
|
||||
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
|
||||
----------------
|
||||
|
||||
** json-schema-traverse - https://www.npmjs.com/package/json-schema-traverse/v/1.0.0 | MIT
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2017 Evgeny Poberezkin
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
|
||||
|
||||
----------------
|
||||
|
||||
** lodash.truncate - https://www.npmjs.com/package/lodash.truncate/v/4.4.2 | MIT
|
||||
Copyright jQuery Foundation and other contributors <https://jquery.org/>
|
||||
|
||||
Based on Underscore.js, copyright Jeremy Ashkenas,
|
||||
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
|
||||
|
||||
This software consists of voluntary contributions made by many
|
||||
individuals. For exact contribution history, see the revision history
|
||||
available at https://github.com/lodash/lodash
|
||||
|
||||
The following license applies to all parts of this software except as
|
||||
documented below:
|
||||
|
||||
====
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
====
|
||||
|
||||
Copyright and related rights for sample code are waived via CC0. Sample
|
||||
code is defined as all source code displayed within the prose of the
|
||||
documentation.
|
||||
|
||||
CC0: http://creativecommons.org/publicdomain/zero/1.0/
|
||||
|
||||
====
|
||||
|
||||
Files located in the node_modules and vendor directories are externally
|
||||
maintained libraries used by this software which have their own
|
||||
licenses; we recommend you read them, as their terms may differ from the
|
||||
terms above.
|
||||
|
||||
|
||||
----------------
|
||||
|
||||
** require-from-string - https://www.npmjs.com/package/require-from-string/v/2.0.2 | MIT
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) Vsevolod Strukchinsky <floatdrop@gmail.com> (github.com/floatdrop)
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
|
||||
|
||||
----------------
|
||||
|
||||
** slice-ansi - https://www.npmjs.com/package/slice-ansi/v/4.0.0 | MIT
|
||||
MIT License
|
||||
|
||||
Copyright (c) DC <threedeecee@gmail.com>
|
||||
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
|
||||
----------------
|
||||
|
||||
** string-width - https://www.npmjs.com/package/string-width/v/4.2.3 | MIT
|
||||
MIT License
|
||||
|
||||
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
|
||||
----------------
|
||||
|
||||
** strip-ansi - https://www.npmjs.com/package/strip-ansi/v/6.0.1 | MIT
|
||||
MIT License
|
||||
|
||||
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
|
||||
----------------
|
||||
|
||||
** table - https://www.npmjs.com/package/table/v/6.8.1 | BSD-3-Clause
|
||||
Copyright (c) 2018, Gajus Kuizinas (http://gajus.com/)
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
* Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright
|
||||
notice, this list of conditions and the following disclaimer in the
|
||||
documentation and/or other materials provided with the distribution.
|
||||
* Neither the name of the Gajus Kuizinas (http://gajus.com/) nor the
|
||||
names of its contributors may be used to endorse or promote products
|
||||
derived from this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
DISCLAIMED. IN NO EVENT SHALL ANUARY BE LIABLE FOR ANY
|
||||
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
----------------
|
||||
|
||||
** fast-uri - https://www.npmjs.com/package/fast-uri/v/3.0.1 | BSD-3-Clause
|
||||
Copyright (c) 2021 The Fastify Team
|
||||
Copyright (c) 2011-2021, Gary Court until https://github.com/garycourt/uri-js/commit/a1acf730b4bba3f1097c9f52e7d9d3aba8cdcaae
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
* Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright
|
||||
notice, this list of conditions and the following disclaimer in the
|
||||
documentation and/or other materials provided with the distribution.
|
||||
* The names of any contributors may not be used to endorse or promote
|
||||
products derived from this software without specific prior written
|
||||
permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS AND CONTRIBUTORS BE LIABLE FOR ANY
|
||||
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
* * *
|
||||
|
||||
The complete list of contributors can be found at:
|
||||
- https://github.com/garycourt/uri-js/graphs/contributors
|
||||
|
||||
|
||||
----------------
|
||||
2247
cdk/node_modules/aws-cdk-lib/README.md
generated
vendored
Normal file
2247
cdk/node_modules/aws-cdk-lib/README.md
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
13
cdk/node_modules/aws-cdk-lib/alexa-ask/.jsiirc.json
generated
vendored
Normal file
13
cdk/node_modules/aws-cdk-lib/alexa-ask/.jsiirc.json
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"targets": {
|
||||
"java": {
|
||||
"package": "software.amazon.awscdk.alexa.ask"
|
||||
},
|
||||
"dotnet": {
|
||||
"namespace": "Amazon.CDK.Alexa.Ask"
|
||||
},
|
||||
"python": {
|
||||
"module": "aws_cdk.alexa_ask"
|
||||
}
|
||||
}
|
||||
}
|
||||
27
cdk/node_modules/aws-cdk-lib/alexa-ask/README.md
generated
vendored
Normal file
27
cdk/node_modules/aws-cdk-lib/alexa-ask/README.md
generated
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
# Alexa Skills Kit Construct Library
|
||||
|
||||
|
||||
This module is part of the [AWS Cloud Development Kit](https://github.com/aws/aws-cdk) project.
|
||||
|
||||
```ts nofixture
|
||||
import * as alexa_ask from 'aws-cdk-lib/alexa-ask';
|
||||
```
|
||||
|
||||
<!--BEGIN CFNONLY DISCLAIMER-->
|
||||
|
||||
There are no official hand-written ([L2](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_lib)) constructs for this service yet. Here are some suggestions on how to proceed:
|
||||
|
||||
- Search [Construct Hub for ASK construct libraries](https://constructs.dev/search?q=ask)
|
||||
- Use the automatically generated [L1](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_l1_using) constructs, in the same way you would use [the CloudFormation Alexa::ASK resources](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/Alexa_ASK.html) directly.
|
||||
|
||||
|
||||
<!--BEGIN CFNONLY DISCLAIMER-->
|
||||
|
||||
There are no hand-written ([L2](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_lib)) constructs for this service yet.
|
||||
However, you can still use the automatically generated [L1](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_l1_using) constructs, and use this service exactly as you would using CloudFormation directly.
|
||||
|
||||
For more information on the resources and properties available for this service, see the [CloudFormation documentation for Alexa::ASK](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/Alexa_ASK.html).
|
||||
|
||||
(Read the [CDK Contributing Guide](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and submit an RFC if you are interested in contributing to this construct library.)
|
||||
|
||||
<!--END CFNONLY DISCLAIMER-->
|
||||
1
cdk/node_modules/aws-cdk-lib/alexa-ask/index.d.ts
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/alexa-ask/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export * from './lib';
|
||||
1
cdk/node_modules/aws-cdk-lib/alexa-ask/index.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/alexa-ask/index.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";var __createBinding=exports&&exports.__createBinding||(Object.create?(function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}):(function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]})),__exportStar=exports&&exports.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)};Object.defineProperty(exports,"__esModule",{value:!0});var _noFold;exports.CfnSkill=void 0,Object.defineProperty(exports,_noFold="CfnSkill",{enumerable:!0,configurable:!0,get:()=>{var value=require("./lib").CfnSkill;return Object.defineProperty(exports,_noFold="CfnSkill",{enumerable:!0,configurable:!0,value}),value}});
|
||||
226
cdk/node_modules/aws-cdk-lib/alexa-ask/lib/ask.generated.d.ts
generated
vendored
Normal file
226
cdk/node_modules/aws-cdk-lib/alexa-ask/lib/ask.generated.d.ts
generated
vendored
Normal file
@@ -0,0 +1,226 @@
|
||||
import * as cdk from "../../core/lib";
|
||||
import * as constructs from "constructs";
|
||||
import * as cfn_parse from "../../core/lib/helpers-internal";
|
||||
import { ISkillRef, SkillReference } from "../../interfaces/generated/alexa-ask-interfaces.generated";
|
||||
/**
|
||||
* The `Alexa::ASK::Skill` resource creates an Alexa skill that enables customers to access new abilities.
|
||||
*
|
||||
* For more information about developing a skill, see the .
|
||||
*
|
||||
* @cloudformationResource Alexa::ASK::Skill
|
||||
* @stability external
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ask-skill.html
|
||||
*/
|
||||
export declare class CfnSkill extends cdk.CfnResource implements cdk.IInspectable, ISkillRef {
|
||||
/**
|
||||
* The CloudFormation resource type name for this resource class.
|
||||
*/
|
||||
static readonly CFN_RESOURCE_TYPE_NAME: string;
|
||||
/**
|
||||
* Build a CfnSkill from CloudFormation properties
|
||||
*
|
||||
* A factory method that creates a new instance of this class from an object
|
||||
* containing the CloudFormation properties of this resource.
|
||||
* Used in the @aws-cdk/cloudformation-include module.
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
static _fromCloudFormation(scope: constructs.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnSkill;
|
||||
/**
|
||||
* Checks whether the given object is a CfnSkill
|
||||
*/
|
||||
static isCfnSkill(x: any): x is CfnSkill;
|
||||
/**
|
||||
* Login with Amazon (LWA) configuration used to authenticate with the Alexa service.
|
||||
*/
|
||||
private _authenticationConfiguration;
|
||||
/**
|
||||
* Configuration for the skill package that contains the components of the Alexa skill.
|
||||
*/
|
||||
private _skillPackage;
|
||||
/**
|
||||
* The vendor ID associated with the Amazon developer account that will host the skill.
|
||||
*/
|
||||
private _vendorId;
|
||||
protected readonly cfnPropertyNames: Record<string, string>;
|
||||
/**
|
||||
* Create a new `Alexa::ASK::Skill`.
|
||||
*
|
||||
* @param scope Scope in which this resource is defined
|
||||
* @param id Construct identifier for this resource (unique in its scope)
|
||||
* @param props Resource properties
|
||||
*/
|
||||
constructor(scope: constructs.Construct, id: string, props: CfnSkillProps);
|
||||
get skillRef(): SkillReference;
|
||||
/**
|
||||
* Login with Amazon (LWA) configuration used to authenticate with the Alexa service.
|
||||
*/
|
||||
get authenticationConfiguration(): CfnSkill.AuthenticationConfigurationProperty | cdk.IResolvable;
|
||||
/**
|
||||
* Login with Amazon (LWA) configuration used to authenticate with the Alexa service.
|
||||
*/
|
||||
set authenticationConfiguration(value: CfnSkill.AuthenticationConfigurationProperty | cdk.IResolvable);
|
||||
/**
|
||||
* Configuration for the skill package that contains the components of the Alexa skill.
|
||||
*/
|
||||
get skillPackage(): cdk.IResolvable | CfnSkill.SkillPackageProperty;
|
||||
/**
|
||||
* Configuration for the skill package that contains the components of the Alexa skill.
|
||||
*/
|
||||
set skillPackage(value: cdk.IResolvable | CfnSkill.SkillPackageProperty);
|
||||
/**
|
||||
* The vendor ID associated with the Amazon developer account that will host the skill.
|
||||
*/
|
||||
get vendorId(): string;
|
||||
/**
|
||||
* The vendor ID associated with the Amazon developer account that will host the skill.
|
||||
*/
|
||||
set vendorId(value: string);
|
||||
/**
|
||||
* @cloudformationAttribute Id
|
||||
*/
|
||||
get attrId(): string;
|
||||
protected get cfnProperties(): Record<string, any>;
|
||||
/**
|
||||
* Examines the CloudFormation resource and discloses attributes
|
||||
*
|
||||
* @param inspector tree inspector to collect and process attributes
|
||||
*/
|
||||
inspect(inspector: cdk.TreeInspector): void;
|
||||
protected renderProperties(props: Record<string, any>): Record<string, any>;
|
||||
}
|
||||
export declare namespace CfnSkill {
|
||||
/**
|
||||
* The `AuthenticationConfiguration` property type specifies the Login with Amazon (LWA) configuration used to authenticate with the Alexa service.
|
||||
*
|
||||
* Only Login with Amazon security profiles created through the are supported for authentication. A client ID, client secret, and refresh token are required. You can generate a client ID and client secret by creating a new on the Amazon Developer Portal or you can retrieve them from an existing profile. You can then retrieve the refresh token using the Alexa Skills Kit CLI. For instructions, see in the .
|
||||
*
|
||||
* `AuthenticationConfiguration` is a property of the `Alexa::ASK::Skill` resource.
|
||||
*
|
||||
* @struct
|
||||
* @stability external
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ask-skill-authenticationconfiguration.html
|
||||
*/
|
||||
interface AuthenticationConfigurationProperty {
|
||||
/**
|
||||
* Client ID from Login with Amazon (LWA).
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ask-skill-authenticationconfiguration.html#cfn-ask-skill-authenticationconfiguration-clientid
|
||||
*/
|
||||
readonly clientId: string;
|
||||
/**
|
||||
* Client secret from Login with Amazon (LWA).
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ask-skill-authenticationconfiguration.html#cfn-ask-skill-authenticationconfiguration-clientsecret
|
||||
*/
|
||||
readonly clientSecret: string;
|
||||
/**
|
||||
* Refresh token from Login with Amazon (LWA).
|
||||
*
|
||||
* This token is secret.
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ask-skill-authenticationconfiguration.html#cfn-ask-skill-authenticationconfiguration-refreshtoken
|
||||
*/
|
||||
readonly refreshToken: string;
|
||||
}
|
||||
/**
|
||||
* The `SkillPackage` property type contains configuration details for the skill package that contains the components of the Alexa skill.
|
||||
*
|
||||
* Skill packages are retrieved from an Amazon S3 bucket and key and used to create and update the skill. More details about the skill package format are located in the .
|
||||
*
|
||||
* `SkillPackage` is a property of the `Alexa::ASK::Skill` resource.
|
||||
*
|
||||
* @struct
|
||||
* @stability external
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ask-skill-skillpackage.html
|
||||
*/
|
||||
interface SkillPackageProperty {
|
||||
/**
|
||||
* Overrides to the skill package to apply when creating or updating the skill.
|
||||
*
|
||||
* Values provided here do not modify the contents of the original skill package. Currently, only overriding values inside of the skill manifest component of the package is supported.
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ask-skill-skillpackage.html#cfn-ask-skill-skillpackage-overrides
|
||||
*/
|
||||
readonly overrides?: cdk.IResolvable | CfnSkill.OverridesProperty;
|
||||
/**
|
||||
* The name of the Amazon S3 bucket where the .zip file that contains the skill package is stored.
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ask-skill-skillpackage.html#cfn-ask-skill-skillpackage-s3bucket
|
||||
*/
|
||||
readonly s3Bucket: string;
|
||||
/**
|
||||
* ARN of the IAM role that grants the Alexa service ( `alexa-appkit.amazon.com` ) permission to access the bucket and retrieve the skill package. This property is optional. If you do not provide it, the bucket must be publicly accessible or configured with a policy that allows this access. Otherwise, CloudFormation cannot create the skill.
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ask-skill-skillpackage.html#cfn-ask-skill-skillpackage-s3bucketrole
|
||||
*/
|
||||
readonly s3BucketRole?: string;
|
||||
/**
|
||||
* The location and name of the skill package .zip file.
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ask-skill-skillpackage.html#cfn-ask-skill-skillpackage-s3key
|
||||
*/
|
||||
readonly s3Key: string;
|
||||
/**
|
||||
* If you have S3 versioning enabled, the version ID of the skill package.zip file.
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ask-skill-skillpackage.html#cfn-ask-skill-skillpackage-s3objectversion
|
||||
*/
|
||||
readonly s3ObjectVersion?: string;
|
||||
}
|
||||
/**
|
||||
* The `Overrides` property type provides overrides to the skill package to apply when creating or updating the skill.
|
||||
*
|
||||
* Values provided here do not modify the contents of the original skill package. Currently, only overriding values inside of the skill manifest component of the package is supported.
|
||||
*
|
||||
* `Overrides` is a property of the `Alexa::ASK::Skill SkillPackage` property type.
|
||||
*
|
||||
* @struct
|
||||
* @stability external
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ask-skill-overrides.html
|
||||
*/
|
||||
interface OverridesProperty {
|
||||
/**
|
||||
* Overrides to apply to the skill manifest inside of the skill package.
|
||||
*
|
||||
* The skill manifest contains metadata about the skill. For more information, see .
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ask-skill-overrides.html#cfn-ask-skill-overrides-manifest
|
||||
*/
|
||||
readonly manifest?: any | cdk.IResolvable;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Properties for defining a `CfnSkill`
|
||||
*
|
||||
* @struct
|
||||
* @stability external
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ask-skill.html
|
||||
*/
|
||||
export interface CfnSkillProps {
|
||||
/**
|
||||
* Login with Amazon (LWA) configuration used to authenticate with the Alexa service.
|
||||
*
|
||||
* Only Login with Amazon clients created through the are supported. The client ID, client secret, and refresh token are required.
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ask-skill.html#cfn-ask-skill-authenticationconfiguration
|
||||
*/
|
||||
readonly authenticationConfiguration: CfnSkill.AuthenticationConfigurationProperty | cdk.IResolvable;
|
||||
/**
|
||||
* Configuration for the skill package that contains the components of the Alexa skill.
|
||||
*
|
||||
* Skill packages are retrieved from an Amazon S3 bucket and key and used to create and update the skill. For more information about the skill package format, see the .
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ask-skill.html#cfn-ask-skill-skillpackage
|
||||
*/
|
||||
readonly skillPackage: cdk.IResolvable | CfnSkill.SkillPackageProperty;
|
||||
/**
|
||||
* The vendor ID associated with the Amazon developer account that will host the skill.
|
||||
*
|
||||
* Details for retrieving the vendor ID are in . The provided LWA credentials must be linked to the developer account associated with this vendor ID.
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ask-skill.html#cfn-ask-skill-vendorid
|
||||
*/
|
||||
readonly vendorId: string;
|
||||
}
|
||||
export type { ISkillRef, SkillReference };
|
||||
1
cdk/node_modules/aws-cdk-lib/alexa-ask/lib/ask.generated.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/alexa-ask/lib/ask.generated.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1
cdk/node_modules/aws-cdk-lib/alexa-ask/lib/index.d.ts
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/alexa-ask/lib/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export * from './ask.generated';
|
||||
1
cdk/node_modules/aws-cdk-lib/alexa-ask/lib/index.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/alexa-ask/lib/index.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";var __createBinding=exports&&exports.__createBinding||(Object.create?(function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}):(function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]})),__exportStar=exports&&exports.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)};Object.defineProperty(exports,"__esModule",{value:!0});var _noFold;exports.CfnSkill=void 0,Object.defineProperty(exports,_noFold="CfnSkill",{enumerable:!0,configurable:!0,get:()=>{var value=require("./ask.generated").CfnSkill;return Object.defineProperty(exports,_noFold="CfnSkill",{enumerable:!0,configurable:!0,value}),value}});
|
||||
13
cdk/node_modules/aws-cdk-lib/assertions/.jsiirc.json
generated
vendored
Normal file
13
cdk/node_modules/aws-cdk-lib/assertions/.jsiirc.json
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"targets": {
|
||||
"java": {
|
||||
"package": "software.amazon.awscdk.assertions"
|
||||
},
|
||||
"dotnet": {
|
||||
"namespace": "Amazon.CDK.Assertions"
|
||||
},
|
||||
"python": {
|
||||
"module": "aws_cdk.assertions"
|
||||
}
|
||||
}
|
||||
}
|
||||
123
cdk/node_modules/aws-cdk-lib/assertions/MIGRATING.md
generated
vendored
Normal file
123
cdk/node_modules/aws-cdk-lib/assertions/MIGRATING.md
generated
vendored
Normal file
@@ -0,0 +1,123 @@
|
||||
# Migrating to Assertions
|
||||
|
||||
Most of the APIs in the old `assert` module has a corresponding API in `assertions`.
|
||||
Make the following modifications to your CDK test files to migrate to the
|
||||
`@aws-cdk/assertions` module.
|
||||
|
||||
For a migration script that handles most common use cases for you, see
|
||||
[Migration Script](migration-script).
|
||||
|
||||
## Translation Guide
|
||||
|
||||
- Rewrite module imports that use `@aws-cdk/aws-assert` to `@aws-cdk/aws-assertions`.
|
||||
For example:
|
||||
|
||||
```ts
|
||||
import '@aws-cdk/assert/jest';
|
||||
import { ABSENT, SynthUtils, ResourcePart } from '@aws-cdk/assert';
|
||||
```
|
||||
|
||||
...becomes...
|
||||
|
||||
```ts
|
||||
import { Template } from '@aws-cdk/assertions';
|
||||
import { Match, Template } from '@aws-cdk/assertions';
|
||||
```
|
||||
|
||||
- Replace instances of `toHaveResource()` with `hasResourceProperties()` or `hasResource()`.
|
||||
For example:
|
||||
|
||||
```ts
|
||||
expect(stack).toHaveResource('FOO::BAR', {/*...*/});
|
||||
expect(stack).toHaveResource('FOO::BAR', {/*...*/}, ResourcePart.CompleteDefinition);
|
||||
```
|
||||
|
||||
...becomes...
|
||||
|
||||
```ts
|
||||
Template.fromStack(stack).hasResourceProperties('FOO::BAR', {/*...*/});
|
||||
Template.fromStack(stacK).hasResource('FOO::BAR', {/*...*/});
|
||||
```
|
||||
|
||||
- Replace instances of `toCountResources()` with `resourceCountIs`. For example:
|
||||
|
||||
```ts
|
||||
expect(stack).toCountResources('FOO::BAR', 1);
|
||||
```
|
||||
|
||||
...becomes...
|
||||
|
||||
```ts
|
||||
Template.fromStack(stack).resourceCountIs('FOO::BAR', 1);
|
||||
```
|
||||
- Replace instances of `toMatchTemplate()` with `templateMatches()`. For example:
|
||||
|
||||
```ts
|
||||
expect(stack).toMatchTemplate({/*...*/});
|
||||
```
|
||||
|
||||
...becomes...
|
||||
|
||||
```ts
|
||||
Template.fromStack(stack).templateMatches({/*...*/});
|
||||
```
|
||||
|
||||
- Replace `arrayWith()` with `Match.arrayWith()`, `objectLike()` with `Match.objectLike()`, and
|
||||
`ABSENT` with `Match.absent()`.
|
||||
|
||||
- `not` can be replaced with `Match.not()` _or_ `resourceCountIs()` depending on the use case.
|
||||
|
||||
```ts
|
||||
// asserting that the stack does not have a particular resource.
|
||||
expect(stack).not.toHaveResource('FOO::BAR');
|
||||
```
|
||||
|
||||
...becomes...
|
||||
|
||||
```ts
|
||||
Template.fromStack(stack).resourceCountIs('FOO::BAR', 0);
|
||||
```
|
||||
|
||||
```ts
|
||||
// asserting that the stack does not have a resource with these properties
|
||||
expect(stack).not.toHaveResource('FOO::BAR', {
|
||||
prop: 'does not exist',
|
||||
});
|
||||
```
|
||||
|
||||
...becomes...
|
||||
|
||||
```ts
|
||||
Template.fromStack(stack).hasResourceProperties('FOO::BAR', Match.not({
|
||||
prop: 'does not exist',
|
||||
}));
|
||||
```
|
||||
|
||||
- `SynthUtils.synthesize(stack)` can be replaced as well. For example:
|
||||
|
||||
```ts
|
||||
expect(SynthUtils.synthesize(stack).template).toEqual(/*...*/);
|
||||
SynthUtils.syntesize(stack);
|
||||
```
|
||||
|
||||
...becomes...
|
||||
|
||||
```ts
|
||||
expect(Template.fromStack(stack).toJSON()).toEqual(/*...*/);
|
||||
App.of(stack).synth();
|
||||
```
|
||||
|
||||
## Migration Script
|
||||
|
||||
> NOTE: We have some code rewrite rules that will make it easier to migrate from one library
|
||||
> to the other. This tool will not do a complete rewrite and is not guaranteed to produce
|
||||
> compilable code! It will just save you the effort of performing a lot of code substitutions
|
||||
> you would otherwise have to do by hand.
|
||||
|
||||
Comby is a tool used to do structured code rewriting. You can install it
|
||||
[here](https://comby.dev/). Download the [rewrite.toml](rewrite.toml) file from our GitHub
|
||||
repository, and run the following command in the root directory of your project:
|
||||
|
||||
```bash
|
||||
comby -config ~/rewrite.toml -f .ts -d test -in-place -timeout 10
|
||||
```
|
||||
681
cdk/node_modules/aws-cdk-lib/assertions/README.md
generated
vendored
Normal file
681
cdk/node_modules/aws-cdk-lib/assertions/README.md
generated
vendored
Normal file
@@ -0,0 +1,681 @@
|
||||
# Assertions
|
||||
|
||||
|
||||
If you're migrating from the old `@aws-cdk/assert` library, first use this migration guide to migrate from `@aws-cdk/assert` to `@aws-cdk/assertions` found in
|
||||
[our GitHub repository](https://github.com/aws/aws-cdk/blob/v1-main/packages/@aws-cdk/assertions/MIGRATING.md). Then, you can migrate your application to AWS CDK v2 in order to use this library using [this guide](https://docs.aws.amazon.com/cdk/v2/guide/migrating-v2.html).
|
||||
|
||||
Functions for writing test asserting against CDK applications, with focus on CloudFormation templates.
|
||||
|
||||
The `Template` class includes a set of methods for writing assertions against CloudFormation templates. Use one of the `Template.fromXxx()` static methods to create an instance of this class.
|
||||
|
||||
To create `Template` from CDK stack, start off with:
|
||||
|
||||
```ts nofixture
|
||||
import { Stack } from 'aws-cdk-lib';
|
||||
import { Template } from 'aws-cdk-lib/assertions';
|
||||
|
||||
const stack = new Stack(/* ... */);
|
||||
// ...
|
||||
const template = Template.fromStack(stack);
|
||||
```
|
||||
|
||||
Alternatively, assertions can be run on an existing CloudFormation template -
|
||||
|
||||
```ts fixture=init
|
||||
const templateJson = '{ "Resources": ... }'; /* The CloudFormation template as JSON serialized string. */
|
||||
const template = Template.fromString(templateJson);
|
||||
```
|
||||
|
||||
**Cyclical Resources Note**
|
||||
|
||||
If allowing cyclical references is desired, for example in the case of unprocessed Transform templates, supply TemplateParsingOptions and
|
||||
set skipCyclicalDependenciesCheck to true. In all other cases, will fail on detecting cyclical dependencies.
|
||||
|
||||
## Full Template Match
|
||||
|
||||
The simplest assertion would be to assert that the template matches a given
|
||||
template.
|
||||
|
||||
```ts
|
||||
template.templateMatches({
|
||||
Resources: {
|
||||
BarLogicalId: {
|
||||
Type: 'Foo::Bar',
|
||||
Properties: {
|
||||
Baz: 'Qux',
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
```
|
||||
|
||||
By default, the `templateMatches()` API will use the an 'object-like' comparison,
|
||||
which means that it will allow for the actual template to be a superset of the
|
||||
given expectation. See [Special Matchers](#special-matchers) for details on how
|
||||
to change this.
|
||||
|
||||
Snapshot testing is a common technique to store a snapshot of the output and
|
||||
compare it during future changes. Since CloudFormation templates are human readable,
|
||||
they are a good target for snapshot testing.
|
||||
|
||||
The `toJSON()` method on the `Template` can be used to produce a well formatted JSON
|
||||
of the CloudFormation template that can be used as a snapshot.
|
||||
|
||||
See [Snapshot Testing in Jest](https://jestjs.io/docs/snapshot-testing) and [Snapshot
|
||||
Testing in Java](https://json-snapshot.github.io/).
|
||||
|
||||
## Counting Resources
|
||||
|
||||
This module allows asserting the number of resources of a specific type found
|
||||
in a template.
|
||||
|
||||
```ts
|
||||
template.resourceCountIs('Foo::Bar', 2);
|
||||
```
|
||||
|
||||
You can also count the number of resources of a specific type whose `Properties`
|
||||
section contains the specified properties:
|
||||
|
||||
```ts
|
||||
template.resourcePropertiesCountIs('Foo::Bar', {
|
||||
Foo: 'Bar',
|
||||
Baz: 5,
|
||||
Qux: [ 'Waldo', 'Fred' ],
|
||||
}, 1);
|
||||
```
|
||||
|
||||
## Resource Matching & Retrieval
|
||||
|
||||
Beyond resource counting, the module also allows asserting that a resource with
|
||||
specific properties are present.
|
||||
|
||||
The following code asserts that the `Properties` section of a resource of type
|
||||
`Foo::Bar` contains the specified properties -
|
||||
|
||||
```ts
|
||||
template.hasResourceProperties('Foo::Bar', {
|
||||
Lorem: 'Ipsum',
|
||||
Baz: 5,
|
||||
Qux: [ 'Waldo', 'Fred' ],
|
||||
});
|
||||
```
|
||||
|
||||
You can also assert that the `Properties` section of all resources of type
|
||||
`Foo::Bar` contains the specified properties -
|
||||
|
||||
```ts
|
||||
template.allResourcesProperties('Foo::Bar', {
|
||||
Lorem: 'Ipsum',
|
||||
Baz: 5,
|
||||
Qux: [ 'Waldo', 'Fred' ],
|
||||
});
|
||||
```
|
||||
|
||||
Alternatively, if you would like to assert the entire resource definition, you
|
||||
can use the `hasResource()` API.
|
||||
|
||||
```ts
|
||||
template.hasResource('Foo::Bar', {
|
||||
Properties: { Lorem: 'Ipsum' },
|
||||
DependsOn: [ 'Waldo', 'Fred' ],
|
||||
});
|
||||
```
|
||||
|
||||
You can also assert the definitions of all resources of a type using the
|
||||
`allResources()` API.
|
||||
|
||||
```ts
|
||||
template.allResources('Foo::Bar', {
|
||||
Properties: { Lorem: 'Ipsum' },
|
||||
DependsOn: [ 'Waldo', 'Fred' ],
|
||||
});
|
||||
```
|
||||
|
||||
Beyond assertions, the module provides APIs to retrieve matching resources.
|
||||
The `findResources()` API is complementary to the `hasResource()` API, except,
|
||||
instead of asserting its presence, it returns the set of matching resources.
|
||||
|
||||
Similarly, the `getResourceId()` API is complementary to the `findResources()` API,
|
||||
except it expects only one matching resource, and returns the matched resource's resource id.
|
||||
Useful for asserting that certain cloudformation resources correlate expectedly.
|
||||
|
||||
```ts
|
||||
// Assert that a certain bucket denies unsecure communication
|
||||
const bucket = template.getResourceId('AWS::S3::Bucket', {
|
||||
Properties: {
|
||||
BucketName: 'my-bucket',
|
||||
}
|
||||
})
|
||||
|
||||
template.hasResourceProperties('AWS::S3::BucketPolicy', {
|
||||
Bucket: {
|
||||
Ref: bucket,
|
||||
},
|
||||
PolicyDocument: {
|
||||
Statement: [
|
||||
{
|
||||
Effect: 'Deny',
|
||||
Action: 's3:*',
|
||||
Principal: { AWS: '*' },
|
||||
Condition: { Bool: { 'aws:SecureTransport': 'false' } },
|
||||
},
|
||||
],
|
||||
}
|
||||
})
|
||||
|
||||
```
|
||||
|
||||
By default, the `hasResource()` and `hasResourceProperties()` APIs perform deep
|
||||
partial object matching. This behavior can be configured using matchers.
|
||||
See subsequent section on [special matchers](#special-matchers).
|
||||
|
||||
## Output and Mapping sections
|
||||
|
||||
The module allows you to assert that the CloudFormation template contains an Output
|
||||
that matches specific properties. The following code asserts that a template contains
|
||||
an Output with a `logicalId` of `Foo` and the specified properties -
|
||||
|
||||
```ts
|
||||
const expected = {
|
||||
Value: 'Bar',
|
||||
Export: { Name: 'ExportBaz' },
|
||||
};
|
||||
template.hasOutput('Foo', expected);
|
||||
```
|
||||
|
||||
If you want to match against all Outputs in the template, use `*` as the `logicalId`.
|
||||
|
||||
```ts
|
||||
template.hasOutput('*', {
|
||||
Value: 'Bar',
|
||||
Export: { Name: 'ExportBaz' },
|
||||
});
|
||||
```
|
||||
|
||||
`findOutputs()` will return a set of outputs that match the `logicalId` and `props`,
|
||||
and you can use the `'*'` special case as well.
|
||||
|
||||
```ts
|
||||
const result = template.findOutputs('*', { Value: 'Fred' });
|
||||
expect(result.Foo).toEqual({ Value: 'Fred', Description: 'FooFred' });
|
||||
expect(result.Bar).toEqual({ Value: 'Fred', Description: 'BarFred' });
|
||||
```
|
||||
|
||||
The APIs `hasMapping()`, `findMappings()`, `hasCondition()`, and `hasCondtions()` provide similar functionalities.
|
||||
|
||||
## Special Matchers
|
||||
|
||||
The expectation provided to the `hasXxx()`, `findXxx()` and `templateMatches()`
|
||||
APIs, besides carrying literal values, as seen in the above examples, also accept
|
||||
special matchers.
|
||||
|
||||
They are available as part of the `Match` class.
|
||||
|
||||
### Object Matchers
|
||||
|
||||
The `Match.objectLike()` API can be used to assert that the target is a superset
|
||||
object of the provided pattern.
|
||||
This API will perform a deep partial match on the target.
|
||||
Deep partial matching is where objects are matched partially recursively. At each
|
||||
level, the list of keys in the target is a subset of the provided pattern.
|
||||
|
||||
```ts
|
||||
// Given a template -
|
||||
// {
|
||||
// "Resources": {
|
||||
// "MyBar": {
|
||||
// "Type": "Foo::Bar",
|
||||
// "Properties": {
|
||||
// "Fred": {
|
||||
// "Wobble": "Flob",
|
||||
// "Bob": "Cat"
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
// The following will NOT throw an assertion error
|
||||
template.hasResourceProperties('Foo::Bar', {
|
||||
Fred: Match.objectLike({
|
||||
Wobble: 'Flob',
|
||||
}),
|
||||
});
|
||||
|
||||
// The following will throw an assertion error
|
||||
template.hasResourceProperties('Foo::Bar', {
|
||||
Fred: Match.objectLike({
|
||||
Brew: 'Coffee',
|
||||
}),
|
||||
});
|
||||
```
|
||||
|
||||
The `Match.objectEquals()` API can be used to assert a target as a deep exact
|
||||
match.
|
||||
|
||||
### Presence and Absence
|
||||
|
||||
The `Match.absent()` matcher can be used to specify that a specific
|
||||
value should not exist on the target. This can be used within `Match.objectLike()`
|
||||
or outside of any matchers.
|
||||
|
||||
```ts
|
||||
// Given a template -
|
||||
// {
|
||||
// "Resources": {
|
||||
// "MyBar": {
|
||||
// "Type": "Foo::Bar",
|
||||
// "Properties": {
|
||||
// "Fred": {
|
||||
// "Wobble": "Flob",
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
// The following will NOT throw an assertion error
|
||||
template.hasResourceProperties('Foo::Bar', {
|
||||
Fred: Match.objectLike({
|
||||
Bob: Match.absent(),
|
||||
}),
|
||||
});
|
||||
|
||||
// The following will throw an assertion error
|
||||
template.hasResourceProperties('Foo::Bar', {
|
||||
Fred: Match.objectLike({
|
||||
Wobble: Match.absent(),
|
||||
}),
|
||||
});
|
||||
```
|
||||
|
||||
The `Match.anyValue()` matcher can be used to specify that a specific value should be found
|
||||
at the location. This matcher will fail if when the target location has null-ish values
|
||||
(i.e., `null` or `undefined`).
|
||||
|
||||
This matcher can be combined with any of the other matchers.
|
||||
|
||||
```ts
|
||||
// Given a template -
|
||||
// {
|
||||
// "Resources": {
|
||||
// "MyBar": {
|
||||
// "Type": "Foo::Bar",
|
||||
// "Properties": {
|
||||
// "Fred": {
|
||||
// "Wobble": ["Flob", "Flib"],
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
// The following will NOT throw an assertion error
|
||||
template.hasResourceProperties('Foo::Bar', {
|
||||
Fred: {
|
||||
Wobble: [ Match.anyValue(), Match.anyValue() ],
|
||||
},
|
||||
});
|
||||
|
||||
// The following will throw an assertion error
|
||||
template.hasResourceProperties('Foo::Bar', {
|
||||
Fred: {
|
||||
Wimble: Match.anyValue(),
|
||||
},
|
||||
});
|
||||
```
|
||||
|
||||
### Array Matchers
|
||||
|
||||
The `Match.arrayWith()` API can be used to assert that the target is equal to or a subset
|
||||
of the provided pattern array.
|
||||
This API will perform subset match on the target.
|
||||
|
||||
```ts
|
||||
// Given a template -
|
||||
// {
|
||||
// "Resources": {
|
||||
// "MyBar": {
|
||||
// "Type": "Foo::Bar",
|
||||
// "Properties": {
|
||||
// "Fred": ["Flob", "Cat"]
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
// The following will NOT throw an assertion error
|
||||
template.hasResourceProperties('Foo::Bar', {
|
||||
Fred: Match.arrayWith(['Flob']),
|
||||
});
|
||||
|
||||
// The following will throw an assertion error
|
||||
template.hasResourceProperties('Foo::Bar', Match.objectLike({
|
||||
Fred: Match.arrayWith(['Wobble']),
|
||||
}));
|
||||
```
|
||||
|
||||
*Note:* The list of items in the pattern array should be in order as they appear in the
|
||||
target array. Out of order will be recorded as a match failure.
|
||||
|
||||
Alternatively, the `Match.arrayEquals()` API can be used to assert that the target is
|
||||
exactly equal to the pattern array.
|
||||
|
||||
### String Matchers
|
||||
|
||||
The `Match.stringLikeRegexp()` API can be used to assert that the target matches the
|
||||
provided regular expression.
|
||||
|
||||
```ts
|
||||
// Given a template -
|
||||
// {
|
||||
// "Resources": {
|
||||
// "MyBar": {
|
||||
// "Type": "Foo::Bar",
|
||||
// "Properties": {
|
||||
// "Template": "const includeHeaders = true;"
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
// The following will NOT throw an assertion error
|
||||
template.hasResourceProperties('Foo::Bar', {
|
||||
Template: Match.stringLikeRegexp('includeHeaders = (true|false)'),
|
||||
});
|
||||
|
||||
// The following will throw an assertion error
|
||||
template.hasResourceProperties('Foo::Bar', {
|
||||
Template: Match.stringLikeRegexp('includeHeaders = null'),
|
||||
});
|
||||
```
|
||||
|
||||
### Not Matcher
|
||||
|
||||
The not matcher inverts the search pattern and matches all patterns in the path that does
|
||||
not match the pattern specified.
|
||||
|
||||
```ts
|
||||
// Given a template -
|
||||
// {
|
||||
// "Resources": {
|
||||
// "MyBar": {
|
||||
// "Type": "Foo::Bar",
|
||||
// "Properties": {
|
||||
// "Fred": ["Flob", "Cat"]
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
// The following will NOT throw an assertion error
|
||||
template.hasResourceProperties('Foo::Bar', {
|
||||
Fred: Match.not(['Flob']),
|
||||
});
|
||||
|
||||
// The following will throw an assertion error
|
||||
template.hasResourceProperties('Foo::Bar', Match.objectLike({
|
||||
Fred: Match.not(['Flob', 'Cat']),
|
||||
}));
|
||||
```
|
||||
|
||||
### Serialized JSON
|
||||
|
||||
Often, we find that some CloudFormation Resource types declare properties as a string,
|
||||
but actually expect JSON serialized as a string.
|
||||
For example, the [`BuildSpec` property of `AWS::CodeBuild::Project`][Pipeline BuildSpec],
|
||||
the [`Definition` property of `AWS::StepFunctions::StateMachine`][StateMachine Definition],
|
||||
to name a couple.
|
||||
|
||||
The `Match.serializedJson()` matcher allows deep matching within a stringified JSON.
|
||||
|
||||
```ts
|
||||
// Given a template -
|
||||
// {
|
||||
// "Resources": {
|
||||
// "MyBar": {
|
||||
// "Type": "Foo::Bar",
|
||||
// "Properties": {
|
||||
// "Baz": "{ \"Fred\": [\"Waldo\", \"Willow\"] }"
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
// The following will NOT throw an assertion error
|
||||
template.hasResourceProperties('Foo::Bar', {
|
||||
Baz: Match.serializedJson({
|
||||
Fred: Match.arrayWith(["Waldo"]),
|
||||
}),
|
||||
});
|
||||
|
||||
// The following will throw an assertion error
|
||||
template.hasResourceProperties('Foo::Bar', {
|
||||
Baz: Match.serializedJson({
|
||||
Fred: ["Waldo", "Johnny"],
|
||||
}),
|
||||
});
|
||||
```
|
||||
|
||||
[Pipeline BuildSpec]: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-source.html#cfn-codebuild-project-source-buildspec
|
||||
[StateMachine Definition]: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-stepfunctions-statemachine.html#cfn-stepfunctions-statemachine-definition
|
||||
|
||||
## Capturing Values
|
||||
|
||||
The matcher APIs documented above allow capturing values in the matching entry
|
||||
(Resource, Output, Mapping, etc.). The following code captures a string from a
|
||||
matching resource.
|
||||
|
||||
```ts
|
||||
// Given a template -
|
||||
// {
|
||||
// "Resources": {
|
||||
// "MyBar": {
|
||||
// "Type": "Foo::Bar",
|
||||
// "Properties": {
|
||||
// "Fred": ["Flob", "Cat"],
|
||||
// "Waldo": ["Qix", "Qux"],
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
const fredCapture = new Capture();
|
||||
const waldoCapture = new Capture();
|
||||
template.hasResourceProperties('Foo::Bar', {
|
||||
Fred: fredCapture,
|
||||
Waldo: ["Qix", waldoCapture] as any[],
|
||||
});
|
||||
|
||||
fredCapture.asArray(); // returns ["Flob", "Cat"]
|
||||
waldoCapture.asString(); // returns "Qux"
|
||||
```
|
||||
|
||||
With captures, a nested pattern can also be specified, so that only targets
|
||||
that match the nested pattern will be captured. This pattern can be literals or
|
||||
further Matchers.
|
||||
|
||||
```ts
|
||||
// Given a template -
|
||||
// {
|
||||
// "Resources": {
|
||||
// "MyBar1": {
|
||||
// "Type": "Foo::Bar",
|
||||
// "Properties": {
|
||||
// "Fred": ["Flob", "Cat"],
|
||||
// }
|
||||
// }
|
||||
// "MyBar2": {
|
||||
// "Type": "Foo::Bar",
|
||||
// "Properties": {
|
||||
// "Fred": ["Qix", "Qux"],
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
const capture = new Capture(Match.arrayWith(['Cat']));
|
||||
template.hasResourceProperties('Foo::Bar', {
|
||||
Fred: capture,
|
||||
});
|
||||
|
||||
capture.asArray(); // returns ['Flob', 'Cat']
|
||||
```
|
||||
|
||||
When multiple resources match the given condition, each `Capture` defined in
|
||||
the condition will capture all matching values. They can be paged through using
|
||||
the `next()` API. The following example illustrates this -
|
||||
|
||||
```ts
|
||||
// Given a template -
|
||||
// {
|
||||
// "Resources": {
|
||||
// "MyBar": {
|
||||
// "Type": "Foo::Bar",
|
||||
// "Properties": {
|
||||
// "Fred": "Flob",
|
||||
// }
|
||||
// },
|
||||
// "MyBaz": {
|
||||
// "Type": "Foo::Bar",
|
||||
// "Properties": {
|
||||
// "Fred": "Quib",
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
const fredCapture = new Capture();
|
||||
template.hasResourceProperties('Foo::Bar', {
|
||||
Fred: fredCapture,
|
||||
});
|
||||
|
||||
fredCapture.asString(); // returns "Flob"
|
||||
fredCapture.next(); // returns true
|
||||
fredCapture.asString(); // returns "Quib"
|
||||
```
|
||||
|
||||
## Asserting Annotations
|
||||
|
||||
In addition to template matching, we provide an API for annotation matching.
|
||||
[Annotations](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.Annotations.html)
|
||||
can be added via the [Aspects](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.Aspects.html)
|
||||
API. You can learn more about Aspects [here](https://docs.aws.amazon.com/cdk/v2/guide/aspects.html).
|
||||
|
||||
Say you have a `MyAspect` and a `MyStack` that uses `MyAspect`:
|
||||
|
||||
```ts nofixture
|
||||
import * as cdk from 'aws-cdk-lib';
|
||||
import { Construct, IConstruct } from 'constructs';
|
||||
|
||||
class MyAspect implements cdk.IAspect {
|
||||
public visit(node: IConstruct): void {
|
||||
if (node instanceof cdk.CfnResource && node.cfnResourceType === 'Foo::Bar') {
|
||||
this.error(node, 'we do not want a Foo::Bar resource');
|
||||
}
|
||||
}
|
||||
|
||||
protected error(node: IConstruct, message: string): void {
|
||||
cdk.Annotations.of(node).addError(message);
|
||||
}
|
||||
}
|
||||
|
||||
class MyStack extends cdk.Stack {
|
||||
constructor(scope: Construct, id: string) {
|
||||
super(scope, id);
|
||||
|
||||
const stack = new cdk.Stack();
|
||||
new cdk.CfnResource(stack, 'Foo', {
|
||||
type: 'Foo::Bar',
|
||||
properties: {
|
||||
Fred: 'Thud',
|
||||
},
|
||||
});
|
||||
cdk.Aspects.of(stack).add(new MyAspect());
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
We can then assert that the stack contains the expected Error:
|
||||
|
||||
```ts
|
||||
// import { Annotations } from '@aws-cdk/assertions';
|
||||
|
||||
Annotations.fromStack(stack).hasError(
|
||||
'/Default/Foo',
|
||||
'we do not want a Foo::Bar resource',
|
||||
);
|
||||
```
|
||||
|
||||
Here are the available APIs for `Annotations`:
|
||||
|
||||
- `hasError()`, `hasNoError()`, and `findError()`
|
||||
- `hasWarning()`, `hasNoWarning()`, and `findWarning()`
|
||||
- `hasInfo()`, `hasNoInfo()`, and `findInfo()`
|
||||
|
||||
The corresponding `findXxx()` API is complementary to the `hasXxx()` API, except instead
|
||||
of asserting its presence, it returns the set of matching messages.
|
||||
|
||||
In addition, this suite of APIs is compatible with `Matchers` for more fine-grained control.
|
||||
For example, the following assertion works as well:
|
||||
|
||||
```ts
|
||||
Annotations.fromStack(stack).hasError(
|
||||
'/Default/Foo',
|
||||
Match.stringLikeRegexp('.*Foo::Bar.*'),
|
||||
);
|
||||
```
|
||||
|
||||
## Asserting Stack tags
|
||||
|
||||
Tags applied to a `Stack` are not part of the rendered template: instead, they
|
||||
are included as properties in the Cloud Assembly Manifest. To test that stacks
|
||||
are tagged as expected, simple assertions can be written.
|
||||
|
||||
Given the following setup:
|
||||
|
||||
```ts nofixture
|
||||
import { App, Stack } from 'aws-cdk-lib';
|
||||
import { Tags } from 'aws-cdk-lib/assertions';
|
||||
|
||||
const app = new App();
|
||||
const stack = new Stack(app, 'MyStack', {
|
||||
tags: {
|
||||
'tag-name': 'tag-value',
|
||||
},
|
||||
});
|
||||
```
|
||||
|
||||
It is possible to test against these values:
|
||||
|
||||
```ts
|
||||
const tags = Tags.fromStack(stack);
|
||||
|
||||
// using a default 'objectLike' Matcher
|
||||
tags.hasValues({
|
||||
'tag-name': 'tag-value',
|
||||
});
|
||||
|
||||
// ... with Matchers embedded
|
||||
tags.hasValues({
|
||||
'tag-name': Match.stringLikeRegexp('value'),
|
||||
});
|
||||
|
||||
// or another object Matcher at the top level
|
||||
tags.hasValues(Match.objectEquals({
|
||||
'tag-name': Match.anyValue(),
|
||||
}));
|
||||
```
|
||||
|
||||
When tags are not defined on the stack, it is represented as an empty object
|
||||
rather than `undefined`. To make this more obvious, there is a `hasNone()`
|
||||
method that can be used in place of `Match.exactly({})`. If `Match.absent()` is
|
||||
passed, an error will result.
|
||||
|
||||
```ts
|
||||
// no tags present
|
||||
Tags.fromStack(stack).hasNone();
|
||||
|
||||
// don't use absent() at the top level, it won't work
|
||||
expect(() => { Tags.fromStack(stack).hasValues(Match.absent()); }).toThrow(/will never match/i);
|
||||
```
|
||||
1
cdk/node_modules/aws-cdk-lib/assertions/index.d.ts
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/assertions/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export * from './lib';
|
||||
1
cdk/node_modules/aws-cdk-lib/assertions/index.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/assertions/index.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";var __createBinding=exports&&exports.__createBinding||(Object.create?(function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}):(function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]})),__exportStar=exports&&exports.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)};Object.defineProperty(exports,"__esModule",{value:!0});var _noFold;exports.Capture=void 0,Object.defineProperty(exports,_noFold="Capture",{enumerable:!0,configurable:!0,get:()=>{var value=require("./lib").Capture;return Object.defineProperty(exports,_noFold="Capture",{enumerable:!0,configurable:!0,value}),value}}),exports.Template=void 0,Object.defineProperty(exports,_noFold="Template",{enumerable:!0,configurable:!0,get:()=>{var value=require("./lib").Template;return Object.defineProperty(exports,_noFold="Template",{enumerable:!0,configurable:!0,value}),value}}),exports.Match=void 0,Object.defineProperty(exports,_noFold="Match",{enumerable:!0,configurable:!0,get:()=>{var value=require("./lib").Match;return Object.defineProperty(exports,_noFold="Match",{enumerable:!0,configurable:!0,value}),value}}),exports.Matcher=void 0,Object.defineProperty(exports,_noFold="Matcher",{enumerable:!0,configurable:!0,get:()=>{var value=require("./lib").Matcher;return Object.defineProperty(exports,_noFold="Matcher",{enumerable:!0,configurable:!0,value}),value}}),exports.MatchResult=void 0,Object.defineProperty(exports,_noFold="MatchResult",{enumerable:!0,configurable:!0,get:()=>{var value=require("./lib").MatchResult;return Object.defineProperty(exports,_noFold="MatchResult",{enumerable:!0,configurable:!0,value}),value}}),exports.Annotations=void 0,Object.defineProperty(exports,_noFold="Annotations",{enumerable:!0,configurable:!0,get:()=>{var value=require("./lib").Annotations;return Object.defineProperty(exports,_noFold="Annotations",{enumerable:!0,configurable:!0,value}),value}}),exports.Tags=void 0,Object.defineProperty(exports,_noFold="Tags",{enumerable:!0,configurable:!0,get:()=>{var value=require("./lib").Tags;return Object.defineProperty(exports,_noFold="Tags",{enumerable:!0,configurable:!0,value}),value}});
|
||||
78
cdk/node_modules/aws-cdk-lib/assertions/lib/annotations.d.ts
generated
vendored
Normal file
78
cdk/node_modules/aws-cdk-lib/assertions/lib/annotations.d.ts
generated
vendored
Normal file
@@ -0,0 +1,78 @@
|
||||
import type { Stack } from '../../core';
|
||||
import type { SynthesisMessage } from '../../cx-api';
|
||||
/**
|
||||
* Suite of assertions that can be run on a CDK Stack.
|
||||
* Focused on asserting annotations.
|
||||
*/
|
||||
export declare class Annotations {
|
||||
/**
|
||||
* Base your assertions on the messages returned by a synthesized CDK `Stack`.
|
||||
* @param stack the CDK Stack to run assertions on
|
||||
*/
|
||||
static fromStack(stack: Stack): Annotations;
|
||||
private readonly _messages;
|
||||
private constructor();
|
||||
/**
|
||||
* Assert that an error with the given message exists in the synthesized CDK `Stack`.
|
||||
*
|
||||
* @param constructPath the construct path to the error, provide `'*'` to match all errors in the template.
|
||||
* @param message the error message as should be expected. This should be a string or Matcher object.
|
||||
*/
|
||||
hasError(constructPath: string, message: any): void;
|
||||
/**
|
||||
* Assert that an error with the given message does not exist in the synthesized CDK `Stack`.
|
||||
*
|
||||
* @param constructPath the construct path to the error, provide `'*'` to match all errors in the template.
|
||||
* @param message the error message as should be expected. This should be a string or Matcher object.
|
||||
*/
|
||||
hasNoError(constructPath: string, message: any): void;
|
||||
/**
|
||||
* Get the set of matching errors of a given construct path and message.
|
||||
*
|
||||
* @param constructPath the construct path to the error, provide `'*'` to match all errors in the template.
|
||||
* @param message the error message as should be expected. This should be a string or Matcher object.
|
||||
*/
|
||||
findError(constructPath: string, message: any): SynthesisMessage[];
|
||||
/**
|
||||
* Assert that an warning with the given message exists in the synthesized CDK `Stack`.
|
||||
*
|
||||
* @param constructPath the construct path to the warning, provide `'*'` to match all warnings in the template.
|
||||
* @param message the warning message as should be expected. This should be a string or Matcher object.
|
||||
*/
|
||||
hasWarning(constructPath: string, message: any): void;
|
||||
/**
|
||||
* Assert that an warning with the given message does not exist in the synthesized CDK `Stack`.
|
||||
*
|
||||
* @param constructPath the construct path to the warning, provide `'*'` to match all warnings in the template.
|
||||
* @param message the warning message as should be expected. This should be a string or Matcher object.
|
||||
*/
|
||||
hasNoWarning(constructPath: string, message: any): void;
|
||||
/**
|
||||
* Get the set of matching warning of a given construct path and message.
|
||||
*
|
||||
* @param constructPath the construct path to the warning, provide `'*'` to match all warnings in the template.
|
||||
* @param message the warning message as should be expected. This should be a string or Matcher object.
|
||||
*/
|
||||
findWarning(constructPath: string, message: any): SynthesisMessage[];
|
||||
/**
|
||||
* Assert that an info with the given message exists in the synthesized CDK `Stack`.
|
||||
*
|
||||
* @param constructPath the construct path to the info, provide `'*'` to match all info in the template.
|
||||
* @param message the info message as should be expected. This should be a string or Matcher object.
|
||||
*/
|
||||
hasInfo(constructPath: string, message: any): void;
|
||||
/**
|
||||
* Assert that an info with the given message does not exist in the synthesized CDK `Stack`.
|
||||
*
|
||||
* @param constructPath the construct path to the info, provide `'*'` to match all info in the template.
|
||||
* @param message the info message as should be expected. This should be a string or Matcher object.
|
||||
*/
|
||||
hasNoInfo(constructPath: string, message: any): void;
|
||||
/**
|
||||
* Get the set of matching infos of a given construct path and message.
|
||||
*
|
||||
* @param constructPath the construct path to the info, provide `'*'` to match all infos in the template.
|
||||
* @param message the info message as should be expected. This should be a string or Matcher object.
|
||||
*/
|
||||
findInfo(constructPath: string, message: any): SynthesisMessage[];
|
||||
}
|
||||
1
cdk/node_modules/aws-cdk-lib/assertions/lib/annotations.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/assertions/lib/annotations.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Annotations=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");var messages_1=()=>{var tmp=require("./private/messages");return messages_1=()=>tmp,tmp},core_1=()=>{var tmp=require("../../core");return core_1=()=>tmp,tmp},error_1=()=>{var tmp=require("./private/error");return error_1=()=>tmp,tmp};class Annotations{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.assertions.Annotations",version:"2.252.0"};static fromStack(stack){try{jsiiDeprecationWarnings().aws_cdk_lib_Stack(stack)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.fromStack),error}return new Annotations(toMessages(stack))}_messages;constructor(messages){this._messages=convertArrayToMessagesType(messages)}hasError(constructPath,message){const matchError=(0,messages_1().hasMessage)(this._messages,constructPath,constructMessage("error",message));if(matchError)throw new(error_1()).AssertionError(matchError)}hasNoError(constructPath,message){const matchError=(0,messages_1().hasNoMessage)(this._messages,constructPath,constructMessage("error",message));if(matchError)throw new(error_1()).AssertionError(matchError)}findError(constructPath,message){return convertMessagesTypeToArray((0,messages_1().findMessage)(this._messages,constructPath,constructMessage("error",message)))}hasWarning(constructPath,message){const matchError=(0,messages_1().hasMessage)(this._messages,constructPath,constructMessage("warning",message));if(matchError)throw new(error_1()).AssertionError(matchError)}hasNoWarning(constructPath,message){const matchError=(0,messages_1().hasNoMessage)(this._messages,constructPath,constructMessage("warning",message));if(matchError)throw new(error_1()).AssertionError(matchError)}findWarning(constructPath,message){return convertMessagesTypeToArray((0,messages_1().findMessage)(this._messages,constructPath,constructMessage("warning",message)))}hasInfo(constructPath,message){const matchError=(0,messages_1().hasMessage)(this._messages,constructPath,constructMessage("info",message));if(matchError)throw new(error_1()).AssertionError(matchError)}hasNoInfo(constructPath,message){const matchError=(0,messages_1().hasNoMessage)(this._messages,constructPath,constructMessage("info",message));if(matchError)throw new(error_1()).AssertionError(matchError)}findInfo(constructPath,message){return convertMessagesTypeToArray((0,messages_1().findMessage)(this._messages,constructPath,constructMessage("info",message)))}}exports.Annotations=Annotations;function constructMessage(type,message){return{level:type,entry:{data:message}}}function convertArrayToMessagesType(messages){return messages.reduce((obj,item,index)=>({...obj,[index]:item}),{})}function convertMessagesTypeToArray(messages){return Object.values(messages)}function toMessages(stack){const root=stack.node.root;if(!core_1().Stage.isStage(root))throw new(error_1()).AssertionError("unexpected: all stacks must be part of a Stage or an App");return root.synth({force:!0}).getStackArtifact(stack.artifactId).messages}
|
||||
54
cdk/node_modules/aws-cdk-lib/assertions/lib/capture.d.ts
generated
vendored
Normal file
54
cdk/node_modules/aws-cdk-lib/assertions/lib/capture.d.ts
generated
vendored
Normal file
@@ -0,0 +1,54 @@
|
||||
import { Matcher, MatchResult } from './matcher';
|
||||
/**
|
||||
* Capture values while matching templates.
|
||||
* Using an instance of this class within a Matcher will capture the matching value.
|
||||
* The `as*()` APIs on the instance can be used to get the captured value.
|
||||
*/
|
||||
export declare class Capture extends Matcher {
|
||||
private readonly pattern?;
|
||||
readonly name: string;
|
||||
/** @internal */
|
||||
_captured: any[];
|
||||
private idx;
|
||||
/**
|
||||
* Initialize a new capture
|
||||
* @param pattern a nested pattern or Matcher.
|
||||
* If a nested pattern is provided `objectLike()` matching is applied.
|
||||
*/
|
||||
constructor(pattern?: any | undefined);
|
||||
test(actual: any): MatchResult;
|
||||
/**
|
||||
* When multiple results are captured, move the iterator to the next result.
|
||||
* @returns true if another capture is present, false otherwise
|
||||
*/
|
||||
next(): boolean;
|
||||
/**
|
||||
* Retrieve the captured value as a string.
|
||||
* An error is generated if no value is captured or if the value is not a string.
|
||||
*/
|
||||
asString(): string;
|
||||
/**
|
||||
* Retrieve the captured value as a number.
|
||||
* An error is generated if no value is captured or if the value is not a number.
|
||||
*/
|
||||
asNumber(): number;
|
||||
/**
|
||||
* Retrieve the captured value as a boolean.
|
||||
* An error is generated if no value is captured or if the value is not a boolean.
|
||||
*/
|
||||
asBoolean(): boolean;
|
||||
/**
|
||||
* Retrieve the captured value as an array.
|
||||
* An error is generated if no value is captured or if the value is not an array.
|
||||
*/
|
||||
asArray(): any[];
|
||||
/**
|
||||
* Retrieve the captured value as a JSON object.
|
||||
* An error is generated if no value is captured or if the value is not an object.
|
||||
*/
|
||||
asObject(): {
|
||||
[key: string]: any;
|
||||
};
|
||||
private validate;
|
||||
private reportIncorrectType;
|
||||
}
|
||||
1
cdk/node_modules/aws-cdk-lib/assertions/lib/capture.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/assertions/lib/capture.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Capture=void 0;const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");var _1=()=>{var tmp=require(".");return _1=()=>tmp,tmp},matcher_1=()=>{var tmp=require("./matcher");return matcher_1=()=>tmp,tmp},error_1=()=>{var tmp=require("./private/error");return error_1=()=>tmp,tmp},type_1=()=>{var tmp=require("./private/type");return type_1=()=>tmp,tmp};class Capture extends matcher_1().Matcher{pattern;static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.assertions.Capture",version:"2.252.0"};name;_captured=[];idx=0;constructor(pattern){super(),this.pattern=pattern,this.name="Capture"}test(actual){const result=new(matcher_1()).MatchResult(actual);if(actual==null)return result.recordFailure({matcher:this,path:[],message:`Can only capture non-nullish values. Found ${actual}`});if(this.pattern!==void 0){const innerResult=(matcher_1().Matcher.isMatcher(this.pattern)?this.pattern:_1().Match.objectLike(this.pattern)).test(actual);if(innerResult.hasFailed())return innerResult}return result.recordCapture({capture:this,value:actual}),result}next(){return this.idx<this._captured.length-1?(this.idx++,!0):!1}asString(){this.validate();const val=this._captured[this.idx];if((0,type_1().getType)(val)==="string")return val;this.reportIncorrectType("string")}asNumber(){this.validate();const val=this._captured[this.idx];if((0,type_1().getType)(val)==="number")return val;this.reportIncorrectType("number")}asBoolean(){this.validate();const val=this._captured[this.idx];if((0,type_1().getType)(val)==="boolean")return val;this.reportIncorrectType("boolean")}asArray(){this.validate();const val=this._captured[this.idx];if((0,type_1().getType)(val)==="array")return val;this.reportIncorrectType("array")}asObject(){this.validate();const val=this._captured[this.idx];if((0,type_1().getType)(val)==="object")return val;this.reportIncorrectType("object")}validate(){if(this._captured.length===0)throw new(error_1()).AssertionError("No value captured")}reportIncorrectType(expected){throw new(error_1()).AssertionError(`Captured value is expected to be ${expected} but found ${(0,type_1().getType)(this._captured[this.idx])}. Value is ${JSON.stringify(this._captured[this.idx],void 0,2)}`)}}exports.Capture=Capture;
|
||||
2
cdk/node_modules/aws-cdk-lib/assertions/lib/helpers-internal/index.d.ts
generated
vendored
Normal file
2
cdk/node_modules/aws-cdk-lib/assertions/lib/helpers-internal/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
export * from '../match';
|
||||
export * from '../matcher';
|
||||
1
cdk/node_modules/aws-cdk-lib/assertions/lib/helpers-internal/index.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/assertions/lib/helpers-internal/index.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";var __createBinding=exports&&exports.__createBinding||(Object.create?(function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}):(function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]})),__exportStar=exports&&exports.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)};Object.defineProperty(exports,"__esModule",{value:!0});var _noFold;exports.Match=void 0,Object.defineProperty(exports,_noFold="Match",{enumerable:!0,configurable:!0,get:()=>{var value=require("../match").Match;return Object.defineProperty(exports,_noFold="Match",{enumerable:!0,configurable:!0,value}),value}}),exports.Matcher=void 0,Object.defineProperty(exports,_noFold="Matcher",{enumerable:!0,configurable:!0,get:()=>{var value=require("../matcher").Matcher;return Object.defineProperty(exports,_noFold="Matcher",{enumerable:!0,configurable:!0,value}),value}}),exports.MatchResult=void 0,Object.defineProperty(exports,_noFold="MatchResult",{enumerable:!0,configurable:!0,get:()=>{var value=require("../matcher").MatchResult;return Object.defineProperty(exports,_noFold="MatchResult",{enumerable:!0,configurable:!0,value}),value}});
|
||||
6
cdk/node_modules/aws-cdk-lib/assertions/lib/index.d.ts
generated
vendored
Normal file
6
cdk/node_modules/aws-cdk-lib/assertions/lib/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
export * from './capture';
|
||||
export * from './template';
|
||||
export * from './match';
|
||||
export * from './matcher';
|
||||
export * from './annotations';
|
||||
export * from './tags';
|
||||
1
cdk/node_modules/aws-cdk-lib/assertions/lib/index.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/assertions/lib/index.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";var __createBinding=exports&&exports.__createBinding||(Object.create?(function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}):(function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]})),__exportStar=exports&&exports.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)};Object.defineProperty(exports,"__esModule",{value:!0});var _noFold;exports.Capture=void 0,Object.defineProperty(exports,_noFold="Capture",{enumerable:!0,configurable:!0,get:()=>{var value=require("./capture").Capture;return Object.defineProperty(exports,_noFold="Capture",{enumerable:!0,configurable:!0,value}),value}}),exports.Template=void 0,Object.defineProperty(exports,_noFold="Template",{enumerable:!0,configurable:!0,get:()=>{var value=require("./template").Template;return Object.defineProperty(exports,_noFold="Template",{enumerable:!0,configurable:!0,value}),value}}),exports.Match=void 0,Object.defineProperty(exports,_noFold="Match",{enumerable:!0,configurable:!0,get:()=>{var value=require("./match").Match;return Object.defineProperty(exports,_noFold="Match",{enumerable:!0,configurable:!0,value}),value}}),exports.Matcher=void 0,Object.defineProperty(exports,_noFold="Matcher",{enumerable:!0,configurable:!0,get:()=>{var value=require("./matcher").Matcher;return Object.defineProperty(exports,_noFold="Matcher",{enumerable:!0,configurable:!0,value}),value}}),exports.MatchResult=void 0,Object.defineProperty(exports,_noFold="MatchResult",{enumerable:!0,configurable:!0,get:()=>{var value=require("./matcher").MatchResult;return Object.defineProperty(exports,_noFold="MatchResult",{enumerable:!0,configurable:!0,value}),value}}),exports.Annotations=void 0,Object.defineProperty(exports,_noFold="Annotations",{enumerable:!0,configurable:!0,get:()=>{var value=require("./annotations").Annotations;return Object.defineProperty(exports,_noFold="Annotations",{enumerable:!0,configurable:!0,value}),value}}),exports.Tags=void 0,Object.defineProperty(exports,_noFold="Tags",{enumerable:!0,configurable:!0,get:()=>{var value=require("./tags").Tags;return Object.defineProperty(exports,_noFold="Tags",{enumerable:!0,configurable:!0,value}),value}});
|
||||
61
cdk/node_modules/aws-cdk-lib/assertions/lib/match.d.ts
generated
vendored
Normal file
61
cdk/node_modules/aws-cdk-lib/assertions/lib/match.d.ts
generated
vendored
Normal file
@@ -0,0 +1,61 @@
|
||||
import { Matcher } from './matcher';
|
||||
/**
|
||||
* Partial and special matching during template assertions.
|
||||
*/
|
||||
export declare abstract class Match {
|
||||
/**
|
||||
* Use this matcher in the place of a field's value, if the field must not be present.
|
||||
*/
|
||||
static absent(): Matcher;
|
||||
/**
|
||||
* Matches the specified pattern with the array found in the same relative path of the target.
|
||||
* The set of elements (or matchers) must be in the same order as would be found.
|
||||
* @param pattern the pattern to match
|
||||
*/
|
||||
static arrayWith(pattern: any[]): Matcher;
|
||||
/**
|
||||
* Matches the specified pattern with the array found in the same relative path of the target.
|
||||
* The set of elements (or matchers) must match exactly and in order.
|
||||
* @param pattern the pattern to match
|
||||
*/
|
||||
static arrayEquals(pattern: any[]): Matcher;
|
||||
/**
|
||||
* Deep exact matching of the specified pattern to the target.
|
||||
* @param pattern the pattern to match
|
||||
*/
|
||||
static exact(pattern: any): Matcher;
|
||||
/**
|
||||
* Matches the specified pattern to an object found in the same relative path of the target.
|
||||
* The keys and their values (or matchers) must be present in the target but the target can be a superset.
|
||||
* @param pattern the pattern to match
|
||||
*/
|
||||
static objectLike(pattern: {
|
||||
[key: string]: any;
|
||||
}): Matcher;
|
||||
/**
|
||||
* Matches the specified pattern to an object found in the same relative path of the target.
|
||||
* The keys and their values (or matchers) must match exactly with the target.
|
||||
* @param pattern the pattern to match
|
||||
*/
|
||||
static objectEquals(pattern: {
|
||||
[key: string]: any;
|
||||
}): Matcher;
|
||||
/**
|
||||
* Matches any target which does NOT follow the specified pattern.
|
||||
* @param pattern the pattern to NOT match
|
||||
*/
|
||||
static not(pattern: any): Matcher;
|
||||
/**
|
||||
* Matches any string-encoded JSON and applies the specified pattern after parsing it.
|
||||
* @param pattern the pattern to match after parsing the encoded JSON.
|
||||
*/
|
||||
static serializedJson(pattern: any): Matcher;
|
||||
/**
|
||||
* Matches any non-null value at the target.
|
||||
*/
|
||||
static anyValue(): Matcher;
|
||||
/**
|
||||
* Matches targets according to a regular expression
|
||||
*/
|
||||
static stringLikeRegexp(pattern: string): Matcher;
|
||||
}
|
||||
1
cdk/node_modules/aws-cdk-lib/assertions/lib/match.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/assertions/lib/match.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
122
cdk/node_modules/aws-cdk-lib/assertions/lib/matcher.d.ts
generated
vendored
Normal file
122
cdk/node_modules/aws-cdk-lib/assertions/lib/matcher.d.ts
generated
vendored
Normal file
@@ -0,0 +1,122 @@
|
||||
import type { Capture } from './capture';
|
||||
/**
|
||||
* Represents a matcher that can perform special data matching
|
||||
* capabilities between a given pattern and a target.
|
||||
*/
|
||||
export declare abstract class Matcher {
|
||||
/**
|
||||
* Check whether the provided object is a subtype of the `IMatcher`.
|
||||
*/
|
||||
static isMatcher(x: any): x is Matcher;
|
||||
/**
|
||||
* A name for the matcher. This is collected as part of the result and may be presented to the user.
|
||||
*/
|
||||
abstract readonly name: string;
|
||||
/**
|
||||
* Test whether a target matches the provided pattern.
|
||||
* Every Matcher must implement this method.
|
||||
* This method will be invoked by the assertions framework. Do not call this method directly.
|
||||
* @param actual the target to match
|
||||
* @return the list of match failures. An empty array denotes a successful match.
|
||||
*/
|
||||
abstract test(actual: any): MatchResult;
|
||||
}
|
||||
/**
|
||||
* Match failure details
|
||||
*/
|
||||
export interface MatchFailure {
|
||||
/**
|
||||
* The matcher that had the failure
|
||||
*/
|
||||
readonly matcher: Matcher;
|
||||
/**
|
||||
* The relative path in the target where the failure occurred.
|
||||
* If the failure occurred at root of the match tree, set the path to an empty list.
|
||||
* If it occurs in the 5th index of an array nested within the 'foo' key of an object,
|
||||
* set the path as `['/foo', '[5]']`.
|
||||
*/
|
||||
readonly path: string[];
|
||||
/**
|
||||
* Failure message
|
||||
*/
|
||||
readonly message: string;
|
||||
/**
|
||||
* The cost of this particular mismatch
|
||||
*
|
||||
* @default 1
|
||||
*/
|
||||
readonly cost?: number;
|
||||
}
|
||||
/**
|
||||
* Information about a value captured during match
|
||||
*/
|
||||
export interface MatchCapture {
|
||||
/**
|
||||
* The instance of Capture class to which this capture is associated with.
|
||||
*/
|
||||
readonly capture: Capture;
|
||||
/**
|
||||
* The value that was captured
|
||||
*/
|
||||
readonly value: any;
|
||||
}
|
||||
/**
|
||||
* The result of `Match.test()`.
|
||||
*/
|
||||
export declare class MatchResult {
|
||||
/**
|
||||
* The target for which this result was generated.
|
||||
*/
|
||||
readonly target: any;
|
||||
private readonly failuresHere;
|
||||
private readonly captures;
|
||||
private finalized;
|
||||
private readonly innerMatchFailures;
|
||||
private _hasFailed;
|
||||
private _failCount;
|
||||
private _cost;
|
||||
constructor(target: any);
|
||||
/**
|
||||
* DEPRECATED
|
||||
* @deprecated use recordFailure()
|
||||
*/
|
||||
push(matcher: Matcher, path: string[], message: string): this;
|
||||
/**
|
||||
* Record a new failure into this result at a specific path.
|
||||
*/
|
||||
recordFailure(failure: MatchFailure): this;
|
||||
/** Whether the match is a success */
|
||||
get isSuccess(): boolean;
|
||||
/** Does the result contain any failures. If not, the result is a success */
|
||||
hasFailed(): boolean;
|
||||
/** The number of failures */
|
||||
get failCount(): number;
|
||||
/** The cost of the failures so far */
|
||||
get failCost(): number;
|
||||
/**
|
||||
* Compose the results of a previous match as a subtree.
|
||||
* @param id the id of the parent tree.
|
||||
*/
|
||||
compose(id: string, inner: MatchResult): this;
|
||||
/**
|
||||
* Prepare the result to be analyzed.
|
||||
* This API *must* be called prior to analyzing these results.
|
||||
*/
|
||||
finished(): this;
|
||||
/**
|
||||
* Render the failed match in a presentable way
|
||||
*
|
||||
* Prefer using `renderMismatch` over this method. It is left for backwards
|
||||
* compatibility for test suites that expect it, but `renderMismatch()` will
|
||||
* produce better output.
|
||||
*/
|
||||
toHumanStrings(): string[];
|
||||
/**
|
||||
* Do a deep render of the match result, showing the structure mismatches in context
|
||||
*/
|
||||
renderMismatch(): string;
|
||||
/**
|
||||
* Record a capture against in this match result.
|
||||
*/
|
||||
recordCapture(options: MatchCapture): void;
|
||||
}
|
||||
10
cdk/node_modules/aws-cdk-lib/assertions/lib/matcher.js
generated
vendored
Normal file
10
cdk/node_modules/aws-cdk-lib/assertions/lib/matcher.js
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.MatchResult=exports.Matcher=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");class Matcher{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.assertions.Matcher",version:"2.252.0"};static isMatcher(x){return x&&x instanceof Matcher}}exports.Matcher=Matcher;class MatchResult{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.assertions.MatchResult",version:"2.252.0"};target;failuresHere=new Map;captures=new Map;finalized=!1;innerMatchFailures=new Map;_hasFailed=!1;_failCount=0;_cost=0;constructor(target){this.target=target}push(matcher,path,message){try{jsiiDeprecationWarnings().print("aws-cdk-lib.assertions.MatchResult#push","use recordFailure()"),jsiiDeprecationWarnings().aws_cdk_lib_assertions_Matcher(matcher)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.push),error}return this.recordFailure({matcher,path,message})}recordFailure(failure){try{jsiiDeprecationWarnings().aws_cdk_lib_assertions_MatchFailure(failure)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.recordFailure),error}const failKey=failure.path.join(".");let list=this.failuresHere.get(failKey);return list||(list=[],this.failuresHere.set(failKey,list)),this._failCount+=1,this._cost+=failure.cost??1,list.push(failure),this._hasFailed=!0,this}get isSuccess(){return!this._hasFailed}hasFailed(){return this._hasFailed}get failCount(){return this._failCount}get failCost(){return this._cost}compose(id,inner){try{jsiiDeprecationWarnings().aws_cdk_lib_assertions_MatchResult(inner)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.compose),error}return inner.hasFailed()&&(this._hasFailed=!0,this._failCount+=inner.failCount,this._cost+=inner._cost,this.innerMatchFailures.set(id,inner)),inner.captures.forEach((vals,capture)=>{vals.forEach(value=>this.recordCapture({capture,value}))}),this}finished(){return this.finalized?this:(this.failCount===0&&this.captures.forEach((vals,cap)=>cap._captured.push(...vals)),this.finalized=!0,this)}toHumanStrings(){const failures=new Array;return recurse(this,[]),failures.map(r=>{const loc=r.path.length===0?"":` at /${r.path.join("/")}`;return""+r.message+loc+` (using ${r.matcher.name} matcher)`});function recurse(x,prefix){for(const fail of Array.from(x.failuresHere.values()).flat())failures.push({matcher:fail.matcher,message:fail.message,path:[...prefix,...fail.path]});for(const[key,inner]of x.innerMatchFailures.entries())recurse(inner,[...prefix,key])}}renderMismatch(){if(!this.hasFailed())return"<match>";const parts=new Array,indents=new Array;return emitFailures(this,""),recurse(this),moveMarkersToFront(parts.join("").trimEnd());function emit(x){if(x===void 0)debugger;parts.push(x.replace(/\n/g,`
|
||||
${indents.join("")}`))}function emitFailures(r,path,scrapSet){for(const fail of r.failuresHere.get(path)??[])emit(`!! ${fail.message}
|
||||
`);scrapSet?.delete(path)}function recurse(r){const remainingFailures=new Set(Array.from(r.failuresHere.keys()).filter(x=>x!==""));if(Array.isArray(r.target)){indents.push(" "),emit(`[
|
||||
`);for(const[first,i]of enumFirst(range(r.target.length))){first||emit(`,
|
||||
`),emitFailures(r,`${i}`,remainingFailures);const innerMatcher=r.innerMatchFailures.get(`${i}`);innerMatcher?(emitFailures(innerMatcher,""),recurseComparingValues(innerMatcher,r.target[i])):emit(renderAbridged(r.target[i]))}emitRemaining(),indents.pop(),emit(`
|
||||
]`);return}if(r.target&&typeof r.target=="object"){indents.push(" "),emit(`{
|
||||
`);const keys=Array.from(new Set([...Object.keys(r.target),...Array.from(remainingFailures)])).sort();for(const[first,key]of enumFirst(keys)){first||emit(`,
|
||||
`),emitFailures(r,key,remainingFailures);const innerMatcher=r.innerMatchFailures.get(key);innerMatcher?(emitFailures(innerMatcher,""),emit(`${jsonify(key)}: `),recurseComparingValues(innerMatcher,r.target[key])):(emit(`${jsonify(key)}: `),emit(renderAbridged(r.target[key])))}emitRemaining(),indents.pop(),emit(`
|
||||
}`);return}emitRemaining(),emit(jsonify(r.target));function emitRemaining(){remainingFailures.size>0&&emit(`
|
||||
`);for(const key of remainingFailures)emitFailures(r,key)}}function recurseComparingValues(inner,actualValue){if(inner.target===actualValue)return recurse(inner);emit(renderAbridged(actualValue)),emit(" <*> "),recurse(inner)}function renderAbridged(x){if(Array.isArray(x))switch(x.length){case 0:return"[]";case 1:return`[ ${renderAbridged(x[0])} ]`;case 2:return x.every(e=>["number","boolean","string"].includes(typeof e))?`[ ${x.map(renderAbridged).join(", ")} ]`:"[ ... ]";default:return"[ ... ]"}if(x&&typeof x=="object"){const keys=Object.keys(x);switch(keys.length){case 0:return"{}";case 1:return`{ ${JSON.stringify(keys[0])}: ${renderAbridged(x[keys[0]])} }`;default:return"{ ... }"}}return jsonify(x)}function jsonify(x){return JSON.stringify(x)??"undefined"}function moveMarkersToFront(x){const re=/^(\s+)!!/gm;return x.replace(re,(_,spaces)=>`!!${spaces.substring(0,spaces.length-2)}`)}}recordCapture(options){try{jsiiDeprecationWarnings().aws_cdk_lib_assertions_MatchCapture(options)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.recordCapture),error}let values=this.captures.get(options.capture);values===void 0&&(values=[]),values.push(options.value),this.captures.set(options.capture,values)}}exports.MatchResult=MatchResult;function*range(n){for(let i=0;i<n;i++)yield i}function*enumFirst(xs){let first=!0;for(const x of xs)yield[first,x],first=!1}
|
||||
7
cdk/node_modules/aws-cdk-lib/assertions/lib/private/conditions.d.ts
generated
vendored
Normal file
7
cdk/node_modules/aws-cdk-lib/assertions/lib/private/conditions.d.ts
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import type { Template } from './template';
|
||||
export declare function findConditions(template: Template, logicalId: string, props?: any): {
|
||||
[key: string]: {
|
||||
[key: string]: any;
|
||||
};
|
||||
};
|
||||
export declare function hasCondition(template: Template, logicalId: string, props: any): string | void;
|
||||
1
cdk/node_modules/aws-cdk-lib/assertions/lib/private/conditions.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/assertions/lib/private/conditions.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.findConditions=findConditions,exports.hasCondition=hasCondition;var section_1=()=>{var tmp=require("./section");return section_1=()=>tmp,tmp};function findConditions(template,logicalId,props={}){const section=template.Conditions??{},result=(0,section_1().matchSection)((0,section_1().filterLogicalId)(section,logicalId),props);return result.match?result.matches:{}}function hasCondition(template,logicalId,props){const section=template.Conditions??{},result=(0,section_1().matchSection)((0,section_1().filterLogicalId)(section,logicalId),props);if(!result.match)return(0,section_1().formatSectionMatchFailure)(`conditions with logicalId ${logicalId}`,result)}
|
||||
8
cdk/node_modules/aws-cdk-lib/assertions/lib/private/cyclic.d.ts
generated
vendored
Normal file
8
cdk/node_modules/aws-cdk-lib/assertions/lib/private/cyclic.d.ts
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
import type { Template } from './template';
|
||||
/**
|
||||
* Check a template for cyclic dependencies
|
||||
*
|
||||
* This will make sure that we don't happily validate templates
|
||||
* in unit tests that wouldn't deploy to CloudFormation anyway.
|
||||
*/
|
||||
export declare function checkTemplateForCyclicDependencies(template: Template): void;
|
||||
3
cdk/node_modules/aws-cdk-lib/assertions/lib/private/cyclic.js
generated
vendored
Normal file
3
cdk/node_modules/aws-cdk-lib/assertions/lib/private/cyclic.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.checkTemplateForCyclicDependencies=checkTemplateForCyclicDependencies;var error_1=()=>{var tmp=require("./error");return error_1=()=>tmp,tmp};function checkTemplateForCyclicDependencies(template){const logicalIds=new Set(Object.keys(template.Resources??{})),dependencies=new Map;for(const[logicalId,resource]of Object.entries(template.Resources??{}))dependencies.set(logicalId,intersect(findResourceDependencies(resource),logicalIds));for(;dependencies.size>0;){const free=Array.from(dependencies.entries()).filter(([_,deps])=>deps.size===0);if(free.length===0){const cycle=findCycle(dependencies),cycleResources={};for(const logicalId of cycle)cycleResources[logicalId]=template.Resources?.[logicalId];throw new(error_1()).AssertionError(`Template is undeployable, these resources have a dependency cycle: ${cycle.join(" -> ")}:
|
||||
|
||||
${JSON.stringify(cycleResources,void 0,2)}`)}for(const[logicalId,_]of free){for(const deps of dependencies.values())deps.delete(logicalId);dependencies.delete(logicalId)}}}function findResourceDependencies(res){return new Set([...toArray(res.DependsOn??[]),...findExpressionDependencies(res.Properties)])}function toArray(x){return Array.isArray(x)?x:[x]}function findExpressionDependencies(obj){const ret=new Set;return recurse(obj),ret;function recurse(x){if(x&&(Array.isArray(x)&&x.forEach(recurse),typeof x=="object")){const keys=Object.keys(x);if(keys.length===1&&keys[0]==="Ref")ret.add(x[keys[0]]);else if(keys.length===1&&keys[0]==="Fn::GetAtt")ret.add(x[keys[0]][0]);else if(keys.length===1&&keys[0]==="Fn::Sub"){const argument=x[keys[0]],pattern=Array.isArray(argument)?argument[0]:argument;if(typeof pattern=="string")for(const logId of logicalIdsInSubString(pattern))ret.add(logId);const contextDict=Array.isArray(argument)?argument[1]:void 0;contextDict&&typeof contextDict=="object"&&Object.values(contextDict).forEach(recurse)}else Object.values(x).forEach(recurse)}}}function logicalIdsInSubString(x){return analyzeSubPattern(x).flatMap(fragment=>{switch(fragment.type){case"getatt":case"ref":return[fragment.logicalId];case"literal":return[]}})}function analyzeSubPattern(pattern){const ret=[];let start=0,ph0=pattern.indexOf("${",start);for(;ph0>-1;){if(pattern[ph0+2]==="!"){start=ph0+3,ph0=pattern.indexOf("${",start);continue}const ph1=pattern.indexOf("}",ph0+2);if(ph1===-1)break;const placeholder=pattern.substring(ph0+2,ph1);if(ph0>start&&ret.push({type:"literal",content:pattern.substring(start,ph0)}),placeholder.includes(".")){const[logicalId,attr]=placeholder.split(".");ret.push({type:"getatt",logicalId,attr})}else ret.push({type:"ref",logicalId:placeholder});start=ph1+1,ph0=pattern.indexOf("${",start)}return start<pattern.length-1&&ret.push({type:"literal",content:pattern.slice(start)}),ret}function intersect(xs,ys){return new Set(Array.from(xs).filter(x=>ys.has(x)))}function findCycle(deps){for(const node of deps.keys()){const cycle=recurse(node,[node]);if(cycle)return cycle}throw new(error_1()).AssertionError("No cycle found. Assertion failure!");function recurse(node,path){for(const dep of deps.get(node)??[]){if(path.includes(dep))return[...path,dep];const cycle=recurse(dep,[...path,dep]);if(cycle)return cycle}}}
|
||||
19
cdk/node_modules/aws-cdk-lib/assertions/lib/private/error.d.ts
generated
vendored
Normal file
19
cdk/node_modules/aws-cdk-lib/assertions/lib/private/error.d.ts
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
/**
|
||||
* An AssertionError is thrown from the assertions module when an assertion fails.
|
||||
* Assertion errors are directly connected to an assertion a user wrote.
|
||||
*
|
||||
* Not all errors from the assertions module are automatically AssertionErrors.
|
||||
* When a pre-condition is incorrect (e.g. disallowed use of a matcher),
|
||||
* throwing an UnscopedValidationError is more appropriate.
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
export declare class AssertionError extends Error {
|
||||
#private;
|
||||
/**
|
||||
* The time the error was thrown.
|
||||
*/
|
||||
get time(): string;
|
||||
get type(): 'assertion';
|
||||
constructor(msg: string);
|
||||
}
|
||||
1
cdk/node_modules/aws-cdk-lib/assertions/lib/private/error.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/assertions/lib/private/error.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.AssertionError=void 0;const ASSERTION_ERROR_SYMBOL=Symbol.for("@aws-cdk/assertions.AssertionError");class AssertionError extends Error{#time;get time(){return this.#time}get type(){return"assertion"}constructor(msg){super(msg),Object.setPrototypeOf(this,AssertionError.prototype),Object.defineProperty(this,ASSERTION_ERROR_SYMBOL,{value:!0}),this.name=new.target.name,this.#time=new Date().toISOString()}}exports.AssertionError=AssertionError;
|
||||
7
cdk/node_modules/aws-cdk-lib/assertions/lib/private/mappings.d.ts
generated
vendored
Normal file
7
cdk/node_modules/aws-cdk-lib/assertions/lib/private/mappings.d.ts
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import type { Template } from './template';
|
||||
export declare function findMappings(template: Template, logicalId: string, props?: any): {
|
||||
[key: string]: {
|
||||
[key: string]: any;
|
||||
};
|
||||
};
|
||||
export declare function hasMapping(template: Template, logicalId: string, props: any): string | void;
|
||||
1
cdk/node_modules/aws-cdk-lib/assertions/lib/private/mappings.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/assertions/lib/private/mappings.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.findMappings=findMappings,exports.hasMapping=hasMapping;var section_1=()=>{var tmp=require("./section");return section_1=()=>tmp,tmp};function findMappings(template,logicalId,props={}){const section=template.Mappings??{},result=(0,section_1().matchSection)((0,section_1().filterLogicalId)(section,logicalId),props);return result.match?result.matches:{}}function hasMapping(template,logicalId,props){const section=template.Mappings??{},result=(0,section_1().matchSection)((0,section_1().filterLogicalId)(section,logicalId),props);if(!result.match)return(0,section_1().formatSectionMatchFailure)(`mappings with logicalId ${logicalId}`,result)}
|
||||
6
cdk/node_modules/aws-cdk-lib/assertions/lib/private/matchers/absent.d.ts
generated
vendored
Normal file
6
cdk/node_modules/aws-cdk-lib/assertions/lib/private/matchers/absent.d.ts
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
import { Matcher, MatchResult } from '../../matcher';
|
||||
export declare class AbsentMatch extends Matcher {
|
||||
readonly name: string;
|
||||
constructor(name: string);
|
||||
test(actual: any): MatchResult;
|
||||
}
|
||||
1
cdk/node_modules/aws-cdk-lib/assertions/lib/private/matchers/absent.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/assertions/lib/private/matchers/absent.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.AbsentMatch=void 0;var matcher_1=()=>{var tmp=require("../../matcher");return matcher_1=()=>tmp,tmp};class AbsentMatch extends matcher_1().Matcher{name;constructor(name){super(),this.name=name}test(actual){const result=new(matcher_1()).MatchResult(actual);return actual!==void 0&&result.recordFailure({matcher:this,path:[],message:`Received ${actual}, but key should be absent`}),result}}exports.AbsentMatch=AbsentMatch;
|
||||
4
cdk/node_modules/aws-cdk-lib/assertions/lib/private/message.d.ts
generated
vendored
Normal file
4
cdk/node_modules/aws-cdk-lib/assertions/lib/private/message.d.ts
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
import type { SynthesisMessage } from '../../../cx-api';
|
||||
export type Messages = {
|
||||
[key: string]: SynthesisMessage;
|
||||
};
|
||||
1
cdk/node_modules/aws-cdk-lib/assertions/lib/private/message.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/assertions/lib/private/message.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});
|
||||
8
cdk/node_modules/aws-cdk-lib/assertions/lib/private/messages.d.ts
generated
vendored
Normal file
8
cdk/node_modules/aws-cdk-lib/assertions/lib/private/messages.d.ts
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
import type { Messages } from './message';
|
||||
export declare function findMessage(messages: Messages, constructPath: string, props?: any): {
|
||||
[key: string]: {
|
||||
[key: string]: any;
|
||||
};
|
||||
};
|
||||
export declare function hasMessage(messages: Messages, constructPath: string, props: any): string | void;
|
||||
export declare function hasNoMessage(messages: Messages, constructPath: string, props: any): string | void;
|
||||
2
cdk/node_modules/aws-cdk-lib/assertions/lib/private/messages.js
generated
vendored
Normal file
2
cdk/node_modules/aws-cdk-lib/assertions/lib/private/messages.js
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.findMessage=findMessage,exports.hasMessage=hasMessage,exports.hasNoMessage=hasNoMessage;var section_1=()=>{var tmp=require("./section");return section_1=()=>tmp,tmp};function findMessage(messages,constructPath,props={}){const section=messages,result=(0,section_1().matchSection)(filterPath(section,constructPath),props);return result.match?result.matches:{}}function hasMessage(messages,constructPath,props){const section=messages,result=(0,section_1().matchSection)(filterPath(section,constructPath),props);if(!result.match){for(const mr of Object.values(result.closestResults))redactTraces(mr.target);return(0,section_1().formatSectionMatchFailure)(`messages at path ${constructPath}`,result,"Stack")}}function hasNoMessage(messages,constructPath,props){const section=messages,result=(0,section_1().matchSection)(filterPath(section,constructPath),props);if(result.match)return[`Expected no matches, but stack has ${Object.keys(result.matches).length} messages as follows:`,(0,section_1().formatAllMatches)(result.matches)].join(`
|
||||
`)}function redactTraces(match,redact=!0){redact&&match.entry?.trace!==void 0&&(match.entry.trace="redacted")}function filterPath(section,path){return path==="*"?section:Object.entries(section??{}).filter(([_,v])=>v.id===path).reduce((agg,[k,v])=>({...agg,[k]:v}),{})}
|
||||
7
cdk/node_modules/aws-cdk-lib/assertions/lib/private/outputs.d.ts
generated
vendored
Normal file
7
cdk/node_modules/aws-cdk-lib/assertions/lib/private/outputs.d.ts
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import type { Template } from './template';
|
||||
export declare function findOutputs(template: Template, logicalId: string, props?: any): {
|
||||
[key: string]: {
|
||||
[key: string]: any;
|
||||
};
|
||||
};
|
||||
export declare function hasOutput(template: Template, logicalId: string, props: any): string | void;
|
||||
1
cdk/node_modules/aws-cdk-lib/assertions/lib/private/outputs.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/assertions/lib/private/outputs.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.findOutputs=findOutputs,exports.hasOutput=hasOutput;var section_1=()=>{var tmp=require("./section");return section_1=()=>tmp,tmp};function findOutputs(template,logicalId,props={}){const section=template.Outputs??{},result=(0,section_1().matchSection)((0,section_1().filterLogicalId)(section,logicalId),props);return result.match?result.matches:{}}function hasOutput(template,logicalId,props){const section=template.Outputs??{},result=(0,section_1().matchSection)((0,section_1().filterLogicalId)(section,logicalId),props);if(!result.match)return(0,section_1().formatSectionMatchFailure)(`outputs named ${logicalId}`,result)}
|
||||
7
cdk/node_modules/aws-cdk-lib/assertions/lib/private/parameters.d.ts
generated
vendored
Normal file
7
cdk/node_modules/aws-cdk-lib/assertions/lib/private/parameters.d.ts
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import type { Template } from './template';
|
||||
export declare function findParameters(template: Template, logicalId: string, props?: any): {
|
||||
[key: string]: {
|
||||
[key: string]: any;
|
||||
};
|
||||
};
|
||||
export declare function hasParameter(template: Template, logicalId: string, props: any): string | void;
|
||||
1
cdk/node_modules/aws-cdk-lib/assertions/lib/private/parameters.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/assertions/lib/private/parameters.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.findParameters=findParameters,exports.hasParameter=hasParameter;var section_1=()=>{var tmp=require("./section");return section_1=()=>tmp,tmp};function findParameters(template,logicalId,props={}){const section=template.Parameters??{},result=(0,section_1().matchSection)((0,section_1().filterLogicalId)(section,logicalId),props);return result.match?result.matches:{}}function hasParameter(template,logicalId,props){const section=template.Parameters??{},result=(0,section_1().matchSection)((0,section_1().filterLogicalId)(section,logicalId),props);if(!result.match)return(0,section_1().formatSectionMatchFailure)(`parameters with logicalId '${logicalId}'`,result)}
|
||||
16
cdk/node_modules/aws-cdk-lib/assertions/lib/private/resources.d.ts
generated
vendored
Normal file
16
cdk/node_modules/aws-cdk-lib/assertions/lib/private/resources.d.ts
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
import type { Template } from './template';
|
||||
export declare function findResources(template: Template, type: string, props?: any): {
|
||||
[key: string]: {
|
||||
[key: string]: any;
|
||||
};
|
||||
};
|
||||
export declare function getResourceId(template: Template, type: string, props?: any): {
|
||||
resourceId?: string;
|
||||
matchError?: string;
|
||||
};
|
||||
export declare function allResources(template: Template, type: string, props: any): string | void;
|
||||
export declare function allResourcesProperties(template: Template, type: string, props: any): string | void;
|
||||
export declare function hasResource(template: Template, type: string, props: any): string | void;
|
||||
export declare function hasResourceProperties(template: Template, type: string, props: any): string | void;
|
||||
export declare function countResources(template: Template, type: string): number;
|
||||
export declare function countResourcesProperties(template: Template, type: string, props: any): number;
|
||||
4
cdk/node_modules/aws-cdk-lib/assertions/lib/private/resources.js
generated
vendored
Normal file
4
cdk/node_modules/aws-cdk-lib/assertions/lib/private/resources.js
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.findResources=findResources,exports.getResourceId=getResourceId,exports.allResources=allResources,exports.allResourcesProperties=allResourcesProperties,exports.hasResource=hasResource,exports.hasResourceProperties=hasResourceProperties,exports.countResources=countResources,exports.countResourcesProperties=countResourcesProperties;var __1=()=>{var tmp=require("..");return __1=()=>tmp,tmp},absent_1=()=>{var tmp=require("./matchers/absent");return absent_1=()=>tmp,tmp},section_1=()=>{var tmp=require("./section");return section_1=()=>tmp,tmp};function findResources(template,type,props={}){const section=template.Resources??{},result=(0,section_1().matchSection)(filterType(section,type),props);return result.match?result.matches:{}}function getResourceId(template,type,props={}){const section=template.Resources??{},result=(0,section_1().matchSection)(filterType(section,type),props);if(!result.match)return{matchError:(0,section_1().formatSectionMatchFailure)(`resources with type ${type}`,result)};const resourceIds=Object.keys(result.matches);return resourceIds.length!==1?{matchError:[`Template has ${resourceIds.length} matches, expected only one.`,(0,section_1().formatAllMatches)(result.matches)].join(`
|
||||
`)}:{resourceId:resourceIds[0]}}function allResources(template,type,props){const section=template.Resources??{},result=(0,section_1().matchSection)(filterType(section,type),props);if(result.match){const matchCount=Object.keys(result.matches).length;if(result.analyzedCount>matchCount)return[`Template has ${result.analyzedCount} resource(s) with type ${type}, but only ${matchCount} match as expected.`,(0,section_1().formatAllMismatches)(result.analyzed,result.matches)].join(`
|
||||
`)}else return[`Template has ${result.analyzedCount} resource(s) with type ${type}, but none match as expected.`,(0,section_1().formatAllMismatches)(result.analyzed)].join(`
|
||||
`)}function allResourcesProperties(template,type,props){let amended=template;return(!__1().Matcher.isMatcher(props)||!(props instanceof absent_1().AbsentMatch))&&(amended=JSON.parse(JSON.stringify(template)),amended=addEmptyProperties(amended)),allResources(amended,type,__1().Match.objectLike({Properties:props}))}function hasResource(template,type,props){const section=template.Resources??{},result=(0,section_1().matchSection)(filterType(section,type),props);if(!result.match)return(0,section_1().formatSectionMatchFailure)(`resources with type ${type}`,result)}function hasResourceProperties(template,type,props){let amended=template;return(!__1().Matcher.isMatcher(props)||!(props instanceof absent_1().AbsentMatch))&&(amended=JSON.parse(JSON.stringify(template)),amended=addEmptyProperties(amended)),hasResource(amended,type,__1().Match.objectLike({Properties:props}))}function countResources(template,type){const section=template.Resources??{},types=filterType(section,type);return Object.entries(types).length}function countResourcesProperties(template,type,props){let amended=template;(!__1().Matcher.isMatcher(props)||!(props instanceof absent_1().AbsentMatch))&&(amended=JSON.parse(JSON.stringify(template)),amended=addEmptyProperties(amended));const section=amended.Resources??{},result=(0,section_1().matchSection)(filterType(section,type),__1().Match.objectLike({Properties:props}));return result.match?Object.keys(result.matches).length:0}function addEmptyProperties(template){let section=template.Resources??{};return Object.keys(section).map(key=>{section[key].hasOwnProperty("Properties")||(section[key].Properties={})}),template}function filterType(section,type){return Object.entries(section??{}).filter(([_,v])=>v.Type===type).reduce((agg,[k,v])=>({...agg,[k]:v}),{})}
|
||||
35
cdk/node_modules/aws-cdk-lib/assertions/lib/private/section.d.ts
generated
vendored
Normal file
35
cdk/node_modules/aws-cdk-lib/assertions/lib/private/section.d.ts
generated
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
import type { MatchResult } from '../matcher';
|
||||
export type MatchSuccess = {
|
||||
match: true;
|
||||
matches: {
|
||||
[key: string]: any;
|
||||
};
|
||||
analyzed: {
|
||||
[key: string]: any;
|
||||
};
|
||||
analyzedCount: number;
|
||||
};
|
||||
export type MatchFailure = {
|
||||
match: false;
|
||||
closestResults: Record<string, MatchResult>;
|
||||
analyzed: {
|
||||
[key: string]: any;
|
||||
};
|
||||
analyzedCount: number;
|
||||
};
|
||||
export declare function matchSection(section: any, props: any): MatchSuccess | MatchFailure;
|
||||
export declare function formatAllMatches(matches: {
|
||||
[key: string]: any;
|
||||
}): string;
|
||||
export declare function formatAllMismatches(analyzed: {
|
||||
[key: string]: any;
|
||||
}, matches?: {
|
||||
[key: string]: any;
|
||||
}): string;
|
||||
export declare function formatSectionMatchFailure(qualifier: string, result: MatchFailure, what?: string): string;
|
||||
export declare function formatFailure(closestResults: Record<string, MatchResult>): string;
|
||||
export declare function filterLogicalId(section: {
|
||||
[key: string]: {};
|
||||
}, logicalId: string): {
|
||||
[key: string]: {};
|
||||
};
|
||||
7
cdk/node_modules/aws-cdk-lib/assertions/lib/private/section.js
generated
vendored
Normal file
7
cdk/node_modules/aws-cdk-lib/assertions/lib/private/section.js
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.matchSection=matchSection,exports.formatAllMatches=formatAllMatches,exports.formatAllMismatches=formatAllMismatches,exports.formatSectionMatchFailure=formatSectionMatchFailure,exports.formatFailure=formatFailure,exports.filterLogicalId=filterLogicalId;var sorting_1=()=>{var tmp=require("./sorting");return sorting_1=()=>tmp,tmp},match_1=()=>{var tmp=require("../match");return match_1=()=>tmp,tmp},matcher_1=()=>{var tmp=require("../matcher");return matcher_1=()=>tmp,tmp};function matchSection(section,props){const matcher=matcher_1().Matcher.isMatcher(props)?props:match_1().Match.objectLike(props),matching={},analyzed={},failures=new Array;return eachEntryInSection(section,(logicalId,entry)=>{analyzed[logicalId]=entry;const result=matcher.test(entry);result.finished(),result.hasFailed()?failures.push([logicalId,result]):matching[logicalId]=entry}),Object.keys(matching).length>0?{match:!0,matches:matching,analyzedCount:Object.keys(analyzed).length,analyzed}:(failures.sort((0,sorting_1().sortKeyComparator)(([logicalId,result])=>[result.failCost,logicalId])),{match:!1,closestResults:Object.fromEntries(failures.slice(0,3)),analyzedCount:Object.keys(analyzed).length,analyzed})}function eachEntryInSection(section,cb){for(const logicalId of Object.keys(section??{})){const resource=section[logicalId];cb(logicalId,resource)}}function formatAllMatches(matches){return[leftPad(JSON.stringify(matches,void 0,2))].join(`
|
||||
`)}function formatAllMismatches(analyzed,matches={}){return["The following resources do not match the given definition:",...Object.keys(analyzed).filter(id=>!(id in matches)).map(id=>` ${id}`)].join(`
|
||||
`)}function formatSectionMatchFailure(qualifier,result,what="Template"){return[`${what} has ${result.analyzedCount} ${qualifier}`,result.analyzedCount>0?", but none match as expected":"",`.
|
||||
`,formatFailure(result.closestResults)].join("")}function formatFailure(closestResults){const keys=Object.keys(closestResults);return keys.length===0?"No matches found":[`The ${keys.length} closest matches:`,...keys.map(key=>`${key} :: ${closestResults[key].renderMismatch()}`)].join(`
|
||||
`)}function leftPad(x,indent=2){const pad=" ".repeat(indent);return pad+x.split(`
|
||||
`).join(`
|
||||
${pad}`)}function filterLogicalId(section,logicalId){return logicalId==="*"?section:Object.entries(section??{}).filter(([k,_])=>k===logicalId).reduce((agg,[k,v])=>({...agg,[k]:v}),{})}
|
||||
4
cdk/node_modules/aws-cdk-lib/assertions/lib/private/sorting.d.ts
generated
vendored
Normal file
4
cdk/node_modules/aws-cdk-lib/assertions/lib/private/sorting.d.ts
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
/**
|
||||
* Make a sorting comparator that will sort by a given sort key
|
||||
*/
|
||||
export declare function sortKeyComparator<A>(keyFn: (x: A) => Array<string | number>): (a: A, b: A) => number;
|
||||
1
cdk/node_modules/aws-cdk-lib/assertions/lib/private/sorting.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/assertions/lib/private/sorting.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.sortKeyComparator=sortKeyComparator;function sortKeyComparator(keyFn){return(a,b)=>{const ak=keyFn(a),bk=keyFn(b);for(let i=0;i<ak.length&&i<bk.length;i++){const av=ak[i],bv=bk[i];let diff=0;if(typeof av=="number"&&typeof bv=="number"?diff=av-bv:typeof av=="string"&&typeof bv=="string"&&(diff=av.localeCompare(bv)),diff!==0)return diff}return bk.length-ak.length}}
|
||||
6
cdk/node_modules/aws-cdk-lib/assertions/lib/private/sparse-matrix.d.ts
generated
vendored
Normal file
6
cdk/node_modules/aws-cdk-lib/assertions/lib/private/sparse-matrix.d.ts
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
export declare class SparseMatrix<A> {
|
||||
private readonly matrix;
|
||||
get(row: number, col: number): A | undefined;
|
||||
row(row: number): Array<[number, A]>;
|
||||
set(row: number, col: number, value: A): void;
|
||||
}
|
||||
1
cdk/node_modules/aws-cdk-lib/assertions/lib/private/sparse-matrix.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/assertions/lib/private/sparse-matrix.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.SparseMatrix=void 0;class SparseMatrix{matrix=new Map;get(row,col){return this.matrix.get(row)?.get(col)}row(row){return Array.from(this.matrix.get(row)?.entries()??[])}set(row,col,value){let r=this.matrix.get(row);r||(r=new Map,this.matrix.set(row,r)),r.set(col,value)}}exports.SparseMatrix=SparseMatrix;
|
||||
38
cdk/node_modules/aws-cdk-lib/assertions/lib/private/template.d.ts
generated
vendored
Normal file
38
cdk/node_modules/aws-cdk-lib/assertions/lib/private/template.d.ts
generated
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
export type Template = {
|
||||
Resources?: {
|
||||
[logicalId: string]: Resource;
|
||||
};
|
||||
Outputs?: {
|
||||
[logicalId: string]: Output;
|
||||
};
|
||||
Mappings?: {
|
||||
[logicalId: string]: Mapping;
|
||||
};
|
||||
Parameters?: {
|
||||
[logicalId: string]: Parameter;
|
||||
};
|
||||
Conditions?: {
|
||||
[logicalId: string]: Condition;
|
||||
};
|
||||
};
|
||||
export type Resource = {
|
||||
Type: string;
|
||||
DependsOn?: string | string[];
|
||||
Properties?: {
|
||||
[key: string]: any;
|
||||
};
|
||||
[key: string]: any;
|
||||
};
|
||||
export type Output = {
|
||||
[key: string]: any;
|
||||
};
|
||||
export type Mapping = {
|
||||
[key: string]: any;
|
||||
};
|
||||
export type Parameter = {
|
||||
Type: string;
|
||||
[key: string]: any;
|
||||
};
|
||||
export type Condition = {
|
||||
[key: string]: any;
|
||||
};
|
||||
1
cdk/node_modules/aws-cdk-lib/assertions/lib/private/template.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/assertions/lib/private/template.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});
|
||||
2
cdk/node_modules/aws-cdk-lib/assertions/lib/private/type.d.ts
generated
vendored
Normal file
2
cdk/node_modules/aws-cdk-lib/assertions/lib/private/type.d.ts
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
export type Type = 'string' | 'number' | 'bigint' | 'boolean' | 'symbol' | 'undefined' | 'object' | 'function' | 'array';
|
||||
export declare function getType(obj: any): Type;
|
||||
1
cdk/node_modules/aws-cdk-lib/assertions/lib/private/type.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/assertions/lib/private/type.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getType=getType;function getType(obj){return Array.isArray(obj)?"array":typeof obj}
|
||||
45
cdk/node_modules/aws-cdk-lib/assertions/lib/tags.d.ts
generated
vendored
Normal file
45
cdk/node_modules/aws-cdk-lib/assertions/lib/tags.d.ts
generated
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
import type { Stack } from '../../core';
|
||||
type ManifestTags = {
|
||||
[key: string]: string;
|
||||
};
|
||||
/**
|
||||
* Allows assertions on the tags associated with a synthesized CDK stack's
|
||||
* manifest. Stack tags are not part of the synthesized template, so can only be
|
||||
* checked from the manifest in this manner.
|
||||
*/
|
||||
export declare class Tags {
|
||||
/**
|
||||
* Find tags associated with a synthesized CDK `Stack`.
|
||||
*
|
||||
* @param stack the CDK Stack to find tags on.
|
||||
*/
|
||||
static fromStack(stack: Stack): Tags;
|
||||
private readonly _tags;
|
||||
private constructor();
|
||||
/**
|
||||
* Assert that the given Matcher or object matches the tags associated with
|
||||
* the synthesized CDK Stack's manifest.
|
||||
*
|
||||
* @param tags the expected set of tags. This should be a
|
||||
* string or Matcher object.
|
||||
*/
|
||||
hasValues(tags: any): void;
|
||||
/**
|
||||
* Assert that the there are no tags associated with the synthesized CDK
|
||||
* Stack's manifest.
|
||||
*
|
||||
* This is a convenience method over `hasValues(Match.exact({}))`, and is
|
||||
* present because the more obvious method of detecting no tags
|
||||
* (`Match.absent()`) will not work. Manifests default the tag set to an empty
|
||||
* object.
|
||||
*/
|
||||
hasNone(): void;
|
||||
/**
|
||||
* Get the tags associated with the manifest. This will be an empty object if
|
||||
* no tags were supplied.
|
||||
*
|
||||
* @returns The tags associated with the stack's synthesized manifest.
|
||||
*/
|
||||
all(): ManifestTags;
|
||||
}
|
||||
export {};
|
||||
2
cdk/node_modules/aws-cdk-lib/assertions/lib/tags.js
generated
vendored
Normal file
2
cdk/node_modules/aws-cdk-lib/assertions/lib/tags.js
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Tags=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");var match_1=()=>{var tmp=require("./match");return match_1=()=>tmp,tmp},matcher_1=()=>{var tmp=require("./matcher");return matcher_1=()=>tmp,tmp},core_1=()=>{var tmp=require("../../core");return core_1=()=>tmp,tmp},error_1=()=>{var tmp=require("./private/error");return error_1=()=>tmp,tmp};class Tags{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.assertions.Tags",version:"2.252.0"};static fromStack(stack){try{jsiiDeprecationWarnings().aws_cdk_lib_Stack(stack)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.fromStack),error}return new Tags(getManifestTags(stack))}_tags;constructor(tags){this._tags=tags}hasValues(tags){if(matcher_1().Matcher.isMatcher(tags)&&tags.name==="absent")throw new(error_1()).AssertionError('Match.absent() will never match Tags because "{}" is the default value. Use Tags.hasNone() instead.');const result=(matcher_1().Matcher.isMatcher(tags)?tags:match_1().Match.objectLike(tags)).test(this.all());if(result.hasFailed())throw new(error_1()).AssertionError(`Stack tags did not match as expected:
|
||||
`+result.renderMismatch())}hasNone(){this.hasValues(match_1().Match.exact({}))}all(){return this._tags}}exports.Tags=Tags;function getManifestTags(stack){const root=stack.node.root;if(!core_1().Stage.isStage(root))throw new(error_1()).AssertionError("unexpected: all stacks must be part of a Stage or an App");return root.synth().getStackArtifact(stack.artifactId).tags}
|
||||
211
cdk/node_modules/aws-cdk-lib/assertions/lib/template.d.ts
generated
vendored
Normal file
211
cdk/node_modules/aws-cdk-lib/assertions/lib/template.d.ts
generated
vendored
Normal file
@@ -0,0 +1,211 @@
|
||||
import type { Stack } from '../../core';
|
||||
/**
|
||||
* Suite of assertions that can be run on a CDK stack.
|
||||
* Typically used, as part of unit tests, to validate that the rendered
|
||||
* CloudFormation template has expected resources and properties.
|
||||
*/
|
||||
export declare class Template {
|
||||
/**
|
||||
* Base your assertions on the CloudFormation template synthesized by a CDK `Stack`.
|
||||
* @param stack the CDK Stack to run assertions on
|
||||
* @param templateParsingOptions Optional param to configure template parsing behavior, such as disregarding circular
|
||||
* dependencies.
|
||||
*/
|
||||
static fromStack(stack: Stack, templateParsingOptions?: TemplateParsingOptions): Template;
|
||||
/**
|
||||
* Base your assertions from an existing CloudFormation template formatted as an in-memory
|
||||
* JSON object.
|
||||
* @param template the CloudFormation template formatted as a nested set of records
|
||||
* @param templateParsingOptions Optional param to configure template parsing behavior, such as disregarding circular
|
||||
* dependencies.
|
||||
*/
|
||||
static fromJSON(template: {
|
||||
[key: string]: any;
|
||||
}, templateParsingOptions?: TemplateParsingOptions): Template;
|
||||
/**
|
||||
* Base your assertions from an existing CloudFormation template formatted as a
|
||||
* JSON string.
|
||||
* @param template the CloudFormation template in
|
||||
* @param templateParsingOptions Optional param to configure template parsing behavior, such as disregarding circular
|
||||
* dependencies.
|
||||
*/
|
||||
static fromString(template: string, templateParsingOptions?: TemplateParsingOptions): Template;
|
||||
private readonly template;
|
||||
private constructor();
|
||||
/**
|
||||
* The CloudFormation template deserialized into an object.
|
||||
*/
|
||||
toJSON(): {
|
||||
[key: string]: any;
|
||||
};
|
||||
/**
|
||||
* Assert that the given number of resources of the given type exist in the
|
||||
* template.
|
||||
* @param type the resource type; ex: `AWS::S3::Bucket`
|
||||
* @param count number of expected instances
|
||||
*/
|
||||
resourceCountIs(type: string, count: number): void;
|
||||
/**
|
||||
* Assert that the given number of resources of the given type and properties exists in the
|
||||
* CloudFormation template.
|
||||
* @param type the resource type; ex: `AWS::S3::Bucket`
|
||||
* @param props the 'Properties' section of the resource as should be expected in the template.
|
||||
* @param count number of expected instances
|
||||
*/
|
||||
resourcePropertiesCountIs(type: string, props: any, count: number): void;
|
||||
/**
|
||||
* Assert that a resource of the given type and properties exists in the
|
||||
* CloudFormation template.
|
||||
* By default, performs partial matching on the `Properties` key of the resource, via the
|
||||
* `Match.objectLike()`. To configure different behavior, use other matchers in the `Match` class.
|
||||
* @param type the resource type; ex: `AWS::S3::Bucket`
|
||||
* @param props the 'Properties' section of the resource as should be expected in the template.
|
||||
*/
|
||||
hasResourceProperties(type: string, props: any): void;
|
||||
/**
|
||||
* Assert that a resource of the given type and given definition exists in the
|
||||
* CloudFormation template.
|
||||
* By default, performs partial matching on the resource, via the `Match.objectLike()`.
|
||||
* To configure different behavior, use other matchers in the `Match` class.
|
||||
* @param type the resource type; ex: `AWS::S3::Bucket`
|
||||
* @param props the entire definition of the resource as should be expected in the template.
|
||||
*/
|
||||
hasResource(type: string, props: any): void;
|
||||
/**
|
||||
* Get the set of matching resources of a given type and properties in the CloudFormation template.
|
||||
* @param type the type to match in the CloudFormation template
|
||||
* @param props by default, matches all resources with the given type.
|
||||
* When a literal is provided, performs a partial match via `Match.objectLike()`.
|
||||
* Use the `Match` APIs to configure a different behaviour.
|
||||
*/
|
||||
findResources(type: string, props?: any): {
|
||||
[key: string]: {
|
||||
[key: string]: any;
|
||||
};
|
||||
};
|
||||
/**
|
||||
* Get the Resource ID of a matching resource, expects only to find one match.
|
||||
* Throws AssertionError if none or multiple resources were found.
|
||||
* @param type the resource type; ex: `AWS::S3::Bucket`
|
||||
* @param props by default, matches all resources with the given type.
|
||||
* @returns The resource id of the matched resource.
|
||||
* Performs a partial match via `Match.objectLike()`.
|
||||
*/
|
||||
getResourceId(type: string, props?: any): string;
|
||||
/**
|
||||
* Assert that all resources of the given type contain the given definition in the
|
||||
* CloudFormation template.
|
||||
* By default, performs partial matching on the resource, via the `Match.objectLike()`.
|
||||
* To configure different behavior, use other matchers in the `Match` class.
|
||||
* @param type the resource type; ex: `AWS::S3::Bucket`
|
||||
* @param props the entire definition of the resources as they should be expected in the template.
|
||||
*/
|
||||
allResources(type: string, props: any): void;
|
||||
/**
|
||||
* Assert that all resources of the given type contain the given properties
|
||||
* CloudFormation template.
|
||||
* By default, performs partial matching on the `Properties` key of the resource, via the
|
||||
* `Match.objectLike()`. To configure different behavior, use other matchers in the `Match` class.
|
||||
* @param type the resource type; ex: `AWS::S3::Bucket`
|
||||
* @param props the 'Properties' section of the resource as should be expected in the template.
|
||||
*/
|
||||
allResourcesProperties(type: string, props: any): void;
|
||||
/**
|
||||
* Assert that a Parameter with the given properties exists in the CloudFormation template.
|
||||
* By default, performs partial matching on the parameter, via the `Match.objectLike()`.
|
||||
* To configure different behavior, use other matchers in the `Match` class.
|
||||
* @param logicalId the name of the parameter, provide `'*'` to match all parameters in the template.
|
||||
* @param props the parameter as should be expected in the template.
|
||||
*/
|
||||
hasParameter(logicalId: string, props: any): void;
|
||||
/**
|
||||
* Get the set of matching Parameters that match the given properties in the CloudFormation template.
|
||||
* @param logicalId the name of the parameter, provide `'*'` to match all parameters in the template.
|
||||
* @param props by default, matches all Parameters in the template.
|
||||
* When a literal object is provided, performs a partial match via `Match.objectLike()`.
|
||||
* Use the `Match` APIs to configure a different behaviour.
|
||||
*/
|
||||
findParameters(logicalId: string, props?: any): {
|
||||
[key: string]: {
|
||||
[key: string]: any;
|
||||
};
|
||||
};
|
||||
/**
|
||||
* Assert that an Output with the given properties exists in the CloudFormation template.
|
||||
* By default, performs partial matching on the resource, via the `Match.objectLike()`.
|
||||
* To configure different behavior, use other matchers in the `Match` class.
|
||||
* @param logicalId the name of the output, provide `'*'` to match all outputs in the template.
|
||||
* @param props the output as should be expected in the template.
|
||||
*/
|
||||
hasOutput(logicalId: string, props: any): void;
|
||||
/**
|
||||
* Get the set of matching Outputs that match the given properties in the CloudFormation template.
|
||||
* @param logicalId the name of the output, provide `'*'` to match all outputs in the template.
|
||||
* @param props by default, matches all Outputs in the template.
|
||||
* When a literal object is provided, performs a partial match via `Match.objectLike()`.
|
||||
* Use the `Match` APIs to configure a different behaviour.
|
||||
*/
|
||||
findOutputs(logicalId: string, props?: any): {
|
||||
[key: string]: {
|
||||
[key: string]: any;
|
||||
};
|
||||
};
|
||||
/**
|
||||
* Assert that a Mapping with the given properties exists in the CloudFormation template.
|
||||
* By default, performs partial matching on the resource, via the `Match.objectLike()`.
|
||||
* To configure different behavior, use other matchers in the `Match` class.
|
||||
* @param logicalId the name of the mapping, provide `'*'` to match all mappings in the template.
|
||||
* @param props the output as should be expected in the template.
|
||||
*/
|
||||
hasMapping(logicalId: string, props: any): void;
|
||||
/**
|
||||
* Get the set of matching Mappings that match the given properties in the CloudFormation template.
|
||||
* @param logicalId the name of the mapping, provide `'*'` to match all mappings in the template.
|
||||
* @param props by default, matches all Mappings in the template.
|
||||
* When a literal object is provided, performs a partial match via `Match.objectLike()`.
|
||||
* Use the `Match` APIs to configure a different behaviour.
|
||||
*/
|
||||
findMappings(logicalId: string, props?: any): {
|
||||
[key: string]: {
|
||||
[key: string]: any;
|
||||
};
|
||||
};
|
||||
/**
|
||||
* Assert that a Condition with the given properties exists in the CloudFormation template.
|
||||
* By default, performs partial matching on the resource, via the `Match.objectLike()`.
|
||||
* To configure different behavior, use other matchers in the `Match` class.
|
||||
* @param logicalId the name of the mapping, provide `'*'` to match all conditions in the template.
|
||||
* @param props the output as should be expected in the template.
|
||||
*/
|
||||
hasCondition(logicalId: string, props: any): void;
|
||||
/**
|
||||
* Get the set of matching Conditions that match the given properties in the CloudFormation template.
|
||||
* @param logicalId the name of the condition, provide `'*'` to match all conditions in the template.
|
||||
* @param props by default, matches all Conditions in the template.
|
||||
* When a literal object is provided, performs a partial match via `Match.objectLike()`.
|
||||
* Use the `Match` APIs to configure a different behaviour.
|
||||
*/
|
||||
findConditions(logicalId: string, props?: any): {
|
||||
[key: string]: {
|
||||
[key: string]: any;
|
||||
};
|
||||
};
|
||||
/**
|
||||
* Assert that the CloudFormation template matches the given value
|
||||
* @param expected the expected CloudFormation template as key-value pairs.
|
||||
*/
|
||||
templateMatches(expected: any): void;
|
||||
}
|
||||
/**
|
||||
* Options to configure template parsing behavior, such as disregarding circular
|
||||
* dependencies.
|
||||
*/
|
||||
export interface TemplateParsingOptions {
|
||||
/**
|
||||
* If set to true, will skip checking for cyclical / circular dependencies. Should be set to false other than for
|
||||
* templates that are valid despite containing cycles, such as unprocessed transform stacks.
|
||||
*
|
||||
* @default false
|
||||
*/
|
||||
readonly skipCyclicalDependenciesCheck?: boolean;
|
||||
}
|
||||
2
cdk/node_modules/aws-cdk-lib/assertions/lib/template.js
generated
vendored
Normal file
2
cdk/node_modules/aws-cdk-lib/assertions/lib/template.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
115
cdk/node_modules/aws-cdk-lib/assertions/rewrite.toml
generated
vendored
Normal file
115
cdk/node_modules/aws-cdk-lib/assertions/rewrite.toml
generated
vendored
Normal file
@@ -0,0 +1,115 @@
|
||||
# comby -config ~/rewrite.toml -f .ts -d test -in-place -timeout 10
|
||||
|
||||
[000_import]
|
||||
match="import '@aws-cdk/assert-internal/jest'"
|
||||
rewrite="import { Template } from '@aws-cdk/assertions'"
|
||||
|
||||
[000_import2]
|
||||
match="import :[_] from '@aws-cdk/assert-internal'"
|
||||
rewrite="import { Template } from '@aws-cdk/assertions'"
|
||||
|
||||
[100_jest_toHaveResourceLike_CompleteDefinition]
|
||||
match="expect(:[stack]).toHaveResourceLike(:[args], ResourcePart.CompleteDefinition)"
|
||||
rewrite="Template.fromStack(:[stack]).hasResource(:[args])"
|
||||
|
||||
[100_assert_toHaveResourceLike_CompleteDefinition]
|
||||
match=":[[expect]](:[stack]).to(haveResourceLike(:[args], ResourcePart.CompleteDefinition))"
|
||||
rewrite="Template.fromStack(:[stack]).hasResource(:[args])"
|
||||
rule='''where match :[expect] {
|
||||
| "expect" -> true
|
||||
| "cdkExpect" -> true
|
||||
| ":[_]" -> false
|
||||
}'''
|
||||
|
||||
[100_jest_toHaveResource_CompleteDefinition]
|
||||
match="expect(:[stack]).toHaveResource(:[args], ResourcePart.CompleteDefinition)"
|
||||
rewrite="Template.fromStack(:[stack]).hasResource(:[args])"
|
||||
|
||||
[100_assert_toHaveResource_CompleteDefinition]
|
||||
match=":[[expect]](:[stack]).to(haveResource(:[args], ResourcePart.CompleteDefinition))"
|
||||
rewrite="Template.fromStack(:[stack]).hasResource(:[args])"
|
||||
rule='''where match :[expect] {
|
||||
| "expect" -> true
|
||||
| "cdkExpect" -> true
|
||||
| ":[_]" -> false
|
||||
}'''
|
||||
|
||||
[200_jest_toHaveResourceLike]
|
||||
match="expect(:[stack]).toHaveResourceLike(:[args])"
|
||||
rewrite="Template.fromStack(:[stack]).hasResourceProperties(:[args])"
|
||||
|
||||
[200_assert_toHaveResourceLike]
|
||||
match=":[[expect]](:[stack]).to(haveResourceLike(:[args]))"
|
||||
rewrite="Template.fromStack(:[stack]).hasResourceProperties(:[args])"
|
||||
rule='''where match :[expect] {
|
||||
| "expect" -> true
|
||||
| "cdkExpect" -> true
|
||||
| ":[_]" -> false
|
||||
}'''
|
||||
|
||||
[200_jest_toHaveResource]
|
||||
match="expect(:[stack]).toHaveResource(:[args])"
|
||||
rewrite="Template.fromStack(:[stack]).hasResourceProperties(:[args])"
|
||||
|
||||
[200_assert_toHaveResource]
|
||||
match=":[[expect]](:[stack]).to(haveResource(:[args]))"
|
||||
rewrite="Template.fromStack(:[stack]).hasResourceProperties(:[args])"
|
||||
rule='''where match :[expect] {
|
||||
| "expect" -> true
|
||||
| "cdkExpect" -> true
|
||||
| ":[_]" -> false
|
||||
}'''
|
||||
|
||||
[200_jest_toCountResources]
|
||||
match="expect(:[stack]).toCountResources"
|
||||
rewrite="Template.fromStack(:[stack]).resourceCountIs"
|
||||
|
||||
[200_assert_toCountResources2]
|
||||
match=":[[expect]](:[stack]).to(countResources(:[args]))"
|
||||
rewrite="Template.fromStack(:[stack]).resourceCountIs(:[args])"
|
||||
rule='''where match :[expect] {
|
||||
| "expect" -> true
|
||||
| "cdkExpect" -> true
|
||||
| ":[_]" -> false
|
||||
}'''
|
||||
|
||||
[200_jest_toMatchTemplate]
|
||||
match="expect(:[stack]).toMatchTemplate"
|
||||
rewrite="Template.fromStack(:[stack]).templateMatches"
|
||||
|
||||
[200_assert_toMatchTemplate]
|
||||
match=":[[expect]](:[stack]).toMatchTemplate"
|
||||
rewrite="Template.fromStack(:[stack]).templateMatches"
|
||||
rule='''where match :[expect] {
|
||||
| "expect" -> true
|
||||
| "cdkExpect" -> true
|
||||
| ":[_]" -> false
|
||||
}'''
|
||||
|
||||
[300_notToHaveResourceLike]
|
||||
match="expect(:[stack]).not.toHaveResourceLike(:[args])"
|
||||
rewrite="Template.fromStack(:[stack]).resourceCountIs(:[args], 0)"
|
||||
|
||||
[300_notToHaveResource]
|
||||
match="expect(:[stack]).not.toHaveResource(:[args])"
|
||||
rewrite="Template.fromStack(:[stack]).resourceCountIs(:[args], 0)"
|
||||
|
||||
[arrayWith]
|
||||
match="arrayWith(:[args])"
|
||||
rewrite="Match.arrayWith([:[args]])"
|
||||
|
||||
[objectLike]
|
||||
match="objectLike"
|
||||
rewrite="Match.objectLike"
|
||||
|
||||
[absent]
|
||||
match="ABSENT"
|
||||
rewrite="Match.absent()"
|
||||
|
||||
[400_synthutils_template]
|
||||
match="SynthUtils.synthesize(:[stack]).template"
|
||||
rewrite="Template.fromStack(:[stack]).toJSON()"
|
||||
|
||||
[401_synthutils_assembly]
|
||||
match="SynthUtils.synthesize(:[stack])"
|
||||
rewrite="App.of(:[stack]).synth()"
|
||||
13
cdk/node_modules/aws-cdk-lib/assets/.jsiirc.json
generated
vendored
Normal file
13
cdk/node_modules/aws-cdk-lib/assets/.jsiirc.json
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"targets": {
|
||||
"java": {
|
||||
"package": "software.amazon.awscdk.assets"
|
||||
},
|
||||
"dotnet": {
|
||||
"namespace": "Amazon.CDK.Assets"
|
||||
},
|
||||
"python": {
|
||||
"module": "aws_cdk.assets"
|
||||
}
|
||||
}
|
||||
}
|
||||
4
cdk/node_modules/aws-cdk-lib/assets/README.md
generated
vendored
Normal file
4
cdk/node_modules/aws-cdk-lib/assets/README.md
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
# AWS CDK Assets
|
||||
|
||||
|
||||
All types moved to @aws-cdk/core.
|
||||
1
cdk/node_modules/aws-cdk-lib/assets/index.d.ts
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/assets/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
import './lib';
|
||||
1
cdk/node_modules/aws-cdk-lib/assets/index.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/assets/index.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";var __createBinding=exports&&exports.__createBinding||(Object.create?(function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}):(function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]})),__exportStar=exports&&exports.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)};Object.defineProperty(exports,"__esModule",{value:!0});var _noFold;exports.FollowMode=void 0,Object.defineProperty(exports,_noFold="FollowMode",{enumerable:!0,configurable:!0,get:()=>{var value=require("./lib").FollowMode;return Object.defineProperty(exports,_noFold="FollowMode",{enumerable:!0,configurable:!0,value}),value}}),exports.Staging=void 0,Object.defineProperty(exports,_noFold="Staging",{enumerable:!0,configurable:!0,get:()=>{var value=require("./lib").Staging;return Object.defineProperty(exports,_noFold="Staging",{enumerable:!0,configurable:!0,value}),value}});
|
||||
0
cdk/node_modules/aws-cdk-lib/assets/lib/api.d.ts
generated
vendored
Normal file
0
cdk/node_modules/aws-cdk-lib/assets/lib/api.d.ts
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/assets/lib/api.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/assets/lib/api.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});
|
||||
3
cdk/node_modules/aws-cdk-lib/assets/lib/compat.d.ts
generated
vendored
Normal file
3
cdk/node_modules/aws-cdk-lib/assets/lib/compat.d.ts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
import './fs/follow-mode';
|
||||
import { SymlinkFollowMode } from '../../core';
|
||||
export declare function toSymlinkFollow(follow?: FollowMode): SymlinkFollowMode | undefined;
|
||||
1
cdk/node_modules/aws-cdk-lib/assets/lib/compat.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/assets/lib/compat.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.toSymlinkFollow=toSymlinkFollow;var follow_mode_1=()=>{var tmp=require("./fs/follow-mode");return follow_mode_1=()=>tmp,tmp},core_1=()=>{var tmp=require("../../core");return core_1=()=>tmp,tmp},literal_string_1=()=>{var tmp=require("../../core/lib/private/literal-string");return literal_string_1=()=>tmp,tmp};function toSymlinkFollow(follow){if(follow)switch(follow){case follow_mode_1().FollowMode.NEVER:return core_1().SymlinkFollowMode.NEVER;case follow_mode_1().FollowMode.ALWAYS:return core_1().SymlinkFollowMode.ALWAYS;case follow_mode_1().FollowMode.BLOCK_EXTERNAL:return core_1().SymlinkFollowMode.BLOCK_EXTERNAL;case follow_mode_1().FollowMode.EXTERNAL:return core_1().SymlinkFollowMode.EXTERNAL;default:throw new(core_1()).UnscopedValidationError((0,literal_string_1().lit)`UnknownFollowMode`,`unknown follow mode: ${follow}`)}}
|
||||
0
cdk/node_modules/aws-cdk-lib/assets/lib/fs/follow-mode.d.ts
generated
vendored
Normal file
0
cdk/node_modules/aws-cdk-lib/assets/lib/fs/follow-mode.d.ts
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/assets/lib/fs/follow-mode.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/assets/lib/fs/follow-mode.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.FollowMode=void 0;var FollowMode;(function(FollowMode2){FollowMode2.NEVER="never",FollowMode2.ALWAYS="always",FollowMode2.EXTERNAL="external",FollowMode2.BLOCK_EXTERNAL="internal-only"})(FollowMode||(exports.FollowMode=FollowMode={}));
|
||||
2
cdk/node_modules/aws-cdk-lib/assets/lib/fs/options.d.ts
generated
vendored
Normal file
2
cdk/node_modules/aws-cdk-lib/assets/lib/fs/options.d.ts
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import './follow-mode';
|
||||
import type { IgnoreMode } from '../../../core';
|
||||
1
cdk/node_modules/aws-cdk-lib/assets/lib/fs/options.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/assets/lib/fs/options.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});
|
||||
4
cdk/node_modules/aws-cdk-lib/assets/lib/index.d.ts
generated
vendored
Normal file
4
cdk/node_modules/aws-cdk-lib/assets/lib/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
import './api';
|
||||
import './fs/follow-mode';
|
||||
import './fs/options';
|
||||
import './staging';
|
||||
1
cdk/node_modules/aws-cdk-lib/assets/lib/index.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/assets/lib/index.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";var __createBinding=exports&&exports.__createBinding||(Object.create?(function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}):(function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]})),__exportStar=exports&&exports.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)};Object.defineProperty(exports,"__esModule",{value:!0});var _noFold;exports.FollowMode=void 0,Object.defineProperty(exports,_noFold="FollowMode",{enumerable:!0,configurable:!0,get:()=>{var value=require("./fs/follow-mode").FollowMode;return Object.defineProperty(exports,_noFold="FollowMode",{enumerable:!0,configurable:!0,value}),value}}),exports.Staging=void 0,Object.defineProperty(exports,_noFold="Staging",{enumerable:!0,configurable:!0,get:()=>{var value=require("./staging").Staging;return Object.defineProperty(exports,_noFold="Staging",{enumerable:!0,configurable:!0,value}),value}});
|
||||
3
cdk/node_modules/aws-cdk-lib/assets/lib/staging.d.ts
generated
vendored
Normal file
3
cdk/node_modules/aws-cdk-lib/assets/lib/staging.d.ts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
import type { Construct } from 'constructs';
|
||||
import './fs/options';
|
||||
import { AssetStaging } from '../../core';
|
||||
1
cdk/node_modules/aws-cdk-lib/assets/lib/staging.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/assets/lib/staging.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Staging=void 0;const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");var compat_1=()=>{var tmp=require("./compat");return compat_1=()=>tmp,tmp},core_1=()=>{var tmp=require("../../core");return core_1=()=>tmp,tmp};class Staging extends core_1().AssetStaging{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.assets.Staging",version:"2.252.0"};constructor(scope,id,props){super(scope,id,{sourcePath:props.sourcePath,exclude:props.exclude,ignoreMode:props.ignoreMode,extraHash:props.extraHash,follow:(0,compat_1().toSymlinkFollow)(props.follow)})}}exports.Staging=Staging;
|
||||
13
cdk/node_modules/aws-cdk-lib/aws-accessanalyzer/.jsiirc.json
generated
vendored
Normal file
13
cdk/node_modules/aws-cdk-lib/aws-accessanalyzer/.jsiirc.json
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"targets": {
|
||||
"java": {
|
||||
"package": "software.amazon.awscdk.services.accessanalyzer"
|
||||
},
|
||||
"dotnet": {
|
||||
"namespace": "Amazon.CDK.AWS.AccessAnalyzer"
|
||||
},
|
||||
"python": {
|
||||
"module": "aws_cdk.aws_accessanalyzer"
|
||||
}
|
||||
}
|
||||
}
|
||||
27
cdk/node_modules/aws-cdk-lib/aws-accessanalyzer/README.md
generated
vendored
Normal file
27
cdk/node_modules/aws-cdk-lib/aws-accessanalyzer/README.md
generated
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
# AWS::AccessAnalyzer Construct Library
|
||||
|
||||
|
||||
This module is part of the [AWS Cloud Development Kit](https://github.com/aws/aws-cdk) project.
|
||||
|
||||
```ts nofixture
|
||||
import * as accessanalyzer from 'aws-cdk-lib/aws-accessanalyzer';
|
||||
```
|
||||
|
||||
<!--BEGIN CFNONLY DISCLAIMER-->
|
||||
|
||||
There are no official hand-written ([L2](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_lib)) constructs for this service yet. Here are some suggestions on how to proceed:
|
||||
|
||||
- Search [Construct Hub for AccessAnalyzer construct libraries](https://constructs.dev/search?q=accessanalyzer)
|
||||
- Use the automatically generated [L1](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_l1_using) constructs, in the same way you would use [the CloudFormation AWS::AccessAnalyzer resources](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/AWS_AccessAnalyzer.html) directly.
|
||||
|
||||
|
||||
<!--BEGIN CFNONLY DISCLAIMER-->
|
||||
|
||||
There are no hand-written ([L2](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_lib)) constructs for this service yet.
|
||||
However, you can still use the automatically generated [L1](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_l1_using) constructs, and use this service exactly as you would using CloudFormation directly.
|
||||
|
||||
For more information on the resources and properties available for this service, see the [CloudFormation documentation for AWS::AccessAnalyzer](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/AWS_AccessAnalyzer.html).
|
||||
|
||||
(Read the [CDK Contributing Guide](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and submit an RFC if you are interested in contributing to this construct library.)
|
||||
|
||||
<!--END CFNONLY DISCLAIMER-->
|
||||
1
cdk/node_modules/aws-cdk-lib/aws-accessanalyzer/index.d.ts
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/aws-accessanalyzer/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export * from './lib';
|
||||
1
cdk/node_modules/aws-cdk-lib/aws-accessanalyzer/index.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/aws-accessanalyzer/index.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";var __createBinding=exports&&exports.__createBinding||(Object.create?(function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}):(function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]})),__exportStar=exports&&exports.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)};Object.defineProperty(exports,"__esModule",{value:!0});var _noFold;exports.CfnAnalyzer=void 0,Object.defineProperty(exports,_noFold="CfnAnalyzer",{enumerable:!0,configurable:!0,get:()=>{var value=require("./lib").CfnAnalyzer;return Object.defineProperty(exports,_noFold="CfnAnalyzer",{enumerable:!0,configurable:!0,value}),value}});
|
||||
414
cdk/node_modules/aws-cdk-lib/aws-accessanalyzer/lib/accessanalyzer.generated.d.ts
generated
vendored
Normal file
414
cdk/node_modules/aws-cdk-lib/aws-accessanalyzer/lib/accessanalyzer.generated.d.ts
generated
vendored
Normal file
@@ -0,0 +1,414 @@
|
||||
import * as cdk from "../../core/lib";
|
||||
import * as constructs from "constructs";
|
||||
import * as cfn_parse from "../../core/lib/helpers-internal";
|
||||
import { AnalyzerReference, IAnalyzerRef } from "../../interfaces/generated/aws-accessanalyzer-interfaces.generated";
|
||||
/**
|
||||
* The `AWS::AccessAnalyzer::Analyzer` resource specifies a new analyzer.
|
||||
*
|
||||
* The analyzer is an object that represents the IAM Access Analyzer feature. An analyzer is required for Access Analyzer to become operational.
|
||||
*
|
||||
* @cloudformationResource AWS::AccessAnalyzer::Analyzer
|
||||
* @stability external
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-accessanalyzer-analyzer.html
|
||||
*/
|
||||
export declare class CfnAnalyzer extends cdk.CfnResource implements cdk.IInspectable, IAnalyzerRef, cdk.ITaggable {
|
||||
/**
|
||||
* The CloudFormation resource type name for this resource class.
|
||||
*/
|
||||
static readonly CFN_RESOURCE_TYPE_NAME: string;
|
||||
/**
|
||||
* Build a CfnAnalyzer from CloudFormation properties
|
||||
*
|
||||
* A factory method that creates a new instance of this class from an object
|
||||
* containing the CloudFormation properties of this resource.
|
||||
* Used in the @aws-cdk/cloudformation-include module.
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
static _fromCloudFormation(scope: constructs.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnAnalyzer;
|
||||
/**
|
||||
* Checks whether the given object is a CfnAnalyzer
|
||||
*/
|
||||
static isCfnAnalyzer(x: any): x is CfnAnalyzer;
|
||||
static arnForAnalyzer(resource: IAnalyzerRef): string;
|
||||
/**
|
||||
* Contains information about the configuration of an analyzer for an AWS organization or account.
|
||||
*/
|
||||
private _analyzerConfiguration?;
|
||||
/**
|
||||
* The name of the analyzer.
|
||||
*/
|
||||
private _analyzerName?;
|
||||
/**
|
||||
* Specifies the archive rules to add for the analyzer.
|
||||
*/
|
||||
private _archiveRules?;
|
||||
/**
|
||||
* Tag Manager which manages the tags for this resource
|
||||
*/
|
||||
readonly tags: cdk.TagManager;
|
||||
/**
|
||||
* An array of key-value pairs to apply to the analyzer.
|
||||
*/
|
||||
private _tagsRaw?;
|
||||
/**
|
||||
* The type represents the zone of trust for the analyzer.
|
||||
*/
|
||||
private _type;
|
||||
protected readonly cfnPropertyNames: Record<string, string>;
|
||||
/**
|
||||
* Create a new `AWS::AccessAnalyzer::Analyzer`.
|
||||
*
|
||||
* @param scope Scope in which this resource is defined
|
||||
* @param id Construct identifier for this resource (unique in its scope)
|
||||
* @param props Resource properties
|
||||
*/
|
||||
constructor(scope: constructs.Construct, id: string, props: CfnAnalyzerProps);
|
||||
get analyzerRef(): AnalyzerReference;
|
||||
/**
|
||||
* Contains information about the configuration of an analyzer for an AWS organization or account.
|
||||
*/
|
||||
get analyzerConfiguration(): CfnAnalyzer.AnalyzerConfigurationProperty | cdk.IResolvable | undefined;
|
||||
/**
|
||||
* Contains information about the configuration of an analyzer for an AWS organization or account.
|
||||
*/
|
||||
set analyzerConfiguration(value: CfnAnalyzer.AnalyzerConfigurationProperty | cdk.IResolvable | undefined);
|
||||
/**
|
||||
* The name of the analyzer.
|
||||
*/
|
||||
get analyzerName(): string | undefined;
|
||||
/**
|
||||
* The name of the analyzer.
|
||||
*/
|
||||
set analyzerName(value: string | undefined);
|
||||
/**
|
||||
* Specifies the archive rules to add for the analyzer.
|
||||
*/
|
||||
get archiveRules(): Array<CfnAnalyzer.ArchiveRuleProperty | cdk.IResolvable> | cdk.IResolvable | undefined;
|
||||
/**
|
||||
* Specifies the archive rules to add for the analyzer.
|
||||
*/
|
||||
set archiveRules(value: Array<CfnAnalyzer.ArchiveRuleProperty | cdk.IResolvable> | cdk.IResolvable | undefined);
|
||||
/**
|
||||
* An array of key-value pairs to apply to the analyzer.
|
||||
*/
|
||||
get tagsRaw(): Array<cdk.CfnTag> | undefined;
|
||||
/**
|
||||
* An array of key-value pairs to apply to the analyzer.
|
||||
*/
|
||||
set tagsRaw(value: Array<cdk.CfnTag> | undefined);
|
||||
/**
|
||||
* The type represents the zone of trust for the analyzer.
|
||||
*/
|
||||
get type(): string;
|
||||
/**
|
||||
* The type represents the zone of trust for the analyzer.
|
||||
*/
|
||||
set type(value: string);
|
||||
/**
|
||||
* The ARN of the analyzer that was created.
|
||||
*
|
||||
* @cloudformationAttribute Arn
|
||||
*/
|
||||
get attrArn(): string;
|
||||
protected get cfnProperties(): Record<string, any>;
|
||||
/**
|
||||
* Examines the CloudFormation resource and discloses attributes
|
||||
*
|
||||
* @param inspector tree inspector to collect and process attributes
|
||||
*/
|
||||
inspect(inspector: cdk.TreeInspector): void;
|
||||
protected renderProperties(props: Record<string, any>): Record<string, any>;
|
||||
}
|
||||
export declare namespace CfnAnalyzer {
|
||||
/**
|
||||
* Contains information about an archive rule.
|
||||
*
|
||||
* Archive rules automatically archive new findings that meet the criteria you define when you create the rule.
|
||||
*
|
||||
* @struct
|
||||
* @stability external
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-accessanalyzer-analyzer-archiverule.html
|
||||
*/
|
||||
interface ArchiveRuleProperty {
|
||||
/**
|
||||
* The criteria for the rule.
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-accessanalyzer-analyzer-archiverule.html#cfn-accessanalyzer-analyzer-archiverule-filter
|
||||
*/
|
||||
readonly filter: Array<CfnAnalyzer.FilterProperty | cdk.IResolvable> | cdk.IResolvable;
|
||||
/**
|
||||
* The name of the rule to create.
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-accessanalyzer-analyzer-archiverule.html#cfn-accessanalyzer-analyzer-archiverule-rulename
|
||||
*/
|
||||
readonly ruleName: string;
|
||||
}
|
||||
/**
|
||||
* The criteria that defines the archive rule.
|
||||
*
|
||||
* To learn about filter keys that you can use to create an archive rule, see [filter keys](https://docs.aws.amazon.com/IAM/latest/UserGuide/access-analyzer-reference-filter-keys.html) in the *User Guide* .
|
||||
*
|
||||
* @struct
|
||||
* @stability external
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-accessanalyzer-analyzer-filter.html
|
||||
*/
|
||||
interface FilterProperty {
|
||||
/**
|
||||
* A "contains" condition to match for the rule.
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-accessanalyzer-analyzer-filter.html#cfn-accessanalyzer-analyzer-filter-contains
|
||||
*/
|
||||
readonly contains?: Array<string>;
|
||||
/**
|
||||
* An "equals" condition to match for the rule.
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-accessanalyzer-analyzer-filter.html#cfn-accessanalyzer-analyzer-filter-eq
|
||||
*/
|
||||
readonly eq?: Array<string>;
|
||||
/**
|
||||
* An "exists" condition to match for the rule.
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-accessanalyzer-analyzer-filter.html#cfn-accessanalyzer-analyzer-filter-exists
|
||||
*/
|
||||
readonly exists?: boolean | cdk.IResolvable;
|
||||
/**
|
||||
* A "not equal" condition to match for the rule.
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-accessanalyzer-analyzer-filter.html#cfn-accessanalyzer-analyzer-filter-neq
|
||||
*/
|
||||
readonly neq?: Array<string>;
|
||||
/**
|
||||
* The property used to define the criteria in the filter for the rule.
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-accessanalyzer-analyzer-filter.html#cfn-accessanalyzer-analyzer-filter-property
|
||||
*/
|
||||
readonly property: string;
|
||||
}
|
||||
/**
|
||||
* Contains information about the configuration of an analyzer for an AWS organization or account.
|
||||
*
|
||||
* @struct
|
||||
* @stability external
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-accessanalyzer-analyzer-analyzerconfiguration.html
|
||||
*/
|
||||
interface AnalyzerConfigurationProperty {
|
||||
/**
|
||||
* Specifies the configuration of an internal access analyzer for an AWS organization or account.
|
||||
*
|
||||
* This configuration determines how the analyzer evaluates access within your AWS environment.
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-accessanalyzer-analyzer-analyzerconfiguration.html#cfn-accessanalyzer-analyzer-analyzerconfiguration-internalaccessconfiguration
|
||||
*/
|
||||
readonly internalAccessConfiguration?: CfnAnalyzer.InternalAccessConfigurationProperty | cdk.IResolvable;
|
||||
/**
|
||||
* Specifies the configuration of an unused access analyzer for an AWS organization or account.
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-accessanalyzer-analyzer-analyzerconfiguration.html#cfn-accessanalyzer-analyzer-analyzerconfiguration-unusedaccessconfiguration
|
||||
*/
|
||||
readonly unusedAccessConfiguration?: cdk.IResolvable | CfnAnalyzer.UnusedAccessConfigurationProperty;
|
||||
}
|
||||
/**
|
||||
* Contains information about an unused access analyzer.
|
||||
*
|
||||
* @struct
|
||||
* @stability external
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-accessanalyzer-analyzer-unusedaccessconfiguration.html
|
||||
*/
|
||||
interface UnusedAccessConfigurationProperty {
|
||||
/**
|
||||
* Contains information about analysis rules for the analyzer.
|
||||
*
|
||||
* Analysis rules determine which entities will generate findings based on the criteria you define when you create the rule.
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-accessanalyzer-analyzer-unusedaccessconfiguration.html#cfn-accessanalyzer-analyzer-unusedaccessconfiguration-analysisrule
|
||||
*/
|
||||
readonly analysisRule?: CfnAnalyzer.AnalysisRuleProperty | cdk.IResolvable;
|
||||
/**
|
||||
* The specified access age in days for which to generate findings for unused access.
|
||||
*
|
||||
* For example, if you specify 90 days, the analyzer will generate findings for IAM entities within the accounts of the selected organization for any access that hasn't been used in 90 or more days since the analyzer's last scan. You can choose a value between 1 and 365 days.
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-accessanalyzer-analyzer-unusedaccessconfiguration.html#cfn-accessanalyzer-analyzer-unusedaccessconfiguration-unusedaccessage
|
||||
*/
|
||||
readonly unusedAccessAge?: number;
|
||||
}
|
||||
/**
|
||||
* Contains information about analysis rules for the analyzer.
|
||||
*
|
||||
* Analysis rules determine which entities will generate findings based on the criteria you define when you create the rule.
|
||||
*
|
||||
* @struct
|
||||
* @stability external
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-accessanalyzer-analyzer-analysisrule.html
|
||||
*/
|
||||
interface AnalysisRuleProperty {
|
||||
/**
|
||||
* A list of rules for the analyzer containing criteria to exclude from analysis.
|
||||
*
|
||||
* Entities that meet the rule criteria will not generate findings.
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-accessanalyzer-analyzer-analysisrule.html#cfn-accessanalyzer-analyzer-analysisrule-exclusions
|
||||
*/
|
||||
readonly exclusions?: Array<CfnAnalyzer.AnalysisRuleCriteriaProperty | cdk.IResolvable> | cdk.IResolvable;
|
||||
}
|
||||
/**
|
||||
* The criteria for an analysis rule for an analyzer.
|
||||
*
|
||||
* The criteria determine which entities will generate findings.
|
||||
*
|
||||
* @struct
|
||||
* @stability external
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-accessanalyzer-analyzer-analysisrulecriteria.html
|
||||
*/
|
||||
interface AnalysisRuleCriteriaProperty {
|
||||
/**
|
||||
* A list of AWS account IDs to apply to the analysis rule criteria.
|
||||
*
|
||||
* The accounts cannot include the organization analyzer owner account. Account IDs can only be applied to the analysis rule criteria for organization-level analyzers. The list cannot include more than 2,000 account IDs.
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-accessanalyzer-analyzer-analysisrulecriteria.html#cfn-accessanalyzer-analyzer-analysisrulecriteria-accountids
|
||||
*/
|
||||
readonly accountIds?: Array<string>;
|
||||
/**
|
||||
* An array of key-value pairs to match for your resources.
|
||||
*
|
||||
* You can use the set of Unicode letters, digits, whitespace, `_` , `.` , `/` , `=` , `+` , and `-` .
|
||||
*
|
||||
* For the tag key, you can specify a value that is 1 to 128 characters in length and cannot be prefixed with `aws:` .
|
||||
*
|
||||
* For the tag value, you can specify a value that is 0 to 256 characters in length. If the specified tag value is 0 characters, the rule is applied to all principals with the specified tag key.
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-accessanalyzer-analyzer-analysisrulecriteria.html#cfn-accessanalyzer-analyzer-analysisrulecriteria-resourcetags
|
||||
*/
|
||||
readonly resourceTags?: Array<Array<cdk.CfnTag | cdk.IResolvable> | cdk.IResolvable> | cdk.IResolvable;
|
||||
}
|
||||
/**
|
||||
* Specifies the configuration of an internal access analyzer for an AWS organization or account.
|
||||
*
|
||||
* This configuration determines how the analyzer evaluates internal access within your AWS environment.
|
||||
*
|
||||
* @struct
|
||||
* @stability external
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-accessanalyzer-analyzer-internalaccessconfiguration.html
|
||||
*/
|
||||
interface InternalAccessConfigurationProperty {
|
||||
/**
|
||||
* Contains information about analysis rules for the internal access analyzer.
|
||||
*
|
||||
* These rules determine which resources and access patterns will be analyzed.
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-accessanalyzer-analyzer-internalaccessconfiguration.html#cfn-accessanalyzer-analyzer-internalaccessconfiguration-internalaccessanalysisrule
|
||||
*/
|
||||
readonly internalAccessAnalysisRule?: CfnAnalyzer.InternalAccessAnalysisRuleProperty | cdk.IResolvable;
|
||||
}
|
||||
/**
|
||||
* Contains information about analysis rules for the internal access analyzer.
|
||||
*
|
||||
* Analysis rules determine which entities will generate findings based on the criteria you define when you create the rule.
|
||||
*
|
||||
* @struct
|
||||
* @stability external
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-accessanalyzer-analyzer-internalaccessanalysisrule.html
|
||||
*/
|
||||
interface InternalAccessAnalysisRuleProperty {
|
||||
/**
|
||||
* A list of rules for the internal access analyzer containing criteria to include in analysis.
|
||||
*
|
||||
* Only resources that meet the rule criteria will generate findings.
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-accessanalyzer-analyzer-internalaccessanalysisrule.html#cfn-accessanalyzer-analyzer-internalaccessanalysisrule-inclusions
|
||||
*/
|
||||
readonly inclusions?: Array<CfnAnalyzer.InternalAccessAnalysisRuleCriteriaProperty | cdk.IResolvable> | cdk.IResolvable;
|
||||
}
|
||||
/**
|
||||
* The criteria for an analysis rule for an internal access analyzer.
|
||||
*
|
||||
* @struct
|
||||
* @stability external
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-accessanalyzer-analyzer-internalaccessanalysisrulecriteria.html
|
||||
*/
|
||||
interface InternalAccessAnalysisRuleCriteriaProperty {
|
||||
/**
|
||||
* A list of AWS account IDs to apply to the internal access analysis rule criteria.
|
||||
*
|
||||
* Account IDs can only be applied to the analysis rule criteria for organization-level analyzers.
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-accessanalyzer-analyzer-internalaccessanalysisrulecriteria.html#cfn-accessanalyzer-analyzer-internalaccessanalysisrulecriteria-accountids
|
||||
*/
|
||||
readonly accountIds?: Array<string>;
|
||||
/**
|
||||
* A list of resource ARNs to apply to the internal access analysis rule criteria.
|
||||
*
|
||||
* The analyzer will only generate findings for resources that match these ARNs.
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-accessanalyzer-analyzer-internalaccessanalysisrulecriteria.html#cfn-accessanalyzer-analyzer-internalaccessanalysisrulecriteria-resourcearns
|
||||
*/
|
||||
readonly resourceArns?: Array<string>;
|
||||
/**
|
||||
* A list of resource types to apply to the internal access analysis rule criteria.
|
||||
*
|
||||
* The analyzer will only generate findings for resources of these types. These resource types are currently supported for internal access analyzers:
|
||||
*
|
||||
* - `AWS::S3::Bucket`
|
||||
* - `AWS::RDS::DBSnapshot`
|
||||
* - `AWS::RDS::DBClusterSnapshot`
|
||||
* - `AWS::S3Express::DirectoryBucket`
|
||||
* - `AWS::DynamoDB::Table`
|
||||
* - `AWS::DynamoDB::Stream`
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-accessanalyzer-analyzer-internalaccessanalysisrulecriteria.html#cfn-accessanalyzer-analyzer-internalaccessanalysisrulecriteria-resourcetypes
|
||||
*/
|
||||
readonly resourceTypes?: Array<string>;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Properties for defining a `CfnAnalyzer`
|
||||
*
|
||||
* @struct
|
||||
* @stability external
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-accessanalyzer-analyzer.html
|
||||
*/
|
||||
export interface CfnAnalyzerProps {
|
||||
/**
|
||||
* Contains information about the configuration of an analyzer for an AWS organization or account.
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-accessanalyzer-analyzer.html#cfn-accessanalyzer-analyzer-analyzerconfiguration
|
||||
*/
|
||||
readonly analyzerConfiguration?: CfnAnalyzer.AnalyzerConfigurationProperty | cdk.IResolvable;
|
||||
/**
|
||||
* The name of the analyzer.
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-accessanalyzer-analyzer.html#cfn-accessanalyzer-analyzer-analyzername
|
||||
*/
|
||||
readonly analyzerName?: string;
|
||||
/**
|
||||
* Specifies the archive rules to add for the analyzer.
|
||||
*
|
||||
* Archive rules automatically archive findings that meet the criteria you define for the rule.
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-accessanalyzer-analyzer.html#cfn-accessanalyzer-analyzer-archiverules
|
||||
*/
|
||||
readonly archiveRules?: Array<CfnAnalyzer.ArchiveRuleProperty | cdk.IResolvable> | cdk.IResolvable;
|
||||
/**
|
||||
* An array of key-value pairs to apply to the analyzer.
|
||||
*
|
||||
* You can use the set of Unicode letters, digits, whitespace, `_` , `.` , `/` , `=` , `+` , and `-` .
|
||||
*
|
||||
* For the tag key, you can specify a value that is 1 to 128 characters in length and cannot be prefixed with `aws:` .
|
||||
*
|
||||
* For the tag value, you can specify a value that is 0 to 256 characters in length.
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-accessanalyzer-analyzer.html#cfn-accessanalyzer-analyzer-tags
|
||||
*/
|
||||
readonly tags?: Array<cdk.CfnTag>;
|
||||
/**
|
||||
* The type represents the zone of trust for the analyzer.
|
||||
*
|
||||
* *Allowed Values* : ACCOUNT | ORGANIZATION | ACCOUNT_UNUSED_ACCESS | ACCOUNT_INTERNAL_ACCESS | ORGANIZATION_INTERNAL_ACCESS | ORGANIZATION_UNUSED_ACCESS
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-accessanalyzer-analyzer.html#cfn-accessanalyzer-analyzer-type
|
||||
*/
|
||||
readonly type: string;
|
||||
}
|
||||
export type { IAnalyzerRef, AnalyzerReference };
|
||||
1
cdk/node_modules/aws-cdk-lib/aws-accessanalyzer/lib/accessanalyzer.generated.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/aws-accessanalyzer/lib/accessanalyzer.generated.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1
cdk/node_modules/aws-cdk-lib/aws-accessanalyzer/lib/index.d.ts
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/aws-accessanalyzer/lib/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export * from './accessanalyzer.generated';
|
||||
1
cdk/node_modules/aws-cdk-lib/aws-accessanalyzer/lib/index.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/aws-accessanalyzer/lib/index.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";var __createBinding=exports&&exports.__createBinding||(Object.create?(function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}):(function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]})),__exportStar=exports&&exports.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)};Object.defineProperty(exports,"__esModule",{value:!0});var _noFold;exports.CfnAnalyzer=void 0,Object.defineProperty(exports,_noFold="CfnAnalyzer",{enumerable:!0,configurable:!0,get:()=>{var value=require("./accessanalyzer.generated").CfnAnalyzer;return Object.defineProperty(exports,_noFold="CfnAnalyzer",{enumerable:!0,configurable:!0,value}),value}});
|
||||
13
cdk/node_modules/aws-cdk-lib/aws-acmpca/.jsiirc.json
generated
vendored
Normal file
13
cdk/node_modules/aws-cdk-lib/aws-acmpca/.jsiirc.json
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"targets": {
|
||||
"java": {
|
||||
"package": "software.amazon.awscdk.services.acmpca"
|
||||
},
|
||||
"dotnet": {
|
||||
"namespace": "Amazon.CDK.AWS.ACMPCA"
|
||||
},
|
||||
"python": {
|
||||
"module": "aws_cdk.aws_acmpca"
|
||||
}
|
||||
}
|
||||
}
|
||||
59
cdk/node_modules/aws-cdk-lib/aws-acmpca/README.md
generated
vendored
Normal file
59
cdk/node_modules/aws-cdk-lib/aws-acmpca/README.md
generated
vendored
Normal file
@@ -0,0 +1,59 @@
|
||||
# AWS::ACMPCA Construct Library
|
||||
|
||||
|
||||
|
||||
This module is part of the [AWS Cloud Development Kit](https://github.com/aws/aws-cdk) project.
|
||||
|
||||
```ts nofixture
|
||||
import * as acmpca from 'aws-cdk-lib/aws-acmpca';
|
||||
```
|
||||
|
||||
## Certificate Authority
|
||||
|
||||
This package contains a `CertificateAuthority` class.
|
||||
At the moment, you cannot create new Authorities using it,
|
||||
but you can import existing ones using the `fromCertificateAuthorityArn` static method:
|
||||
|
||||
```ts
|
||||
const certificateAuthority = acmpca.CertificateAuthority.fromCertificateAuthorityArn(this, 'CA',
|
||||
'arn:aws:acm-pca:us-east-1:123456789012:certificate-authority/023077d8-2bfa-4eb0-8f22-05c96deade77');
|
||||
```
|
||||
|
||||
## Low-level `Cfn*` classes
|
||||
|
||||
You can always use the low-level classes
|
||||
(starting with `Cfn*`) to create resources like the Certificate Authority:
|
||||
|
||||
```ts
|
||||
const cfnCertificateAuthority = new acmpca.CfnCertificateAuthority(this, 'CA', {
|
||||
type: 'ROOT',
|
||||
keyAlgorithm: 'RSA_2048',
|
||||
signingAlgorithm: 'SHA256WITHRSA',
|
||||
subject: {
|
||||
country: 'US',
|
||||
organization: 'string',
|
||||
organizationalUnit: 'string',
|
||||
distinguishedNameQualifier: 'string',
|
||||
state: 'string',
|
||||
commonName: '123',
|
||||
serialNumber: 'string',
|
||||
locality: 'string',
|
||||
title: 'string',
|
||||
surname: 'string',
|
||||
givenName: 'string',
|
||||
initials: 'DG',
|
||||
pseudonym: 'string',
|
||||
generationQualifier: 'DBG',
|
||||
},
|
||||
});
|
||||
```
|
||||
|
||||
If you need to pass the higher-level `ICertificateAuthority` somewhere,
|
||||
you can get it from the lower-level `CfnCertificateAuthority` using the same `fromCertificateAuthorityArn` method:
|
||||
|
||||
```ts
|
||||
declare const cfnCertificateAuthority: acmpca.CfnCertificateAuthority;
|
||||
|
||||
const certificateAuthority = acmpca.CertificateAuthority.fromCertificateAuthorityArn(this, 'CertificateAuthority',
|
||||
cfnCertificateAuthority.attrArn);
|
||||
```
|
||||
1
cdk/node_modules/aws-cdk-lib/aws-acmpca/index.d.ts
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/aws-acmpca/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export * from './lib';
|
||||
1
cdk/node_modules/aws-cdk-lib/aws-acmpca/index.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/aws-acmpca/index.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";var __createBinding=exports&&exports.__createBinding||(Object.create?(function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}):(function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]})),__exportStar=exports&&exports.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)};Object.defineProperty(exports,"__esModule",{value:!0});var _noFold;exports.CfnCertificate=void 0,Object.defineProperty(exports,_noFold="CfnCertificate",{enumerable:!0,configurable:!0,get:()=>{var value=require("./lib").CfnCertificate;return Object.defineProperty(exports,_noFold="CfnCertificate",{enumerable:!0,configurable:!0,value}),value}}),exports.CfnCertificateAuthority=void 0,Object.defineProperty(exports,_noFold="CfnCertificateAuthority",{enumerable:!0,configurable:!0,get:()=>{var value=require("./lib").CfnCertificateAuthority;return Object.defineProperty(exports,_noFold="CfnCertificateAuthority",{enumerable:!0,configurable:!0,value}),value}}),exports.CfnCertificateAuthorityActivation=void 0,Object.defineProperty(exports,_noFold="CfnCertificateAuthorityActivation",{enumerable:!0,configurable:!0,get:()=>{var value=require("./lib").CfnCertificateAuthorityActivation;return Object.defineProperty(exports,_noFold="CfnCertificateAuthorityActivation",{enumerable:!0,configurable:!0,value}),value}}),exports.CfnPermission=void 0,Object.defineProperty(exports,_noFold="CfnPermission",{enumerable:!0,configurable:!0,get:()=>{var value=require("./lib").CfnPermission;return Object.defineProperty(exports,_noFold="CfnPermission",{enumerable:!0,configurable:!0,value}),value}}),exports.CertificateAuthority=void 0,Object.defineProperty(exports,_noFold="CertificateAuthority",{enumerable:!0,configurable:!0,get:()=>{var value=require("./lib").CertificateAuthority;return Object.defineProperty(exports,_noFold="CertificateAuthority",{enumerable:!0,configurable:!0,value}),value}});
|
||||
1834
cdk/node_modules/aws-cdk-lib/aws-acmpca/lib/acmpca.generated.d.ts
generated
vendored
Normal file
1834
cdk/node_modules/aws-cdk-lib/aws-acmpca/lib/acmpca.generated.d.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1
cdk/node_modules/aws-cdk-lib/aws-acmpca/lib/acmpca.generated.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/aws-acmpca/lib/acmpca.generated.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
26
cdk/node_modules/aws-cdk-lib/aws-acmpca/lib/certificate-authority.d.ts
generated
vendored
Normal file
26
cdk/node_modules/aws-cdk-lib/aws-acmpca/lib/certificate-authority.d.ts
generated
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
import type { Construct } from 'constructs';
|
||||
import type { ICertificateAuthorityRef } from './acmpca.generated';
|
||||
import * as cdk from '../../core';
|
||||
/**
|
||||
* Interface which all CertificateAuthority based class must implement
|
||||
*/
|
||||
export interface ICertificateAuthority extends cdk.IResource, ICertificateAuthorityRef {
|
||||
/**
|
||||
* The Amazon Resource Name of the Certificate
|
||||
*
|
||||
* @attribute
|
||||
*/
|
||||
readonly certificateAuthorityArn: string;
|
||||
}
|
||||
/**
|
||||
* Defines a Certificate for ACMPCA
|
||||
*
|
||||
* @resource AWS::ACMPCA::CertificateAuthority
|
||||
*/
|
||||
export declare class CertificateAuthority {
|
||||
/**
|
||||
* Import an existing Certificate given an ARN
|
||||
*/
|
||||
static fromCertificateAuthorityArn(scope: Construct, id: string, certificateAuthorityArn: string): ICertificateAuthority;
|
||||
private constructor();
|
||||
}
|
||||
1
cdk/node_modules/aws-cdk-lib/aws-acmpca/lib/certificate-authority.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/aws-acmpca/lib/certificate-authority.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.CertificateAuthority=void 0;const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");var cdk=()=>{var tmp=require("../../core");return cdk=()=>tmp,tmp};class CertificateAuthority{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_acmpca.CertificateAuthority",version:"2.252.0"};static fromCertificateAuthorityArn(scope,id,certificateAuthorityArn){return new class extends cdk().Resource{certificateAuthorityRef={certificateAuthorityArn};certificateAuthorityArn=certificateAuthorityArn}(scope,id)}constructor(){}}exports.CertificateAuthority=CertificateAuthority;
|
||||
2
cdk/node_modules/aws-cdk-lib/aws-acmpca/lib/index.d.ts
generated
vendored
Normal file
2
cdk/node_modules/aws-cdk-lib/aws-acmpca/lib/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
export * from './acmpca.generated';
|
||||
export * from './certificate-authority';
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user