@@ -13,7 +13,6 @@ import (
13
13
"github.com/hashicorp/terraform-plugin-framework-timeouts/resource/timeouts"
14
14
"github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes"
15
15
"github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
16
- "github.com/hashicorp/terraform-plugin-framework/attr"
17
16
"github.com/hashicorp/terraform-plugin-framework/path"
18
17
"github.com/hashicorp/terraform-plugin-framework/resource"
19
18
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
@@ -34,7 +33,6 @@ import (
34
33
"github.com/hashicorp/terraform-provider-aws/names"
35
34
)
36
35
37
- // Function annotations are used for resource registration to the Provider. DO NOT EDIT.
38
36
// @FrameworkResource("aws_odb_network", name="Network")
39
37
// @Tags(identifierAttribute="arn")
40
38
func newResourceNetwork (_ context.Context ) (resource.ResourceWithConfigure , error ) {
@@ -162,12 +160,6 @@ func (r *resourceNetwork) Schema(ctx context.Context, req resource.SchemaRequest
162
160
CustomType : fwtypes.NewListNestedObjectTypeOf [odbNwkOciDnsForwardingConfigResourceModel ](ctx ),
163
161
Computed : true ,
164
162
Description : "The DNS resolver endpoint in OCI for forwarding DNS queries for the ociPrivateZone domain." ,
165
- ElementType : types.ObjectType {
166
- AttrTypes : map [string ]attr.Type {
167
- names .AttrDomainName : types .StringType ,
168
- "oci_dns_listener_ip" : types .StringType ,
169
- },
170
- },
171
163
},
172
164
"peered_cidrs" : schema.SetAttribute {
173
165
CustomType : fwtypes .SetOfStringType ,
@@ -456,8 +448,8 @@ func (r *resourceNetwork) Update(ctx context.Context, req resource.UpdateRequest
456
448
)
457
449
return
458
450
}
459
- state .S3Access = fwtypes .StringEnumValue (readS3AccessStatus )
460
- state .S3PolicyDocument = types .StringPointerValue (updatedOdbNwk .ManagedServices .S3Access .S3PolicyDocument )
451
+ plan .S3Access = fwtypes .StringEnumValue (readS3AccessStatus )
452
+ plan .S3PolicyDocument = types .StringPointerValue (updatedOdbNwk .ManagedServices .S3Access .S3PolicyDocument )
461
453
462
454
readZeroEtlAccessStatus , err := mapManagedServiceStatusToAccessStatus (updatedOdbNwk .ManagedServices .ZeroEtlAccess .Status )
463
455
if err != nil {
@@ -467,7 +459,7 @@ func (r *resourceNetwork) Update(ctx context.Context, req resource.UpdateRequest
467
459
)
468
460
return
469
461
}
470
- state .ZeroEtlAccess = fwtypes .StringEnumValue (readZeroEtlAccessStatus )
462
+ plan .ZeroEtlAccess = fwtypes .StringEnumValue (readZeroEtlAccessStatus )
471
463
472
464
resp .Diagnostics .Append (flex .Flatten (ctx , updatedOdbNwk , & plan )... )
473
465
resp .Diagnostics .Append (resp .State .Set (ctx , & plan )... )
0 commit comments