aws-prototyping-sdk.pdk-nag-0.9.4


توضیحات

@aws-prototyping-sdk/pdk-nag
ویژگی مقدار
سیستم عامل OS Independent
نام فایل aws-prototyping-sdk.pdk-nag-0.9.4
نام aws-prototyping-sdk.pdk-nag
نسخه کتابخانه 0.9.4
نگهدارنده []
ایمیل نگهدارنده []
نویسنده AWS APJ COPE<apj-cope@amazon.com>
ایمیل نویسنده -
آدرس صفحه اصلی https://github.com/aws/aws-prototyping-sdk
آدرس اینترنتی https://pypi.org/project/aws-prototyping-sdk.pdk-nag/
مجوز Apache-2.0
## PDK Nag PDKNag ships with a helper utility that automatically configures CDKNag within your application. ```python const app = PDKNag.app(); const stack = new Stack(app, 'MyStack'); ... ``` As shown above, this will configure your application to have CDKNag run on synthesis. By default, CDK will trigger a failure on `synth` if any errors are encountered. To relax these, run the following: ```shell cdk synth --ignore-errors ``` Conversely, CDK will not fail on synth if warnings are detected. To enforce that all warnings are resolved, run the following command: ```shell cdk synth --strict ``` ### Instrumenting custom NagPacks By default, when creating a PDKNag application the [AwsSolutions](https://github.com/cdklabs/cdk-nag/blob/main/RULES.md) NagPack is instrumented. In order to specify custom NagPacks to instrument, you can configure the PDKApp as follows: ```python import { PDKNag, AwsPrototypingChecks } from "@aws-prototyping-sdk/pdk-nag"; const app = PDKNag.app({ nagPacks: [new AwsPrototypingChecks()] }); ``` In this example, the [AwsPrototypingChecks](https://github.com/aws/aws-prototyping-sdk/blob/mainline/packages/pdk-nag/src/packs/README.md) NagPack has been configured to run instead of the default. Multiple NagPacks can also be instrumented by adding NagPack instances to the `nagPacks` array;


نیازمندی

مقدار نام
<3.0.0,>=2.60.0 aws-cdk-lib
<3.0.0,>=2.21.65 cdk-nag
<11.0.0,>=10.1.222 constructs
<2.0.0,>=1.80.0 jsii
>=0.0.3 publication
~=2.13.3 typeguard


زبان مورد نیاز

مقدار نام
~=3.7 Python


نحوه نصب


نصب پکیج whl aws-prototyping-sdk.pdk-nag-0.9.4:

    pip install aws-prototyping-sdk.pdk-nag-0.9.4.whl


نصب پکیج tar.gz aws-prototyping-sdk.pdk-nag-0.9.4:

    pip install aws-prototyping-sdk.pdk-nag-0.9.4.tar.gz