Interface TerraformInjectorCommon
Methods
backend
Type Parameters
TerraformBackendType extends TerraformBackend<TerraformBackendType>
PropsType
SharedType = undefined
Parameters
Optional description: string
onNewElementInjected
Parameters
onNewElementInjectedCallback: ((element: TerraformElement) => void)
- (element: TerraformElement): void
Parameters
element: TerraformElement
Returns void
provide
- provide<TerraformElementType, ConfigType, SharedType>(terraformElementClass: TerraformInjectorElementClassType<TerraformElementType, ConfigType>, id: string, configure: TerraformInjectorConfigureCallbackType<ConfigType, SharedType> | TerraformInjectorConfigureCallbackAsyncType<ConfigType, SharedType>, useDefaultConfig?: boolean, description?: string): TerraformInjectorElementContainerAsync<TerraformElementType, SharedType>
Type Parameters
TerraformElementType extends TerraformElement<TerraformElementType>
ConfigType
SharedType = undefined
Parameters
id: string
Optional useDefaultConfig: boolean
Optional description: string
provideLazily
- provideLazily<NestedTerraformElementType, NestedConfigType, NestedSharedType, SharedType>(nestedTerraformElementClass: TerraformInjectorElementClassType<NestedTerraformElementType, NestedConfigType>, id: string, configure: TerraformInjectorNestedConfigureCallbackAsyncType<NestedConfigType, NestedSharedType, SharedType> | TerraformInjectorNestedConfigureCallbackType<NestedConfigType, NestedSharedType, SharedType>, useDefaultConfig?: boolean, description?: string): TerraformInjectorElementContainerAsync<TerraformLazyElementAsync<NestedTerraformElementType, NestedConfigType, NestedSharedType>, SharedType> | TerraformInjectorElementContainer<TerraformLazyElement<NestedTerraformElementType, NestedConfigType, NestedSharedType>, SharedType>
Type Parameters
NestedTerraformElementType extends TerraformElement<NestedTerraformElementType>
NestedConfigType
NestedSharedType = undefined
SharedType = undefined
Parameters
nestedTerraformElementClass: TerraformInjectorElementClassType<NestedTerraformElementType, NestedConfigType>
id: string
Optional useDefaultConfig: boolean
Optional description: string
setDefaultConfigure
- setDefaultConfigure(defaultConfigure: ((id: string, className: string, description?: string) => {})): TerraformInjectorCommon
Parameters
defaultConfigure: ((id: string, className: string, description?: string) => {})
- (id: string, className: string, description?: string): {}
Parameters
id: string
className: string
Optional description: string
Returns {}
Terraform DI class interface.
You can provide any elements inheriting
TerraformElement
withprovide
method.And there is a special
backend
method only for providing anTerraformBackend
element.You can later inject all the dependencies below the scope level of the instance by using
inject
method.