Skip to content

Commit

Permalink
fixed default stateless ruleset and policy
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Venne committed Jan 22, 2022
1 parent 2eb106e commit 6c1ba7e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 89 deletions.
38 changes: 3 additions & 35 deletions API.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,20 @@
```typescript
import { FirewallStack } from 'cdk-nwfirewall'

new FirewallStack(scope: Construct, id: string, fwprops: FWVPCProps)
new FirewallStack(scope: Stack, id: string, fwprops: FWVPCProps)
```

| **Name** | **Type** | **Description** |
| --- | --- | --- |
| [`scope`](#cdknwfirewallfirewallstackparameterscope)<span title="Required">*</span> | [`@aws-cdk/core.Construct`](#@aws-cdk/core.Construct) | *No description.* |
| [`scope`](#cdknwfirewallfirewallstackparameterscope)<span title="Required">*</span> | [`@aws-cdk/core.Stack`](#@aws-cdk/core.Stack) | *No description.* |
| [`id`](#cdknwfirewallfirewallstackparameterid)<span title="Required">*</span> | `string` | *No description.* |
| [`fwprops`](#cdknwfirewallfirewallstackparameterfwprops)<span title="Required">*</span> | [`cdk-nwfirewall.FWVPCProps`](#cdk-nwfirewall.FWVPCProps) | *No description.* |

---

##### `scope`<sup>Required</sup> <a name="cdk-nwfirewall.FirewallStack.parameter.scope" id="cdknwfirewallfirewallstackparameterscope"></a>

- *Type:* [`@aws-cdk/core.Construct`](#@aws-cdk/core.Construct)
- *Type:* [`@aws-cdk/core.Stack`](#@aws-cdk/core.Stack)

---

Expand Down Expand Up @@ -185,36 +185,4 @@ Name of subnets hosting AWS NFW.
---


### Test <a name="cdk-nwfirewall.Test" id="cdknwfirewalltest"></a>

#### Initializers <a name="cdk-nwfirewall.Test.Initializer" id="cdknwfirewalltestinitializer"></a>

```typescript
import { Test } from 'cdk-nwfirewall'

new Test()
```

| **Name** | **Type** | **Description** |
| --- | --- | --- |

---

#### Methods <a name="Methods" id="methods"></a>

| **Name** | **Description** |
| --- | --- |
| [`sayHello`](#cdknwfirewalltestsayhello) | *No description.* |

---

##### `sayHello` <a name="cdk-nwfirewall.Test.sayHello" id="cdknwfirewalltestsayhello"></a>

```typescript
public sayHello()
```





18 changes: 9 additions & 9 deletions test/firewall.test.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
//import * as cdk from '@aws-cdk/core';
//import { FirewallStack } from '../src';
import * as cdk from '@aws-cdk/core';
import { FirewallStack } from '../src';
import '@aws-cdk/assert/jest';


test('run firewall test', () => {
console.log('Test');
//const app = new cdk.App();
//const stack = new cdk.Stack(app);
//const firewall = new FirewallStack(stack, 'firewall', {});
//expect(firewall).toHaveResource('AWS::NetworkFirewall::Firewall');
//expect(firewall).toHaveResource('AWS::EC2::Route', {
// DestinationCidrBlock: '0.0.0.0/0',
//});
const app = new cdk.App();
const stack = new cdk.Stack(app);
const firewall = new FirewallStack(stack, 'firewall', {});
expect(firewall).toHaveResource('AWS::NetworkFirewall::Firewall');
expect(firewall).toHaveResource('AWS::EC2::Route', {
DestinationCidrBlock: '0.0.0.0/0',
});
},

);
47 changes: 2 additions & 45 deletions yarn.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6c1ba7e

Please sign in to comment.