-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
resource/aws_cloudwatch_event_rule: Adds state
parameter
#34510
Conversation
Community NoteVoting for Prioritization
For Submitters
|
Thank you for your contribution! 🚀 A new usage of AWS SDK for Go V1 was detected. Please prefer AWS SDK for Go V2 for all net-new services. If this is an enhancement or bug fix to an existing AWS SDK Go V1 based resource, this comment can be safely ignored. For additional information refer to the AWS SDK for Go Versions page in the contributor guide. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀.
% make testacc TESTARGS='-run=TestAccEventsRule_' PKG=events ACCTEST_PARALLELISM=2
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/events/... -v -count 1 -parallel 2 -run=TestAccEventsRule_ -timeout 360m
=== RUN TestAccEventsRule_basic
=== PAUSE TestAccEventsRule_basic
=== RUN TestAccEventsRule_eventBusName
=== PAUSE TestAccEventsRule_eventBusName
=== RUN TestAccEventsRule_role
=== PAUSE TestAccEventsRule_role
=== RUN TestAccEventsRule_description
=== PAUSE TestAccEventsRule_description
=== RUN TestAccEventsRule_pattern
=== PAUSE TestAccEventsRule_pattern
=== RUN TestAccEventsRule_patternJSONEncoder
=== PAUSE TestAccEventsRule_patternJSONEncoder
=== RUN TestAccEventsRule_scheduleAndPattern
=== PAUSE TestAccEventsRule_scheduleAndPattern
=== RUN TestAccEventsRule_namePrefix
=== PAUSE TestAccEventsRule_namePrefix
=== RUN TestAccEventsRule_Name_generated
=== PAUSE TestAccEventsRule_Name_generated
=== RUN TestAccEventsRule_tags
=== PAUSE TestAccEventsRule_tags
=== RUN TestAccEventsRule_isEnabled
=== PAUSE TestAccEventsRule_isEnabled
=== RUN TestAccEventsRule_state
=== PAUSE TestAccEventsRule_state
=== RUN TestAccEventsRule_partnerEventBus
rule_test.go:575: Environment variable EVENT_BRIDGE_PARTNER_EVENT_BUS_NAME is not set
--- SKIP: TestAccEventsRule_partnerEventBus (0.00s)
=== RUN TestAccEventsRule_eventBusARN
=== PAUSE TestAccEventsRule_eventBusARN
=== RUN TestAccEventsRule_migrateV0
=== PAUSE TestAccEventsRule_migrateV0
=== RUN TestAccEventsRule_migrateV0_Equivalent
=== PAUSE TestAccEventsRule_migrateV0_Equivalent
=== CONT TestAccEventsRule_basic
=== CONT TestAccEventsRule_Name_generated
--- PASS: TestAccEventsRule_Name_generated (30.86s)
=== CONT TestAccEventsRule_eventBusARN
--- PASS: TestAccEventsRule_eventBusARN (27.86s)
=== CONT TestAccEventsRule_migrateV0_Equivalent
=== RUN TestAccEventsRule_migrateV0_Equivalent/enabled
=== PAUSE TestAccEventsRule_migrateV0_Equivalent/enabled
=== RUN TestAccEventsRule_migrateV0_Equivalent/disabled
=== PAUSE TestAccEventsRule_migrateV0_Equivalent/disabled
=== CONT TestAccEventsRule_migrateV0
=== RUN TestAccEventsRule_migrateV0/basic
=== PAUSE TestAccEventsRule_migrateV0/basic
=== RUN TestAccEventsRule_migrateV0/enabled
=== PAUSE TestAccEventsRule_migrateV0/enabled
=== RUN TestAccEventsRule_migrateV0/disabled
=== PAUSE TestAccEventsRule_migrateV0/disabled
=== CONT TestAccEventsRule_isEnabled
--- PASS: TestAccEventsRule_basic (70.33s)
=== CONT TestAccEventsRule_state
--- PASS: TestAccEventsRule_isEnabled (68.39s)
=== CONT TestAccEventsRule_tags
--- PASS: TestAccEventsRule_state (72.72s)
=== CONT TestAccEventsRule_pattern
--- PASS: TestAccEventsRule_pattern (44.64s)
=== CONT TestAccEventsRule_namePrefix
--- PASS: TestAccEventsRule_tags (63.28s)
=== CONT TestAccEventsRule_scheduleAndPattern
--- PASS: TestAccEventsRule_namePrefix (26.67s)
=== CONT TestAccEventsRule_patternJSONEncoder
--- PASS: TestAccEventsRule_scheduleAndPattern (27.03s)
=== CONT TestAccEventsRule_role
--- PASS: TestAccEventsRule_patternJSONEncoder (21.21s)
=== CONT TestAccEventsRule_description
--- PASS: TestAccEventsRule_role (36.78s)
=== CONT TestAccEventsRule_eventBusName
--- PASS: TestAccEventsRule_description (41.35s)
=== CONT TestAccEventsRule_migrateV0_Equivalent/enabled
--- PASS: TestAccEventsRule_eventBusName (59.39s)
=== CONT TestAccEventsRule_migrateV0_Equivalent/disabled
=== CONT TestAccEventsRule_migrateV0/basic
=== CONT TestAccEventsRule_migrateV0/disabled
--- PASS: TestAccEventsRule_migrateV0_Equivalent (0.00s)
--- PASS: TestAccEventsRule_migrateV0_Equivalent/enabled (85.54s)
--- PASS: TestAccEventsRule_migrateV0_Equivalent/disabled (87.87s)
=== CONT TestAccEventsRule_migrateV0/enabled
--- PASS: TestAccEventsRule_migrateV0 (0.00s)
--- PASS: TestAccEventsRule_migrateV0/basic (88.95s)
--- PASS: TestAccEventsRule_migrateV0/disabled (87.62s)
--- PASS: TestAccEventsRule_migrateV0/enabled (82.73s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/events 539.999s
This functionality has been released in v5.27.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Description
Previously, the provider used the boolean parameter
is_enabled
to configure the AWS API parameterState
with valuesENABLED
andDISABLED
. Recently, AWS added the valueENABLED_WITH_CLOUDTRAIL_READ_ONLY_EVENTS
toState
.Adds the parameter
state
and deprecatesis_enabled
.Output from Acceptance Testing