[Enhancement] aws_route53_zone: Add enable_accelerated_recovery argument
#45302
+199
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Rollback Plan
If a change needs to be reverted, we will publish an updated version of the library.
Changes to Security Controls
Are there any changes to security controls (access controls, encryption, logging) in this pull request? If so, explain.
Description
This PR adds the
enable_accelerated_recoveryargument/attribute to theaws_route53_zoneresource and data source.AWS API behavior and Provider implementation
enable_accelerated_recoverycan be modified using theUpdateHostedZoneFeaturesAPI.CreateHostedZoneAPI, the provider callsUpdateHostedZoneFeaturesafter creating the resource to set this value.enable_accelerated_recoverymay take a few minutes.AcceleratedRecoveryStatus, similar to howchange_info.gohandlesChangeStatus.Hosted zones with
enable_accelerated_recoveryenabled cannot be deleted.enable_accelerated_recoveryis enabled, it is first disabled before the hosted zone is deleted.Data Source
enable_accelerated_recoveryis also added to the data source.Relations
Closes #45279
References
https://docs.aws.amazon.com/Route53/latest/APIReference/API_UpdateHostedZoneFeatures.html
https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/accelerated-recovery.html#accelerated-recovery-enable
Output from Acceptance Testing
Resource
One test failed, but it does not appear to be related to this PR's fix.
Data Source