|
1 | 1 | // Package resource contains all interfaces, request types, and response types
|
2 | 2 | // for a managed resource implementation.
|
| 3 | +// |
| 4 | +// In Terraform, a managed resource is a concept which enables provider |
| 5 | +// developers to offer practitioners full lifecycle management (create, read, |
| 6 | +// update, and delete) of a infrastructure component. Managed resources can |
| 7 | +// also stand in for one-time infrastructure operations that require tracking, |
| 8 | +// by implementing create logic, while omitting update and delete logic. |
| 9 | +// |
| 10 | +// Resources are saved into the Terraform state and can be referenced by other |
| 11 | +// parts of a configuration. Resources are defined by a resource type/name, |
| 12 | +// such as "example_thing", a schema representing the structure and data types |
| 13 | +// of configuration, plan, and state, and lifecycle logic. |
| 14 | +// |
| 15 | +// The main starting point for implementations in this package is the |
| 16 | +// Resource type which represents an instance of a resource type that has |
| 17 | +// its own configuration, plan, state, and lifecycle logic. A Resource is |
| 18 | +// instantiated from a provider.ResourceType type NewResource method, which |
| 19 | +// also defines the resource schema. The provider.ResourceType types are |
| 20 | +// referenced by a provider.Provider type GetResources method, which enables |
| 21 | +// the resource for practitioner and testing usage. |
3 | 22 | package resource
|
0 commit comments