Skip to content

Commit

Permalink
aws_datazone_user_profile: replace when attribute cannot be updated
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsonaj committed Oct 8, 2024
1 parent c0d9ab3 commit c65693b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions internal/service/datazone/user_profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ func (r *resourceUserProfile) Schema(ctx context.Context, _ resource.SchemaReque
Attributes: map[string]schema.Attribute{
"domain_identifier": schema.StringAttribute{
Required: true,
PlanModifiers: []planmodifier.String{
stringplanmodifier.RequiresReplace(),
},
},
"details": schema.ListAttribute{
CustomType: fwtypes.NewListNestedObjectTypeOf[detailsData](ctx),
Expand All @@ -84,6 +87,9 @@ func (r *resourceUserProfile) Schema(ctx context.Context, _ resource.SchemaReque
},
"user_identifier": schema.StringAttribute{
Required: true,
PlanModifiers: []planmodifier.String{
stringplanmodifier.RequiresReplace(),
},
},
names.AttrType: schema.StringAttribute{
CustomType: fwtypes.StringEnumType[awstypes.UserProfileType](),
Expand All @@ -98,6 +104,7 @@ func (r *resourceUserProfile) Schema(ctx context.Context, _ resource.SchemaReque
Computed: true,
PlanModifiers: []planmodifier.String{
stringplanmodifier.UseStateForUnknown(),
stringplanmodifier.RequiresReplace(),
},
},
},
Expand Down

0 comments on commit c65693b

Please sign in to comment.