Documentation ¶
Index ¶
- func ConsulCluster_IsConstruct(x interface{}) *bool
- func ConsulCluster_IsTerraformElement(x interface{}) *bool
- func ConsulCluster_IsTerraformResource(x interface{}) *bool
- func ConsulCluster_TfResourceType() *string
- func NewConsulClusterIpAllowlistStructList_Override(c ConsulClusterIpAllowlistStructList, ...)
- func NewConsulClusterIpAllowlistStructOutputReference_Override(c ConsulClusterIpAllowlistStructOutputReference, ...)
- func NewConsulClusterTimeoutsOutputReference_Override(c ConsulClusterTimeoutsOutputReference, ...)
- func NewConsulCluster_Override(c ConsulCluster, scope constructs.Construct, id *string, ...)
- type ConsulCluster
- type ConsulClusterConfig
- type ConsulClusterIpAllowlistStruct
- type ConsulClusterIpAllowlistStructList
- type ConsulClusterIpAllowlistStructOutputReference
- type ConsulClusterTimeouts
- type ConsulClusterTimeoutsOutputReference
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConsulCluster_IsConstruct ¶
func ConsulCluster_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 ConsulCluster_IsTerraformElement ¶
func ConsulCluster_IsTerraformElement(x interface{}) *bool
Experimental.
func ConsulCluster_IsTerraformResource ¶
func ConsulCluster_IsTerraformResource(x interface{}) *bool
Experimental.
func ConsulCluster_TfResourceType ¶
func ConsulCluster_TfResourceType() *string
func NewConsulClusterIpAllowlistStructList_Override ¶
func NewConsulClusterIpAllowlistStructList_Override(c ConsulClusterIpAllowlistStructList, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, wrapsSet *bool)
func NewConsulClusterIpAllowlistStructOutputReference_Override ¶
func NewConsulClusterIpAllowlistStructOutputReference_Override(c ConsulClusterIpAllowlistStructOutputReference, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, complexObjectIndex *float64, complexObjectIsFromSet *bool)
func NewConsulClusterTimeoutsOutputReference_Override ¶
func NewConsulClusterTimeoutsOutputReference_Override(c ConsulClusterTimeoutsOutputReference, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string)
func NewConsulCluster_Override ¶
func NewConsulCluster_Override(c ConsulCluster, scope constructs.Construct, id *string, config *ConsulClusterConfig)
Create a new {@link https://registry.terraform.io/providers/hashicorp/hcp/0.67.0/docs/resources/consul_cluster hcp_consul_cluster} Resource.
Types ¶
type ConsulCluster ¶
type ConsulCluster interface { cdktf.TerraformResource AutoHvnToHvnPeering() interface{} SetAutoHvnToHvnPeering(val interface{}) AutoHvnToHvnPeeringInput() interface{} // Experimental. CdktfStack() cdktf.TerraformStack CloudProvider() *string ClusterId() *string SetClusterId(val *string) ClusterIdInput() *string ConnectEnabled() interface{} SetConnectEnabled(val interface{}) ConnectEnabledInput() interface{} // Experimental. Connection() interface{} // Experimental. SetConnection(val interface{}) // Experimental. ConstructNodeMetadata() *map[string]interface{} ConsulAutomaticUpgrades() cdktf.IResolvable ConsulCaFile() *string ConsulConfigFile() *string ConsulPrivateEndpointUrl() *string ConsulPublicEndpointUrl() *string ConsulRootTokenAccessorId() *string ConsulRootTokenSecretId() *string ConsulSnapshotInterval() *string ConsulSnapshotRetention() *string ConsulVersion() *string // Experimental. Count() interface{} // Experimental. SetCount(val interface{}) Datacenter() *string SetDatacenter(val *string) DatacenterInput() *string // Experimental. DependsOn() *[]*string // Experimental. SetDependsOn(val *[]*string) // Experimental. ForEach() cdktf.ITerraformIterator // Experimental. SetForEach(val cdktf.ITerraformIterator) // Experimental. Fqn() *string // Experimental. FriendlyUniqueId() *string HvnId() *string SetHvnId(val *string) HvnIdInput() *string Id() *string SetId(val *string) IdInput() *string IpAllowlist() ConsulClusterIpAllowlistStructList IpAllowlistInput() interface{} // Experimental. Lifecycle() *cdktf.TerraformResourceLifecycle // Experimental. SetLifecycle(val *cdktf.TerraformResourceLifecycle) MinConsulVersion() *string SetMinConsulVersion(val *string) MinConsulVersionInput() *string // The tree node. Node() constructs.Node OrganizationId() *string PrimaryLink() *string SetPrimaryLink(val *string) PrimaryLinkInput() *string ProjectId() *string SetProjectId(val *string) ProjectIdInput() *string // Experimental. Provider() cdktf.TerraformProvider // Experimental. SetProvider(val cdktf.TerraformProvider) // Experimental. Provisioners() *[]interface{} // Experimental. SetProvisioners(val *[]interface{}) PublicEndpoint() interface{} SetPublicEndpoint(val interface{}) PublicEndpointInput() interface{} // Experimental. RawOverrides() interface{} Region() *string Scale() *float64 SelfLink() *string Size() *string SetSize(val *string) SizeInput() *string State() *string // Experimental. TerraformGeneratorMetadata() *cdktf.TerraformProviderGeneratorMetadata // Experimental. TerraformMetaArguments() *map[string]interface{} // Experimental. TerraformResourceType() *string Tier() *string SetTier(val *string) TierInput() *string Timeouts() ConsulClusterTimeoutsOutputReference TimeoutsInput() interface{} // 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) PutIpAllowlist(value interface{}) PutTimeouts(value *ConsulClusterTimeouts) ResetAutoHvnToHvnPeering() ResetConnectEnabled() ResetDatacenter() ResetId() ResetIpAllowlist() ResetMinConsulVersion() // Resets a previously passed logical Id to use the auto-generated logical id again. // Experimental. ResetOverrideLogicalId() ResetPrimaryLink() ResetProjectId() ResetPublicEndpoint() ResetSize() ResetTimeouts() 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/resources/consul_cluster hcp_consul_cluster}.
func NewConsulCluster ¶
func NewConsulCluster(scope constructs.Construct, id *string, config *ConsulClusterConfig) ConsulCluster
Create a new {@link https://registry.terraform.io/providers/hashicorp/hcp/0.67.0/docs/resources/consul_cluster hcp_consul_cluster} Resource.
type ConsulClusterConfig ¶
type ConsulClusterConfig struct { // Experimental. Connection interface{} `field:"optional" json:"connection" yaml:"connection"` // Experimental. Count interface{} `field:"optional" json:"count" yaml:"count"` // Experimental. DependsOn *[]cdktf.ITerraformDependable `field:"optional" json:"dependsOn" yaml:"dependsOn"` // Experimental. ForEach cdktf.ITerraformIterator `field:"optional" json:"forEach" yaml:"forEach"` // Experimental. Lifecycle *cdktf.TerraformResourceLifecycle `field:"optional" json:"lifecycle" yaml:"lifecycle"` // Experimental. Provider cdktf.TerraformProvider `field:"optional" json:"provider" yaml:"provider"` // Experimental. Provisioners *[]interface{} `field:"optional" json:"provisioners" yaml:"provisioners"` // The ID of the HCP Consul cluster. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/hcp/0.67.0/docs/resources/consul_cluster#cluster_id ConsulCluster#cluster_id} ClusterId *string `field:"required" json:"clusterId" yaml:"clusterId"` // The ID of the HVN this HCP Consul cluster is associated to. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/hcp/0.67.0/docs/resources/consul_cluster#hvn_id ConsulCluster#hvn_id} HvnId *string `field:"required" json:"hvnId" yaml:"hvnId"` // The tier that the HCP Consul cluster will be provisioned as. // // Only `development`, `standard`, `plus`, and `premium` are available at this time. See [pricing information](https://www.hashicorp.com/products/consul/pricing). // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/hcp/0.67.0/docs/resources/consul_cluster#tier ConsulCluster#tier} Tier *string `field:"required" json:"tier" yaml:"tier"` // Enables automatic HVN to HVN peering when creating a secondary cluster in a federation. // // The alternative to using the auto-accept feature is to create an [`hcp_hvn_peering_connection`](hvn_peering_connection.md) resource that explicitly defines the HVN resources that are allowed to communicate with each other. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/hcp/0.67.0/docs/resources/consul_cluster#auto_hvn_to_hvn_peering ConsulCluster#auto_hvn_to_hvn_peering} AutoHvnToHvnPeering interface{} `field:"optional" json:"autoHvnToHvnPeering" yaml:"autoHvnToHvnPeering"` // Denotes the Consul connect feature should be enabled for this cluster. Default to true. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/hcp/0.67.0/docs/resources/consul_cluster#connect_enabled ConsulCluster#connect_enabled} ConnectEnabled interface{} `field:"optional" json:"connectEnabled" yaml:"connectEnabled"` // The Consul data center name of the cluster. If not specified, it is defaulted to the value of `cluster_id`. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/hcp/0.67.0/docs/resources/consul_cluster#datacenter ConsulCluster#datacenter} Datacenter *string `field:"optional" json:"datacenter" yaml:"datacenter"` // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/hcp/0.67.0/docs/resources/consul_cluster#id ConsulCluster#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"` // ip_allowlist block. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/hcp/0.67.0/docs/resources/consul_cluster#ip_allowlist ConsulCluster#ip_allowlist} IpAllowlist interface{} `field:"optional" json:"ipAllowlist" yaml:"ipAllowlist"` // The minimum Consul patch version of the cluster. // // Allows only the rightmost version component to increment (E.g: `1.13.0` will allow installation of `1.13.2` and `1.13.3` etc., but not `1.14.0`). If not specified, it is defaulted to the version that is currently recommended by HCP. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/hcp/0.67.0/docs/resources/consul_cluster#min_consul_version ConsulCluster#min_consul_version} MinConsulVersion *string `field:"optional" json:"minConsulVersion" yaml:"minConsulVersion"` // The `self_link` of the HCP Consul cluster which is the primary in the federation setup with this HCP Consul cluster. // // If not specified, it is a standalone cluster. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/hcp/0.67.0/docs/resources/consul_cluster#primary_link ConsulCluster#primary_link} PrimaryLink *string `field:"optional" json:"primaryLink" yaml:"primaryLink"` // The ID of the HCP project where the HCP Consul cluster is located. // // If not specified, the project specified in the HCP Provider config block will be used, if configured. // If a project is not configured in the HCP Provider config block, the oldest project in the organization will be used. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/hcp/0.67.0/docs/resources/consul_cluster#project_id ConsulCluster#project_id} ProjectId *string `field:"optional" json:"projectId" yaml:"projectId"` // Denotes that the cluster has a public endpoint for the Consul UI. Defaults to false. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/hcp/0.67.0/docs/resources/consul_cluster#public_endpoint ConsulCluster#public_endpoint} PublicEndpoint interface{} `field:"optional" json:"publicEndpoint" yaml:"publicEndpoint"` // The t-shirt size representation of each server VM that this Consul cluster is provisioned with. // // Valid option for development tier - `x_small`. Valid options for other tiers - `small`, `medium`, `large`. For more details - https://cloud.hashicorp.com/pricing/consul. Upgrading the size of a cluster after creation is allowed. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/hcp/0.67.0/docs/resources/consul_cluster#size ConsulCluster#size} Size *string `field:"optional" json:"size" yaml:"size"` // timeouts block. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/hcp/0.67.0/docs/resources/consul_cluster#timeouts ConsulCluster#timeouts} Timeouts *ConsulClusterTimeouts `field:"optional" json:"timeouts" yaml:"timeouts"` }
type ConsulClusterIpAllowlistStruct ¶
type ConsulClusterIpAllowlistStruct struct { // IP address range in CIDR notation. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/hcp/0.67.0/docs/resources/consul_cluster#address ConsulCluster#address} Address *string `field:"required" json:"address" yaml:"address"` // Description to help identify source (maximum 255 chars). // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/hcp/0.67.0/docs/resources/consul_cluster#description ConsulCluster#description} Description *string `field:"optional" json:"description" yaml:"description"` }
type ConsulClusterIpAllowlistStructList ¶
type ConsulClusterIpAllowlistStructList interface { cdktf.ComplexList // The creation stack of this resolvable which will be appended to errors thrown during resolution. // // If this returns an empty array the stack will not be attached. // Experimental. CreationStack() *[]*string // Experimental. Fqn() *string InternalValue() interface{} SetInternalValue(val interface{}) // The attribute on the parent resource this class is referencing. TerraformAttribute() *string SetTerraformAttribute(val *string) // The parent resource. TerraformResource() cdktf.IInterpolatingParent SetTerraformResource(val cdktf.IInterpolatingParent) // whether the list is wrapping a set (will add tolist() to be able to access an item via an index). WrapsSet() *bool SetWrapsSet(val *bool) // Experimental. ComputeFqn() *string Get(index *float64) ConsulClusterIpAllowlistStructOutputReference // Produce the Token's value at resolution time. // Experimental. Resolve(_context cdktf.IResolveContext) interface{} // Return a string representation of this resolvable object. // // Returns a reversible string representation. // Experimental. ToString() *string }
func NewConsulClusterIpAllowlistStructList ¶
func NewConsulClusterIpAllowlistStructList(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, wrapsSet *bool) ConsulClusterIpAllowlistStructList
type ConsulClusterIpAllowlistStructOutputReference ¶
type ConsulClusterIpAllowlistStructOutputReference interface { cdktf.ComplexObject Address() *string SetAddress(val *string) AddressInput() *string // the index of the complex object in a list. // Experimental. ComplexObjectIndex() interface{} // Experimental. SetComplexObjectIndex(val interface{}) // set to true if this item is from inside a set and needs tolist() for accessing it set to "0" for single list items. // Experimental. ComplexObjectIsFromSet() *bool // Experimental. SetComplexObjectIsFromSet(val *bool) // The creation stack of this resolvable which will be appended to errors thrown during resolution. // // If this returns an empty array the stack will not be attached. // Experimental. CreationStack() *[]*string Description() *string SetDescription(val *string) DescriptionInput() *string // Experimental. Fqn() *string InternalValue() interface{} SetInternalValue(val interface{}) // Experimental. TerraformAttribute() *string // Experimental. SetTerraformAttribute(val *string) // Experimental. TerraformResource() cdktf.IInterpolatingParent // Experimental. SetTerraformResource(val cdktf.IInterpolatingParent) // Experimental. ComputeFqn() *string // 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. InterpolationAsList() cdktf.IResolvable // Experimental. InterpolationForAttribute(property *string) cdktf.IResolvable ResetDescription() // Produce the Token's value at resolution time. // Experimental. Resolve(_context cdktf.IResolveContext) interface{} // Return a string representation of this resolvable object. // // Returns a reversible string representation. // Experimental. ToString() *string }
func NewConsulClusterIpAllowlistStructOutputReference ¶
func NewConsulClusterIpAllowlistStructOutputReference(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, complexObjectIndex *float64, complexObjectIsFromSet *bool) ConsulClusterIpAllowlistStructOutputReference
type ConsulClusterTimeouts ¶
type ConsulClusterTimeouts struct { // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/hcp/0.67.0/docs/resources/consul_cluster#create ConsulCluster#create}. Create *string `field:"optional" json:"create" yaml:"create"` // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/hcp/0.67.0/docs/resources/consul_cluster#default ConsulCluster#default}. Default *string `field:"optional" json:"default" yaml:"default"` // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/hcp/0.67.0/docs/resources/consul_cluster#delete ConsulCluster#delete}. Delete *string `field:"optional" json:"delete" yaml:"delete"` // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/hcp/0.67.0/docs/resources/consul_cluster#update ConsulCluster#update}. Update *string `field:"optional" json:"update" yaml:"update"` }
type ConsulClusterTimeoutsOutputReference ¶
type ConsulClusterTimeoutsOutputReference interface { cdktf.ComplexObject // the index of the complex object in a list. // Experimental. ComplexObjectIndex() interface{} // Experimental. SetComplexObjectIndex(val interface{}) // set to true if this item is from inside a set and needs tolist() for accessing it set to "0" for single list items. // Experimental. ComplexObjectIsFromSet() *bool // Experimental. SetComplexObjectIsFromSet(val *bool) Create() *string SetCreate(val *string) CreateInput() *string // The creation stack of this resolvable which will be appended to errors thrown during resolution. // // If this returns an empty array the stack will not be attached. // Experimental. CreationStack() *[]*string Default() *string SetDefault(val *string) DefaultInput() *string Delete() *string SetDelete(val *string) DeleteInput() *string // Experimental. Fqn() *string InternalValue() interface{} SetInternalValue(val interface{}) // Experimental. TerraformAttribute() *string // Experimental. SetTerraformAttribute(val *string) // Experimental. TerraformResource() cdktf.IInterpolatingParent // Experimental. SetTerraformResource(val cdktf.IInterpolatingParent) Update() *string SetUpdate(val *string) UpdateInput() *string // Experimental. ComputeFqn() *string // 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. InterpolationAsList() cdktf.IResolvable // Experimental. InterpolationForAttribute(property *string) cdktf.IResolvable ResetCreate() ResetDefault() ResetDelete() ResetUpdate() // Produce the Token's value at resolution time. // Experimental. Resolve(_context cdktf.IResolveContext) interface{} // Return a string representation of this resolvable object. // // Returns a reversible string representation. // Experimental. ToString() *string }
func NewConsulClusterTimeoutsOutputReference ¶
func NewConsulClusterTimeoutsOutputReference(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string) ConsulClusterTimeoutsOutputReference
Source Files ¶
- ConsulCluster.go
- ConsulClusterConfig.go
- ConsulClusterIpAllowlistStruct.go
- ConsulClusterIpAllowlistStructList.go
- ConsulClusterIpAllowlistStructList__checks.go
- ConsulClusterIpAllowlistStructOutputReference.go
- ConsulClusterIpAllowlistStructOutputReference__checks.go
- ConsulClusterTimeouts.go
- ConsulClusterTimeoutsOutputReference.go
- ConsulClusterTimeoutsOutputReference__checks.go
- ConsulCluster__checks.go
- main.go