Skip to content

Commit ffe343c

Browse files
r/aws_backup_logically_air_gapped_vault: add encryption_key_arn attribute
1 parent cbb7100 commit ffe343c

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

.changelog/45020.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:enhancement
2+
resource/aws_backup_logically_air_gapped_vault: Add encryption_key_arn attribute
3+
```

internal/service/backup/logically_air_gapped_vault.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ import (
3131
"github.com/hashicorp/terraform-provider-aws/internal/errs/fwdiag"
3232
"github.com/hashicorp/terraform-provider-aws/internal/framework"
3333
fwflex "github.com/hashicorp/terraform-provider-aws/internal/framework/flex"
34+
fwtypes "github.com/hashicorp/terraform-provider-aws/internal/framework/types"
3435
tftags "github.com/hashicorp/terraform-provider-aws/internal/tags"
3536
"github.com/hashicorp/terraform-provider-aws/internal/tfresource"
3637
"github.com/hashicorp/terraform-provider-aws/names"
@@ -73,6 +74,13 @@ func (r *logicallyAirGappedVaultResource) Schema(ctx context.Context, request re
7374
int64planmodifier.RequiresReplace(),
7475
},
7576
},
77+
"encryption_key_arn": schema.StringAttribute{
78+
CustomType: fwtypes.ARNType,
79+
Required: false,
80+
PlanModifiers: []planmodifier.String{
81+
stringplanmodifier.RequiresReplace(),
82+
},
83+
},
7684
names.AttrName: schema.StringAttribute{
7785
Required: true,
7886
Validators: []validator.String{
@@ -200,6 +208,7 @@ type logicallyAirGappedVaultResourceModel struct {
200208
ID types.String `tfsdk:"id"`
201209
MaxRetentionDays types.Int64 `tfsdk:"max_retention_days"`
202210
MinRetentionDays types.Int64 `tfsdk:"min_retention_days"`
211+
EncryptionKeyArn fwtypes.ARN `tfsdk:"encryption_key_arn"`
203212
Tags tftags.Map `tfsdk:"tags"`
204213
TagsAll tftags.Map `tfsdk:"tags_all"`
205214
Timeouts timeouts.Value `tfsdk:"timeouts"`

website/docs/r/backup_logically_air_gapped_vault.html.markdown

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ This resource supports the following arguments:
3030
* `name` - (Required) Name of the Logically Air Gapped Backup Vault to create.
3131
* `max_retention_days` - (Required) Maximum retention period that the Logically Air Gapped Backup Vault retains recovery points.
3232
* `min_retention_days` - (Required) Minimum retention period that the Logically Air Gapped Backup Vault retains recovery points.
33+
* `encryption_key_arn` - (Optional) The AWS KMS key identifier (ARN) used to encrypt the backups in the logically air-gapped vault.
3334
* `tags` - (Optional) Metadata that you can assign to help organize the resources that you create. If configured with a provider [`default_tags` configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-configuration-block) present, tags with matching keys will overwrite those defined at the provider-level.
3435

3536
## Attribute Reference

0 commit comments

Comments
 (0)