aws-prototyping-sdk.pdk-nag-0.9.4
0.9.4
0.9.3
0.9.2
0.9.1
0.9.0
0.8.5
0.8.4
0.8.3
0.8.2
0.8.1
0.8.0
0.7.9
0.7.8
0.7.7
0.7.6
0.7.5
0.7.4
0.7.3
0.7.2
0.7.1
0.7.0
0.6.2
0.6.1
0.6.0
0.5.5
0.5.4
0.5.3
0.5.2
0.5.1
0.5.0
0.4.4
0.4.3
0.4.2
0.4.1
0.4.0
0.3.9
0.3.14
0.3.13
0.3.12
0.3.11
0.3.10
0.18.1
0.18.0
0.17.5
0.17.4
0.17.3
0.17.2
0.17.1
0.17.0
0.16.1
0.16.0
0.15.5
0.15.4
0.15.3
0.14.9
0.14.8
0.14.7
0.14.6
0.14.5
0.14.4
0.14.3
0.14.21
0.14.20
0.14.2
0.14.19
0.14.18
0.14.17
0.14.16
0.14.15
0.14.11
0.14.10
0.14.1
0.14.0
0.13.6
0.13.5
0.13.4
0.13.3
0.13.2
0.13.1
0.13.0
0.12.9
0.12.8
0.12.7
0.12.6
0.12.5
0.12.4
0.12.37
0.12.36
0.12.35
0.12.34
0.12.33
0.12.32
0.12.31
0.12.30
0.12.3
0.12.26
0.12.25
0.12.24
0.12.23
0.12.22
0.12.21
0.12.20
0.12.2
0.12.19
0.12.18
0.12.17
0.12.16
0.12.15
0.12.14
0.12.13
0.12.12
0.12.11
0.12.10
0.12.1
0.12.0
0.11.9
0.11.8
0.11.7
0.11.6
0.11.5
0.11.4
0.11.3
0.11.2
0.11.1
0.11.0
0.10.3
0.10.2
0.10.1
0.10.0
0.9.4
0.9.3
0.9.2
0.9.1
0.9.0
0.8.5
0.8.4
0.8.3
0.8.2
0.8.1
0.8.0
0.7.9
0.7.8
0.7.7
0.7.6
0.7.5
0.7.4
0.7.3
0.7.2
0.7.1
0.7.0
0.6.2
0.6.1
0.6.0
0.5.5
0.5.4
0.5.3
0.5.2
0.5.1
0.5.0
0.4.4
0.4.3
0.4.2
0.4.1
0.4.0
0.3.9
0.3.14
0.3.13
0.3.12
0.3.11
0.3.10
0.18.1
0.18.0
0.17.5
0.17.4
0.17.3
0.17.2
0.17.1
0.17.0
0.16.1
0.16.0
0.15.5
0.15.4
0.15.3
0.14.9
0.14.8
0.14.7
0.14.6
0.14.5
0.14.4
0.14.3
0.14.21
0.14.20
0.14.2
0.14.19
0.14.18
0.14.17
0.14.16
0.14.15
0.14.11
0.14.10
0.14.1
0.14.0
0.13.6
0.13.5
0.13.4
0.13.3
0.13.2
0.13.1
0.13.0
0.12.9
0.12.8
0.12.7
0.12.6
0.12.5
0.12.4
0.12.37
0.12.36
0.12.35
0.12.34
0.12.33
0.12.32
0.12.31
0.12.30
0.12.3
0.12.26
0.12.25
0.12.24
0.12.23
0.12.22
0.12.21
0.12.20
0.12.2
0.12.19
0.12.18
0.12.17
0.12.16
0.12.15
0.12.14
0.12.13
0.12.12
0.12.11
0.12.10
0.12.1
0.12.0
0.11.9
0.11.8
0.11.7
0.11.6
0.11.5
0.11.4
0.11.3
0.11.2
0.11.1
0.11.0
0.10.3
0.10.2
0.10.1
0.10.0
توضیحات
@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