Skip to content

Commit 4c45301

Browse files
committed
new aws_dynamodb_global_resource_index resource
1 parent a327f87 commit 4c45301

17 files changed

+3064
-12
lines changed

.changelog/671.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
```release-note:new-resource
2+
aws_dynamodb_global_resource_index
3+
```
4+

.ci/.semgrep-constants.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1711,6 +1711,24 @@ rules:
17111711
options:
17121712
constant_propagation: false
17131713

1714+
- id: literal-index_arn-string-constant
1715+
languages: [go]
1716+
message: Use the constant `names.AttrIndexARN` for the string literal "index_arn"
1717+
paths:
1718+
include:
1719+
- "internal/service/**/*.go"
1720+
patterns:
1721+
- pattern: '"index_arn"'
1722+
- pattern-not-regex: '"index_arn":\s+test\w+,'
1723+
- pattern-not-inside: 'config.Variables{ ... }'
1724+
- pattern-not-inside: 'packageName = ...'
1725+
- pattern-not-inside: 'provider.ConflictingEndpointsWarningDiag(...)'
1726+
- pattern-not-inside: 'const $X = ...'
1727+
severity: ERROR
1728+
fix: "names.AttrIndexARN"
1729+
options:
1730+
constant_propagation: false
1731+
17141732
- id: literal-instance_count-string-constant
17151733
languages: [go]
17161734
message: Use the constant `names.AttrInstanceCount` for the string literal "instance_count"

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ NOTES:
3737
FEATURES:
3838

3939
* **New Resource:** `aws_cognito_managed_login_branding` ([#43817](https://github.com/hashicorp/terraform-provider-aws/issues/43817))
40+
* **New Resource:** `aws_dynamodb_global_resource_index`
41+
4042

4143
ENHANCEMENTS:
4244

internal/service/dynamodb/errors.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ const (
1111
errCodeThrottlingException = "ThrottlingException"
1212
errCodeUnknownOperationException = "UnknownOperationException"
1313
errCodeValidationException = "ValidationException"
14+
errCodeResourceNotFoundException = "ResourceNotFoundException"
1415
)
1516

1617
var (

0 commit comments

Comments
 (0)