Skip to content

Commit

Permalink
Add support for AWS::IoT::SecurityProfile (#19)
Browse files Browse the repository at this point in the history
* Add support for AWS::IoT::SecurityProfile

* Add a rate limiter for attach&detach calls

* Remove the deprecated AdditionalMetrics (V1) field

* Fix typo in list handler permissions

* Remove accidental requirement for name in json schema

* Use ProgressEvents instead of Cfn exceptions

* Fix accidentally commented out test

* Add minor improvements
  • Loading branch information
anton-aws authored Dec 16, 2020
1 parent 424bafd commit 735eac8
Show file tree
Hide file tree
Showing 28 changed files with 3,220 additions and 0 deletions.
23 changes: 23 additions & 0 deletions aws-iot-securityprofile/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# macOS
.DS_Store
._*

# Maven outputs
.classpath

# IntelliJ
*.iml
.idea
out.java
out/
.settings
.project

# auto-generated files
target/

# our logs
rpdk.log

# contains credentials
sam-tests/
22 changes: 22 additions & 0 deletions aws-iot-securityprofile/.rpdk-config
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"typeName": "AWS::IoT::SecurityProfile",
"language": "java",
"runtime": "java8",
"entrypoint": "com.amazonaws.iot.securityprofile.HandlerWrapper::handleRequest",
"testEntrypoint": "com.amazonaws.iot.securityprofile.HandlerWrapper::testEntrypoint",
"settings": {
"version": false,
"subparser_name": null,
"verbose": 0,
"force": false,
"type_name": null,
"namespace": [
"com",
"amazonaws",
"iot",
"securityprofile"
],
"codegen_template_path": "guided_aws",
"protocolVersion": "2.0.0"
}
}
19 changes: 19 additions & 0 deletions aws-iot-securityprofile/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# AWS::IoT::SecurityProfile

## Running Contract Tests

You can execute the following commands to run the tests.
You will need to have docker installed and running.

```bash
# Package the code with Maven
mvn package
# Start SAM which will execute lambdas in Docker
sam local start-lambda

# In a separate terminal, run the contract tests
cfn test --enforce-timeout 240

# Execute a single test
cfn test --enforce-timeout 240 -- -k <testname>
```
Loading

0 comments on commit 735eac8

Please sign in to comment.