Documentation
¶
Overview ¶
Prebuilt null Provider for Terraform CDK (cdktf)
Index ¶
- func DataNullDataSource_IsConstruct(x interface{}) *bool
- func DataNullDataSource_TfResourceType() *string
- func NewDataNullDataSource_Override(d DataNullDataSource, scope constructs.Construct, id *string, ...)
- func NewNullProvider_Override(n NullProvider, scope constructs.Construct, id *string, ...)
- func NewResource_Override(r Resource, scope constructs.Construct, id *string, config *ResourceConfig)
- func NullProvider_IsConstruct(x interface{}) *bool
- func NullProvider_TfResourceType() *string
- func Resource_IsConstruct(x interface{}) *bool
- func Resource_TfResourceType() *string
- type DataNullDataSource
- type DataNullDataSourceConfig
- type NullProvider
- type NullProviderConfig
- type Resource
- type ResourceConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DataNullDataSource_IsConstruct ¶
func DataNullDataSource_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func DataNullDataSource_TfResourceType ¶
func DataNullDataSource_TfResourceType() *string
func NewDataNullDataSource_Override ¶
func NewDataNullDataSource_Override(d DataNullDataSource, scope constructs.Construct, id *string, config *DataNullDataSourceConfig)
Create a new {@link https://www.terraform.io/docs/providers/null/d/data_source null_data_source} Data Source.
func NewNullProvider_Override ¶
func NewNullProvider_Override(n NullProvider, scope constructs.Construct, id *string, config *NullProviderConfig)
Create a new {@link https://www.terraform.io/docs/providers/null null} Resource.
func NewResource_Override ¶
func NewResource_Override(r Resource, scope constructs.Construct, id *string, config *ResourceConfig)
Create a new {@link https://www.terraform.io/docs/providers/null/r/resource null_resource} Resource.
func NullProvider_IsConstruct ¶
func NullProvider_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func NullProvider_TfResourceType ¶
func NullProvider_TfResourceType() *string
func Resource_IsConstruct ¶
func Resource_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func Resource_TfResourceType ¶
func Resource_TfResourceType() *string
Types ¶
type DataNullDataSource ¶
type DataNullDataSource interface { cdktf.TerraformDataSource // Experimental. CdktfStack() cdktf.TerraformStack // Experimental. ConstructNodeMetadata() *map[string]interface{} // Experimental. Count() *float64 // Experimental. SetCount(val *float64) // Experimental. DependsOn() *[]*string // Experimental. SetDependsOn(val *[]*string) // Experimental. Fqn() *string // Experimental. FriendlyUniqueId() *string HasComputedDefault() *string SetHasComputedDefault(val *string) HasComputedDefaultInput() *string Id() *string SetId(val *string) IdInput() *string Inputs() *map[string]*string SetInputs(val *map[string]*string) InputsInput() *map[string]*string // Experimental. Lifecycle() *cdktf.TerraformResourceLifecycle // Experimental. SetLifecycle(val *cdktf.TerraformResourceLifecycle) // The tree node. Node() constructs.Node Outputs() cdktf.StringMap // Experimental. Provider() cdktf.TerraformProvider // Experimental. SetProvider(val cdktf.TerraformProvider) Random() *string // Experimental. RawOverrides() interface{} // Experimental. TerraformGeneratorMetadata() *cdktf.TerraformProviderGeneratorMetadata // Experimental. TerraformMetaArguments() *map[string]interface{} // Experimental. TerraformResourceType() *string // Experimental. AddOverride(path *string, value interface{}) // Experimental. GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. GetBooleanMapAttribute(terraformAttribute *string) *map[string]*bool // Experimental. GetListAttribute(terraformAttribute *string) *[]*string // Experimental. GetNumberAttribute(terraformAttribute *string) *float64 // Experimental. GetNumberListAttribute(terraformAttribute *string) *[]*float64 // Experimental. GetNumberMapAttribute(terraformAttribute *string) *map[string]*float64 // Experimental. GetStringAttribute(terraformAttribute *string) *string // Experimental. GetStringMapAttribute(terraformAttribute *string) *map[string]*string // Experimental. InterpolationForAttribute(terraformAttribute *string) cdktf.IResolvable // Overrides the auto-generated logical ID with a specific ID. // Experimental. OverrideLogicalId(newLogicalId *string) ResetHasComputedDefault() ResetId() ResetInputs() // Resets a previously passed logical Id to use the auto-generated logical id again. // Experimental. ResetOverrideLogicalId() SynthesizeAttributes() *map[string]interface{} // Experimental. ToMetadata() interface{} // Returns a string representation of this construct. ToString() *string // Adds this resource to the terraform JSON output. // Experimental. ToTerraform() interface{} }
Represents a {@link https://www.terraform.io/docs/providers/null/d/data_source null_data_source}.
func NewDataNullDataSource ¶
func NewDataNullDataSource(scope constructs.Construct, id *string, config *DataNullDataSourceConfig) DataNullDataSource
Create a new {@link https://www.terraform.io/docs/providers/null/d/data_source null_data_source} Data Source.
type DataNullDataSourceConfig ¶
type DataNullDataSourceConfig struct { // Experimental. Count *float64 `field:"optional" json:"count" yaml:"count"` // Experimental. DependsOn *[]cdktf.ITerraformDependable `field:"optional" json:"dependsOn" yaml:"dependsOn"` // Experimental. Lifecycle *cdktf.TerraformResourceLifecycle `field:"optional" json:"lifecycle" yaml:"lifecycle"` // Experimental. Provider cdktf.TerraformProvider `field:"optional" json:"provider" yaml:"provider"` // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/null/d/data_source#has_computed_default DataNullDataSource#has_computed_default}. HasComputedDefault *string `field:"optional" json:"hasComputedDefault" yaml:"hasComputedDefault"` // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/null/d/data_source#id DataNullDataSource#id}. // // Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. // If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable. Id *string `field:"optional" json:"id" yaml:"id"` // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/null/d/data_source#inputs DataNullDataSource#inputs}. Inputs *map[string]*string `field:"optional" json:"inputs" yaml:"inputs"` }
type NullProvider ¶
type NullProvider interface { cdktf.TerraformProvider Alias() *string SetAlias(val *string) AliasInput() *string // Experimental. CdktfStack() cdktf.TerraformStack // Experimental. ConstructNodeMetadata() *map[string]interface{} // Experimental. Fqn() *string // Experimental. FriendlyUniqueId() *string // Experimental. MetaAttributes() *map[string]interface{} // The tree node. Node() constructs.Node // Experimental. RawOverrides() interface{} // Experimental. TerraformGeneratorMetadata() *cdktf.TerraformProviderGeneratorMetadata // Experimental. TerraformProviderSource() *string // Experimental. TerraformResourceType() *string // Experimental. AddOverride(path *string, value interface{}) // Overrides the auto-generated logical ID with a specific ID. // Experimental. OverrideLogicalId(newLogicalId *string) ResetAlias() // Resets a previously passed logical Id to use the auto-generated logical id again. // Experimental. ResetOverrideLogicalId() SynthesizeAttributes() *map[string]interface{} // Experimental. ToMetadata() interface{} // Returns a string representation of this construct. ToString() *string // Adds this resource to the terraform JSON output. // Experimental. ToTerraform() interface{} }
Represents a {@link https://www.terraform.io/docs/providers/null null}.
func NewNullProvider ¶
func NewNullProvider(scope constructs.Construct, id *string, config *NullProviderConfig) NullProvider
Create a new {@link https://www.terraform.io/docs/providers/null null} Resource.
type NullProviderConfig ¶
type NullProviderConfig struct { // Alias name. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/null#alias NullProvider#alias} Alias *string `field:"optional" json:"alias" yaml:"alias"` }
type Resource ¶
type Resource interface { cdktf.TerraformResource // Experimental. CdktfStack() cdktf.TerraformStack // Experimental. ConstructNodeMetadata() *map[string]interface{} // Experimental. Count() *float64 // Experimental. SetCount(val *float64) // Experimental. DependsOn() *[]*string // Experimental. SetDependsOn(val *[]*string) // Experimental. Fqn() *string // Experimental. FriendlyUniqueId() *string Id() *string SetId(val *string) IdInput() *string // Experimental. Lifecycle() *cdktf.TerraformResourceLifecycle // Experimental. SetLifecycle(val *cdktf.TerraformResourceLifecycle) // The tree node. Node() constructs.Node // Experimental. Provider() cdktf.TerraformProvider // Experimental. SetProvider(val cdktf.TerraformProvider) // Experimental. RawOverrides() interface{} // Experimental. TerraformGeneratorMetadata() *cdktf.TerraformProviderGeneratorMetadata // Experimental. TerraformMetaArguments() *map[string]interface{} // Experimental. TerraformResourceType() *string Triggers() *map[string]*string SetTriggers(val *map[string]*string) TriggersInput() *map[string]*string // Experimental. AddOverride(path *string, value interface{}) // Experimental. GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. GetBooleanMapAttribute(terraformAttribute *string) *map[string]*bool // Experimental. GetListAttribute(terraformAttribute *string) *[]*string // Experimental. GetNumberAttribute(terraformAttribute *string) *float64 // Experimental. GetNumberListAttribute(terraformAttribute *string) *[]*float64 // Experimental. GetNumberMapAttribute(terraformAttribute *string) *map[string]*float64 // Experimental. GetStringAttribute(terraformAttribute *string) *string // Experimental. GetStringMapAttribute(terraformAttribute *string) *map[string]*string // Experimental. InterpolationForAttribute(terraformAttribute *string) cdktf.IResolvable // Overrides the auto-generated logical ID with a specific ID. // Experimental. OverrideLogicalId(newLogicalId *string) ResetId() // Resets a previously passed logical Id to use the auto-generated logical id again. // Experimental. ResetOverrideLogicalId() ResetTriggers() SynthesizeAttributes() *map[string]interface{} // Experimental. ToMetadata() interface{} // Returns a string representation of this construct. ToString() *string // Adds this resource to the terraform JSON output. // Experimental. ToTerraform() interface{} }
Represents a {@link https://www.terraform.io/docs/providers/null/r/resource null_resource}.
func NewResource ¶
func NewResource(scope constructs.Construct, id *string, config *ResourceConfig) Resource
Create a new {@link https://www.terraform.io/docs/providers/null/r/resource null_resource} Resource.
type ResourceConfig ¶
type ResourceConfig struct { // Experimental. Count *float64 `field:"optional" json:"count" yaml:"count"` // Experimental. DependsOn *[]cdktf.ITerraformDependable `field:"optional" json:"dependsOn" yaml:"dependsOn"` // Experimental. Lifecycle *cdktf.TerraformResourceLifecycle `field:"optional" json:"lifecycle" yaml:"lifecycle"` // Experimental. Provider cdktf.TerraformProvider `field:"optional" json:"provider" yaml:"provider"` // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/null/r/resource#id Resource#id}. // // Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. // If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable. Id *string `field:"optional" json:"id" yaml:"id"` // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/null/r/resource#triggers Resource#triggers}. Triggers *map[string]*string `field:"optional" json:"triggers" yaml:"triggers"` }