Versions in this module Expand all Collapse all v1 v1.3.6 Dec 5, 2022 Changes in this version + const PanicOnErr + const TimeoutCreate + const TimeoutDefault + const TimeoutDelete + const TimeoutKey + const TimeoutRead + const TimeoutUpdate + const TimeoutsConfigKey + var ProvConfigDataKey = contextKey("provider config data") + var ProvConnDataKey = contextKey("provider conn data") + var ProvOutputKey = contextKey("provider output") + var ProvRawStateKey = contextKey("provider raw state") + var ReservedDataSourceFields = []string + var ReservedProviderFields = []string + var ReservedResourceFields = []string + func ApplyDiff(base cty.Value, d *terraform.InstanceDiff, schema *configschema.Block) (cty.Value, error) + func DefaultTimeout(tx interface{}) *time.Duration + func DiffFromValues(prior, planned cty.Value, res *Resource) (*terraform.InstanceDiff, error) + func HashInt(v interface{}) int + func HashString(v interface{}) int + func JSONMapToStateValue(m map[string]interface{}, block *configschema.Block) (cty.Value, error) + func Noop(*ResourceData, interface{}) error + func RemoveFromState(d *ResourceData, _ interface{}) error + func SerializeResourceForHash(buf *bytes.Buffer, val interface{}, resource *Resource) + func SerializeValueForHash(buf *bytes.Buffer, val interface{}, schema *Schema) + func SetProto5() + func StateValueFromInstanceState(is *terraform.InstanceState, ty cty.Type) (cty.Value, error) + func StateValueToJSONMap(val cty.Value, ty cty.Type) (map[string]interface{}, error) + type Backend struct + ConfigureFunc func(context.Context) error + Schema map[string]*Schema + func (b *Backend) Config() *ResourceData + func (b *Backend) ConfigSchema() *configschema.Block + func (b *Backend) Configure(obj cty.Value) tfdiags.Diagnostics + func (b *Backend) PrepareConfig(configVal cty.Value) (cty.Value, tfdiags.Diagnostics) + func (r *Backend) CoreConfigSchema() *configschema.Block + type BasicMapReader map[string]string + func (r BasicMapReader) Access(k string) (string, bool) + func (r BasicMapReader) Range(f func(string, string) bool) bool + type ConfigFieldReader struct + Config *terraform.ResourceConfig + Schema map[string]*Schema + func (r *ConfigFieldReader) ReadField(address []string) (FieldReadResult, error) + type ConfigureFunc func(*ResourceData) (interface{}, error) + type CreateFunc func(*ResourceData, interface{}) error + type CustomizeDiffFunc func(*ResourceDiff, interface{}) error + type DeleteFunc func(*ResourceData, interface{}) error + type DiffFieldReader struct + Diff *terraform.InstanceDiff + Schema map[string]*Schema + Source FieldReader + func (r *DiffFieldReader) ReadField(address []string) (FieldReadResult, error) + type Equal interface + Equal func(interface{}) bool + type ExistsFunc func(*ResourceData, interface{}) (bool, error) + type FieldReadResult struct + Computed bool + Exists bool + Value interface{} + ValueProcessed interface{} + func (r *FieldReadResult) ValueOrZero(s *Schema) interface{} + type FieldReader interface + ReadField func([]string) (FieldReadResult, error) + type FieldWriter interface + WriteField func([]string, interface{}) error + type InternalMap = schemaMap + type MapFieldReader struct + Map MapReader + Schema map[string]*Schema + func (r *MapFieldReader) ReadField(address []string) (FieldReadResult, error) + type MapFieldWriter struct + Schema map[string]*Schema + func (w *MapFieldWriter) Map() map[string]string + func (w *MapFieldWriter) WriteField(addr []string, value interface{}) error + type MapReader interface + Access func(string) (string, bool) + Range func(func(string, string) bool) bool + type MultiLevelFieldReader struct + Levels []string + Readers map[string]FieldReader + func (r *MultiLevelFieldReader) ReadField(address []string) (FieldReadResult, error) + func (r *MultiLevelFieldReader) ReadFieldExact(address []string, level string) (FieldReadResult, error) + func (r *MultiLevelFieldReader) ReadFieldMerge(address []string, level string) (FieldReadResult, error) + type MultiMapReader []map[string]string + func (r MultiMapReader) Access(k string) (string, bool) + func (r MultiMapReader) Range(f func(string, string) bool) bool + type Provider struct + ConfigureFunc ConfigureFunc + DataSourcesMap map[string]*Resource + MetaReset func() error + ProviderMetaSchema map[string]*Schema + ResourcesMap map[string]*Resource + Schema map[string]*Schema + TerraformVersion string + func (p *Provider) Apply(info *terraform.InstanceInfo, s *terraform.InstanceState, ...) (*terraform.InstanceState, error) + func (p *Provider) Configure(c *terraform.ResourceConfig) error + func (p *Provider) DataSources() []terraform.DataSource + func (p *Provider) Diff(info *terraform.InstanceInfo, s *terraform.InstanceState, ...) (*terraform.InstanceDiff, error) + func (p *Provider) GetSchema(req *terraform.ProviderSchemaRequest) (*terraform.ProviderSchema, error) + func (p *Provider) ImportState(info *terraform.InstanceInfo, id string) ([]*terraform.InstanceState, error) + func (p *Provider) Input(input terraform.UIInput, c *terraform.ResourceConfig) (*terraform.ResourceConfig, error) + func (p *Provider) InternalValidate() error + func (p *Provider) Meta() interface{} + func (p *Provider) ReadDataApply(info *terraform.InstanceInfo, d *terraform.InstanceDiff) (*terraform.InstanceState, error) + func (p *Provider) ReadDataDiff(info *terraform.InstanceInfo, c *terraform.ResourceConfig) (*terraform.InstanceDiff, error) + func (p *Provider) Refresh(info *terraform.InstanceInfo, s *terraform.InstanceState) (*terraform.InstanceState, error) + func (p *Provider) Resources() []terraform.ResourceType + func (p *Provider) SetMeta(v interface{}) + func (p *Provider) SimpleDiff(info *terraform.InstanceInfo, s *terraform.InstanceState, ...) (*terraform.InstanceDiff, error) + func (p *Provider) Stop() error + func (p *Provider) StopContext() context.Context + func (p *Provider) Stopped() bool + func (p *Provider) TestReset() error + func (p *Provider) Validate(c *terraform.ResourceConfig) ([]string, []error) + func (p *Provider) ValidateDataSource(t string, c *terraform.ResourceConfig) ([]string, []error) + func (p *Provider) ValidateResource(t string, c *terraform.ResourceConfig) ([]string, []error) + type Provisioner struct + ApplyFunc func(ctx context.Context) error + ConnSchema map[string]*Schema + Schema map[string]*Schema + ValidateFunc func(*terraform.ResourceConfig) ([]string, []error) + func (p *Provisioner) Apply(o terraform.UIOutput, s *terraform.InstanceState, c *terraform.ResourceConfig) error + func (p *Provisioner) GetConfigSchema() (*configschema.Block, error) + func (p *Provisioner) InternalValidate() error + func (p *Provisioner) Stop() error + func (p *Provisioner) StopContext() context.Context + func (p *Provisioner) Validate(c *terraform.ResourceConfig) (ws []string, es []error) + type ReadFunc func(*ResourceData, interface{}) error + type Resource struct + Create CreateFunc + CustomizeDiff CustomizeDiffFunc + Delete DeleteFunc + DeprecationMessage string + Exists ExistsFunc + Importer *ResourceImporter + MigrateState StateMigrateFunc + Read ReadFunc + Schema map[string]*Schema + SchemaVersion int + StateUpgraders []StateUpgrader + Timeouts *ResourceTimeout + Update UpdateFunc + func DataSourceResourceShim(name string, dataSource *Resource) *Resource + func (r *Resource) Apply(s *terraform.InstanceState, d *terraform.InstanceDiff, meta interface{}) (*terraform.InstanceState, error) + func (r *Resource) CoreConfigSchema() *configschema.Block + func (r *Resource) Data(s *terraform.InstanceState) *ResourceData + func (r *Resource) Diff(s *terraform.InstanceState, c *terraform.ResourceConfig, meta interface{}) (*terraform.InstanceDiff, error) + func (r *Resource) InternalValidate(topSchemaMap schemaMap, writable bool) error + func (r *Resource) ReadDataApply(d *terraform.InstanceDiff, meta interface{}) (*terraform.InstanceState, error) + func (r *Resource) Refresh(s *terraform.InstanceState, meta interface{}) (*terraform.InstanceState, error) + func (r *Resource) RefreshWithoutUpgrade(s *terraform.InstanceState, meta interface{}) (*terraform.InstanceState, error) + func (r *Resource) SchemasForFlatmapPath(path string) []*Schema + func (r *Resource) ShimInstanceStateFromValue(state cty.Value) (*terraform.InstanceState, error) + func (r *Resource) TestResourceData() *ResourceData + func (r *Resource) Validate(c *terraform.ResourceConfig) ([]string, []error) + type ResourceData struct + func FromContextBackendConfig(ctx context.Context) *ResourceData + func ImportStatePassthrough(d *ResourceData, m interface{}) ([]*ResourceData, error) + func TestResourceDataRaw(t *testing.T, schema map[string]*Schema, raw map[string]interface{}) *ResourceData + func (d *ResourceData) ConnInfo() map[string]string + func (d *ResourceData) Get(key string) interface{} + func (d *ResourceData) GetChange(key string) (interface{}, interface{}) + func (d *ResourceData) GetOk(key string) (interface{}, bool) + func (d *ResourceData) GetOkExists(key string) (interface{}, bool) + func (d *ResourceData) GetProviderMeta(dst interface{}) error + func (d *ResourceData) HasChange(key string) bool + func (d *ResourceData) Id() string + func (d *ResourceData) IsNewResource() bool + func (d *ResourceData) MarkNewResource() + func (d *ResourceData) Partial(on bool) + func (d *ResourceData) Set(key string, value interface{}) error + func (d *ResourceData) SetConnInfo(v map[string]string) + func (d *ResourceData) SetId(v string) + func (d *ResourceData) SetPartial(k string) + func (d *ResourceData) SetType(t string) + func (d *ResourceData) State() *terraform.InstanceState + func (d *ResourceData) Timeout(key string) time.Duration + func (d *ResourceData) UnsafeSetFieldRaw(key string, value string) + type ResourceDiff struct + func (d *ResourceDiff) Clear(key string) error + func (d *ResourceDiff) ForceNew(key string) error + func (d *ResourceDiff) Get(key string) interface{} + func (d *ResourceDiff) GetChange(key string) (interface{}, interface{}) + func (d *ResourceDiff) GetChangedKeysPrefix(prefix string) []string + func (d *ResourceDiff) GetOk(key string) (interface{}, bool) + func (d *ResourceDiff) GetOkExists(key string) (interface{}, bool) + func (d *ResourceDiff) HasChange(key string) bool + func (d *ResourceDiff) Id() string + func (d *ResourceDiff) NewValueKnown(key string) bool + func (d *ResourceDiff) SetNew(key string, value interface{}) error + func (d *ResourceDiff) SetNewComputed(key string) error + func (d *ResourceDiff) UpdatedKeys() []string + type ResourceImporter struct + State StateFunc + func (r *ResourceImporter) InternalValidate() error + type ResourceTimeout struct + Create *time.Duration + Default *time.Duration + Delete *time.Duration + Read *time.Duration + Update *time.Duration + func (t *ResourceTimeout) ConfigDecode(s *Resource, c *terraform.ResourceConfig) error + func (t *ResourceTimeout) DiffDecode(is *terraform.InstanceDiff) error + func (t *ResourceTimeout) DiffEncode(id *terraform.InstanceDiff) error + func (t *ResourceTimeout) StateDecode(id *terraform.InstanceState) error + func (t *ResourceTimeout) StateEncode(is *terraform.InstanceState) error + type Schema struct + Computed bool + ComputedWhen []string + ConfigMode SchemaConfigMode + ConflictsWith []string + Default interface{} + DefaultFunc SchemaDefaultFunc + Deprecated string + Description string + DiffSuppressFunc SchemaDiffSuppressFunc + Elem interface{} + ForceNew bool + InputDefault string + MaxItems int + MinItems int + Optional bool + PromoteSingle bool + Removed string + Required bool + Sensitive bool + Set SchemaSetFunc + StateFunc SchemaStateFunc + Type ValueType + ValidateFunc SchemaValidateFunc + func SchemasForFlatmapPath(path string, schemaMap map[string]*Schema) []*Schema + func (s *Schema) DefaultValue() (interface{}, error) + func (s *Schema) GoString() string + func (s *Schema) ZeroValue() interface{} + type SchemaConfigMode int + const SchemaConfigModeAttr + const SchemaConfigModeAuto + const SchemaConfigModeBlock + type SchemaDefaultFunc func() (interface{}, error) + func EnvDefaultFunc(k string, dv interface{}) SchemaDefaultFunc + func MultiEnvDefaultFunc(ks []string, dv interface{}) SchemaDefaultFunc + type SchemaDiffSuppressFunc func(k, old, new string, d *ResourceData) bool + type SchemaSetFunc func(interface{}) int + func HashResource(resource *Resource) SchemaSetFunc + func HashSchema(schema *Schema) SchemaSetFunc + type SchemaStateFunc func(interface{}) string + type SchemaValidateFunc func(interface{}, string) ([]string, []error) + type Set struct + F SchemaSetFunc + func CopySet(otherSet *Set) *Set + func NewSet(f SchemaSetFunc, items []interface{}) *Set + func (s *Set) Add(item interface{}) + func (s *Set) Contains(item interface{}) bool + func (s *Set) Difference(other *Set) *Set + func (s *Set) Equal(raw interface{}) bool + func (s *Set) GoString() string + func (s *Set) HashEqual(raw interface{}) bool + func (s *Set) Intersection(other *Set) *Set + func (s *Set) Len() int + func (s *Set) List() []interface{} + func (s *Set) Remove(item interface{}) + func (s *Set) Union(other *Set) *Set + type StateFunc func(*ResourceData, interface{}) ([]*ResourceData, error) + type StateMigrateFunc func(int, *terraform.InstanceState, interface{}) (*terraform.InstanceState, error) + type StateUpgradeFunc func(rawState map[string]interface{}, meta interface{}) (map[string]interface{}, error) + type StateUpgrader struct + Type cty.Type + Upgrade StateUpgradeFunc + Version int + type UpdateFunc func(*ResourceData, interface{}) error + type ValueType int + const TypeBool + const TypeFloat + const TypeInt + const TypeInvalid + const TypeList + const TypeMap + const TypeSet + const TypeString + func (i ValueType) String() string + func (t ValueType) Zero() interface{}