Skip to content

Commit ff45640

Browse files
committed
fix linter issues
1 parent ebf4210 commit ff45640

File tree

2 files changed

+10
-19
lines changed

2 files changed

+10
-19
lines changed

internal/service/odb/cloud_autonomous_vm_cluster_data_source_test.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import (
99
"testing"
1010

1111
"github.com/aws/aws-sdk-go-v2/service/odb"
12-
odbtypes "github.com/aws/aws-sdk-go-v2/service/odb/types"
1312
sdkacctest "github.com/hashicorp/terraform-plugin-testing/helper/acctest"
1413
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
1514
"github.com/hashicorp/terraform-plugin-testing/terraform"
@@ -39,8 +38,8 @@ func TestAccODBCloudAutonomousVmClusterDataSource_basic(t *testing.T) {
3938
if testing.Short() {
4039
t.Skip("skipping long-running test in short mode")
4140
}
42-
var avmc1 odbtypes.CloudAutonomousVmCluster
43-
dataSourceName := "data.aws_odb_cloud_autonomous_vm_cluster.test"
41+
avmcResource := "aws_odb_cloud_autonomous_vm_cluster.test"
42+
avmcDataSource := "data.aws_odb_cloud_autonomous_vm_cluster.test"
4443

4544
resource.ParallelTest(t, resource.TestCase{
4645
PreCheck: func() {
@@ -54,7 +53,7 @@ func TestAccODBCloudAutonomousVmClusterDataSource_basic(t *testing.T) {
5453
{
5554
Config: autonomousVMClusterDSTestEntity.avmcBasic(),
5655
Check: resource.ComposeAggregateTestCheckFunc(
57-
resource.TestCheckResourceAttr(dataSourceName, names.AttrDisplayName, *avmc1.DisplayName),
56+
resource.TestCheckResourceAttrPair(avmcResource, names.AttrID, avmcDataSource, names.AttrID),
5857
),
5958
},
6059
},

website/docs/r/odb_cloud_autonomous_vm_cluster.html.markdown

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -94,24 +94,16 @@ The following arguments are optional:
9494

9595
### maintenance_window
9696

97-
The following arguments are required:
98-
99-
* `preference` - (Required) The preference for the maintenance window scheduling.
100-
101-
The following arguments are optional:
102-
103-
* `days_of_week` - (Optional) The days of the week when maintenance can be performed.
104-
* `hours_of_day` - (Optional) The hours of the day when maintenance can be performed.
105-
* `lead_time_in_weeks` - (Optional) The lead time in weeks before the maintenance window.
106-
* `months` - (Optional) The months when maintenance can be performed.
107-
* `weeks_of_month` - (Optional) Indicates whether to skip release updates during maintenance.
108-
97+
* `preference` - (Required) The preference for the maintenance window scheduling. Changing this will force terraform to create new resource.
98+
* `days_of_week` - (Optional) The days of the week when maintenance can be performed. Changing this will force terraform to create new resource.
99+
* `hours_of_day` - (Optional) The hours of the day when maintenance can be performed. Changing this will force terraform to create new resource.
100+
* `lead_time_in_weeks` - (Optional) The lead time in weeks before the maintenance window. Changing this will force terraform to create new resource.
101+
* `months` - (Optional) The months when maintenance can be performed. Changing this will force terraform to create new resource.
102+
* `weeks_of_month` - (Optional) Indicates whether to skip release updates during maintenance. Changing this will force terraform to create new resource.
109103

110104
## Attribute Reference
111105

112-
This data source exports the following attributes in addition to the arguments above:
113-
114-
# Computed Attributes for Autonomous VM Cluster Resource
106+
This resource exports the following attributes in addition to the arguments above:
115107

116108
* `arn` - The Amazon Resource Name (ARN) for the Exadata infrastructure.
117109
* `autonomous_data_storage_percentage` - The progress of the current operation on the Autonomous VM cluster, as a percentage.

0 commit comments

Comments
 (0)