Skip to content

Commit

Permalink
Correct resource State Move documentation (#957)
Browse files Browse the repository at this point in the history
* 'ResourceWithStateMove' -> 'ResourceWithMoveState'.

* 'StateMove' method -> 'MoveState'.
  • Loading branch information
ewbankkit authored Mar 15, 2024
1 parent 6f28bad commit 09b53c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website/docs/plugin/framework/resources/state-move.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ The framework implementation does the following:

## Implementation

Implement the [`resource.ResourceWithStateMove` interface](https://pkg.go.dev/github.com/hashicorp/terraform-plugin-framework/resource#ResourceWithStateMove) for the [`resource.Resource`](https://pkg.go.dev/github.com/hashicorp/terraform-plugin-framework/resource#Resource). That interface requires the `StateMove` method, which enables individual source resource criteria and logic for each source resource type to support.
Implement the [`resource.ResourceWithMoveState` interface](https://pkg.go.dev/github.com/hashicorp/terraform-plugin-framework/resource#ResourceWithMoveState) for the [`resource.Resource`](https://pkg.go.dev/github.com/hashicorp/terraform-plugin-framework/resource#Resource). That interface requires the `MoveState` method, which enables individual source resource criteria and logic for each source resource type to support.

This example shows a `Resource` with the necessary `StateMove` method to implement the `ResourceWithStateMove` interface:
This example shows a `Resource` with the necessary `MoveState` method to implement the `ResourceWithMoveState` interface:

```go
// Other Resource methods are omitted in this example
Expand Down

0 comments on commit 09b53c3

Please sign in to comment.