Documentation ¶
Index ¶
- Constants
- func IsInstanceState(s shim.InstanceState) (*terraform.InstanceState, bool)
- func NewInstanceState(s *terraform.InstanceState) shim.InstanceState
- func NewInstanceStateForResource(s *terraform.InstanceState, resource *schema.Resource) shim.InstanceState
- func NewProvider(p *schema.Provider, opts ...providerOption) shim.Provider
- func NewResource(r *schema.Resource) shim.Resource
- func NewSchema(s *schema.Schema) shim.Schema
- func NewSchemaMap(m map[string]*schema.Schema) shim.SchemaMap
- func WithDiffStrategy(s DiffStrategy) providerOption
- func WithPlanResourceChange(filter func(tfResourceType string) bool) providerOption
- type DiffStrategy
Constants ¶
const UnknownVariableValue = "74D93920-ED26-11E3-AC10-0800200C9A66"
UnknownVariableValue is the sentinal defined in github.com/hashicorp/terraform/configs/hcl2shim, representing a variable whose value is not known at some particular time. The value is duplicated here in order to prevent an additional dependency - it is unlikely to ever change upstream since that would break rather a lot of things.
Variables ¶
This section is empty.
Functions ¶
func IsInstanceState ¶
func IsInstanceState(s shim.InstanceState) (*terraform.InstanceState, bool)
func NewInstanceState ¶
func NewInstanceState(s *terraform.InstanceState) shim.InstanceState
func NewInstanceStateForResource ¶ added in v3.51.1
func NewInstanceStateForResource(s *terraform.InstanceState, resource *schema.Resource) shim.InstanceState
func WithDiffStrategy ¶ added in v3.42.0
func WithDiffStrategy(s DiffStrategy) providerOption
func WithPlanResourceChange ¶ added in v3.73.0
Selectively opt-in resources that pass the filter to using PlanResourceChange. Resources are identified by their TF type name such as aws_ssm_document.
Types ¶
type DiffStrategy ¶ added in v3.42.0
type DiffStrategy int
Configures how the provider performs Diff. Since this is a sensitive method that can result in unexpected breaking changes, using a configurable DiffStrategy as a feature flag assists gradual rollout.
const ( // Uses the strategy from pulumi-terraform-bridge v3.41.0 and before. ClassicDiff DiffStrategy = 0 // An experimental strategy that mimics the behavior of Terraform CLI to compute PlannedState as part of the // diff, and performs better than ClassicDiff in complicated cases of set-nested blocks. PlanState DiffStrategy = 1 // This strategy would run both PlanState and ClassicDiff strategies and compare their result, generating a // warning if they mismatch. It always behaves as ClassicDiff execept for the warnings. TryPlanState DiffStrategy = 2 )
func ParseDiffStrategy ¶ added in v3.42.0
func ParseDiffStrategy(text string) (DiffStrategy, error)
func ParseDiffStrategyFromEnv ¶ added in v3.42.0
func ParseDiffStrategyFromEnv() (DiffStrategy, bool, error)
func (DiffStrategy) String ¶ added in v3.42.0
func (s DiffStrategy) String() string
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
internal
|
|
tf/configs/configschema
Code copied from https://github.com/hashicorp/terraform.git by go generate; DO NOT EDIT.
|
Code copied from https://github.com/hashicorp/terraform.git by go generate; DO NOT EDIT. |
tf/plans/objchange
Code copied from https://github.com/hashicorp/terraform.git by go generate; DO NOT EDIT.
|
Code copied from https://github.com/hashicorp/terraform.git by go generate; DO NOT EDIT. |