Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: [New Resource] aws_resiliencehub_resiliency_policy #38913

Merged
merged 34 commits into from
Oct 18, 2024
Merged
Show file tree
Hide file tree
Changes from 33 commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
4185a3f
newResourceResiliencyPolicy
coderaycer Aug 16, 2024
beaba3c
updatePolicyName
coderaycer Aug 18, 2024
db704a4
updateWebDoc
coderaycer Aug 18, 2024
65d8316
updateWebDoc
coderaycer Aug 18, 2024
cfe746d
changelog
coderaycer Aug 18, 2024
3a039db
fmt
coderaycer Aug 18, 2024
b3f7f39
fmtTest
coderaycer Aug 18, 2024
ad4a586
fmtTest
coderaycer Aug 18, 2024
d8af59d
extraSpace
coderaycer Aug 18, 2024
592137e
codeQuality
coderaycer Aug 18, 2024
3c9bdfd
flattenResp
coderaycer Aug 18, 2024
a85bcfa
goFmt
coderaycer Aug 18, 2024
9a2bd21
tftagsMap
coderaycer Sep 4, 2024
8de478c
Removes unneeded `id` attribute
gdavison Oct 17, 2024
b57bd29
Replaces `policy_name` with `name`
gdavison Oct 17, 2024
887828b
Replaces `policy_description` with `description`
gdavison Oct 17, 2024
f6d5e13
Removes optional attributes from `basic` test
gdavison Oct 17, 2024
bc11153
Tweaks `name` validation and updates documentation
gdavison Oct 17, 2024
d79f267
Adds valid values for `tier` and `data_location_constraint` to docume…
gdavison Oct 17, 2024
11a3949
Adds documentation for `estimated_cost_tier`
gdavison Oct 17, 2024
86e8867
Model tweaks
gdavison Oct 17, 2024
1dc8030
`policy.region` is optional
gdavison Oct 17, 2024
49ca804
Uses AWS SDK constants for policy type key
gdavison Oct 17, 2024
3dd0936
Separates `description` test
gdavison Oct 18, 2024
c9086e2
Separates `name` test
gdavison Oct 18, 2024
2425ad4
Separates `data_location_constraint` test
gdavison Oct 18, 2024
55b6285
Alphabetical order
gdavison Oct 18, 2024
7965b05
Separates `tier` test
gdavison Oct 18, 2024
4bb73d7
Separates `policy` tests
gdavison Oct 18, 2024
921bb61
No longer recreates resource when `policy` changes
gdavison Oct 18, 2024
3b16d83
Adds sweeper
gdavison Oct 18, 2024
bd18b57
Restricts parallelism to 10
gdavison Oct 18, 2024
36748a8
Cleanup
gdavison Oct 18, 2024
03aacc4
Converts durations from seconds to Go duration
gdavison Oct 18, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .changelog/38913.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:new-resource
aws_resiliencehub_resiliency_policy
```
2 changes: 1 addition & 1 deletion .teamcity/components/generated/services_all.kt
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ val services = mapOf(
"redshiftdata" to ServiceSpec("Redshift Data"),
"redshiftserverless" to ServiceSpec("Redshift Serverless"),
"rekognition" to ServiceSpec("Rekognition"),
"resiliencehub" to ServiceSpec("Resilience Hub"),
"resiliencehub" to ServiceSpec("Resilience Hub", parallelismOverride = 10),
"resourceexplorer2" to ServiceSpec("Resource Explorer"),
"resourcegroups" to ServiceSpec("Resource Groups"),
"resourcegroupstaggingapi" to ServiceSpec("Resource Groups Tagging"),
Expand Down
4 changes: 4 additions & 0 deletions internal/generate/teamcity/acctest_services.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,10 @@ service "redshift" {
vpc_lock = true
}

service "resiliencehub" {
parallelism = 10
}

service "route53" {
vpc_lock = true
}
Expand Down
9 changes: 9 additions & 0 deletions internal/service/resiliencehub/exports_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

package resiliencehub

// Exports for use in tests only.
var (
ResourceResiliencyPolicy = newResourceResiliencyPolicy
)
1 change: 1 addition & 0 deletions internal/service/resiliencehub/generate.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

//go:generate go run ../../generate/tags/main.go -AWSSDKVersion=2 -ServiceTagsMap -KVTValues -SkipTypesImp -ListTags -ListTagsInIDElem=ResourceArn -ListTagsOutTagsElem=Tags -TagOp=TagResource -TagInIDElem=ResourceArn -UntagOp=UntagResource -UpdateTags
//go:generate go run ../../generate/servicepackage/main.go
// ONLY generate directives and package declaration! Do not add anything else to this file.

Expand Down
Loading
Loading