Documentation ¶
Index ¶
- func HcpProvider_IsConstruct(x interface{}) *bool
- func HcpProvider_IsTerraformElement(x interface{}) *bool
- func HcpProvider_IsTerraformProvider(x interface{}) *bool
- func HcpProvider_TfResourceType() *string
- func NewHcpProvider_Override(h HcpProvider, scope constructs.Construct, id *string, ...)
- type HcpProvider
- type HcpProviderConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HcpProvider_IsConstruct ¶
func HcpProvider_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 HcpProvider_IsTerraformElement ¶
func HcpProvider_IsTerraformElement(x interface{}) *bool
Experimental.
func HcpProvider_IsTerraformProvider ¶
func HcpProvider_IsTerraformProvider(x interface{}) *bool
Experimental.
func HcpProvider_TfResourceType ¶
func HcpProvider_TfResourceType() *string
func NewHcpProvider_Override ¶
func NewHcpProvider_Override(h HcpProvider, scope constructs.Construct, id *string, config *HcpProviderConfig)
Create a new {@link https://registry.terraform.io/providers/hashicorp/hcp/0.67.0/docs hcp} Resource.
Types ¶
type HcpProvider ¶
type HcpProvider interface { cdktf.TerraformProvider Alias() *string SetAlias(val *string) AliasInput() *string // Experimental. CdktfStack() cdktf.TerraformStack ClientId() *string SetClientId(val *string) ClientIdInput() *string ClientSecret() *string SetClientSecret(val *string) ClientSecretInput() *string // Experimental. ConstructNodeMetadata() *map[string]interface{} // Experimental. Fqn() *string // Experimental. FriendlyUniqueId() *string // Experimental. MetaAttributes() *map[string]interface{} // The tree node. Node() constructs.Node ProjectId() *string SetProjectId(val *string) ProjectIdInput() *string // 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() ResetClientId() ResetClientSecret() // Resets a previously passed logical Id to use the auto-generated logical id again. // Experimental. ResetOverrideLogicalId() ResetProjectId() 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://registry.terraform.io/providers/hashicorp/hcp/0.67.0/docs hcp}.
func NewHcpProvider ¶
func NewHcpProvider(scope constructs.Construct, id *string, config *HcpProviderConfig) HcpProvider
Create a new {@link https://registry.terraform.io/providers/hashicorp/hcp/0.67.0/docs hcp} Resource.
type HcpProviderConfig ¶
type HcpProviderConfig struct { // Alias name. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/hcp/0.67.0/docs#alias HcpProvider#alias} Alias *string `field:"optional" json:"alias" yaml:"alias"` // The OAuth2 Client ID for API operations. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/hcp/0.67.0/docs#client_id HcpProvider#client_id} ClientId *string `field:"optional" json:"clientId" yaml:"clientId"` // The OAuth2 Client Secret for API operations. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/hcp/0.67.0/docs#client_secret HcpProvider#client_secret} ClientSecret *string `field:"optional" json:"clientSecret" yaml:"clientSecret"` // The default project in which resources should be created. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/hcp/0.67.0/docs#project_id HcpProvider#project_id} ProjectId *string `field:"optional" json:"projectId" yaml:"projectId"` }