Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…onstructs into Issue853
  • Loading branch information
biffgaut committed Feb 15, 2023
2 parents 7a8f9d8 + b8516cb commit 3a88f07
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 6 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

## [2.32.0](https://github.com/awslabs/aws-solutions-constructs/compare/v2.31.0...v2.32.0) (2023-02-14)

Build on CDK 2.64.0

### Features

* **aws-wafwebacl-agigateway:** enable govcloud ([#900](https://github.com/awslabs/aws-solutions-constructs/issues/900)) ([dd19d93](https://github.com/awslabs/aws-solutions-constructs/commit/dd19d9363fa6c33b0c616a1a5392c26369bc02b2))

## [2.31.0](https://github.com/awslabs/aws-solutions-constructs/compare/v2.30.0...v2.31.0) (2023-02-09)

Build on CDK 2.64.0
Expand Down
2 changes: 1 addition & 1 deletion source/lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
"./patterns/@aws-solutions-constructs/*"
],
"rejectCycles": "true",
"version": "2.31.0"
"version": "2.32.0"
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import * as api from 'aws-cdk-lib/aws-apigateway';
import * as waf from 'aws-cdk-lib/aws-wafv2';
import * as defaults from '@aws-solutions-constructs/core';
// Note: To ensure CDKv2 compatibility, keep the import statement for Construct separate
import { Stack } from 'aws-cdk-lib';
import { Aws } from 'aws-cdk-lib';

/**
* @summary The properties for the WafwebaclToApiGateway class.
Expand Down Expand Up @@ -62,7 +62,7 @@ export class WafwebaclToApiGateway extends Construct {
webaclProps: props.webaclProps,
});

const resourceArn = `arn:aws:apigateway:${Stack.of(scope).region}::/restapis/${props.existingApiGatewayInterface.restApiId}/stages/${props.existingApiGatewayInterface.deploymentStage.stageName}`;
const resourceArn = `arn:${Aws.PARTITION}:apigateway:${Aws.REGION}::/restapis/${props.existingApiGatewayInterface.restApiId}/stages/${props.existingApiGatewayInterface.deploymentStage.stageName}`;

// Setup the Web ACL Association
new waf.CfnWebACLAssociation(scope, `${id}-WebACLAssociation`, {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1055,7 +1055,11 @@
"Fn::Join": [
"",
[
"arn:aws:apigateway:",
"arn:",
{
"Ref": "AWS::Partition"
},
":apigateway:",
{
"Ref": "AWS::Region"
},
Expand Down Expand Up @@ -1085,7 +1089,11 @@
"Fn::Join": [
"",
[
"arn:aws:apigateway:",
"arn:",
{
"Ref": "AWS::Partition"
},
":apigateway:",
{
"Ref": "AWS::Region"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,11 @@
"Fn::Join": [
"",
[
"arn:aws:apigateway:",
"arn:",
{
"Ref": "AWS::Partition"
},
":apigateway:",
{
"Ref": "AWS::Region"
},
Expand Down

0 comments on commit 3a88f07

Please sign in to comment.