Documentation ¶
Index ¶
- func NewRaftAutopilot_Override(r RaftAutopilot, scope constructs.Construct, id *string, ...)
- func RaftAutopilot_IsConstruct(x interface{}) *bool
- func RaftAutopilot_IsTerraformElement(x interface{}) *bool
- func RaftAutopilot_IsTerraformResource(x interface{}) *bool
- func RaftAutopilot_TfResourceType() *string
- type RaftAutopilot
- type RaftAutopilotConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRaftAutopilot_Override ¶
func NewRaftAutopilot_Override(r RaftAutopilot, scope constructs.Construct, id *string, config *RaftAutopilotConfig)
Create a new {@link https://www.terraform.io/docs/providers/vault/r/raft_autopilot vault_raft_autopilot} Resource.
func RaftAutopilot_IsConstruct ¶
func RaftAutopilot_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 RaftAutopilot_IsTerraformElement ¶
func RaftAutopilot_IsTerraformElement(x interface{}) *bool
Experimental.
func RaftAutopilot_IsTerraformResource ¶
func RaftAutopilot_IsTerraformResource(x interface{}) *bool
Experimental.
func RaftAutopilot_TfResourceType ¶
func RaftAutopilot_TfResourceType() *string
Types ¶
type RaftAutopilot ¶
type RaftAutopilot interface { cdktf.TerraformResource // Experimental. CdktfStack() cdktf.TerraformStack CleanupDeadServers() interface{} SetCleanupDeadServers(val interface{}) CleanupDeadServersInput() interface{} // Experimental. Connection() interface{} // Experimental. SetConnection(val interface{}) // Experimental. ConstructNodeMetadata() *map[string]interface{} // Experimental. Count() *float64 // Experimental. SetCount(val *float64) DeadServerLastContactThreshold() *string SetDeadServerLastContactThreshold(val *string) DeadServerLastContactThresholdInput() *string // Experimental. DependsOn() *[]*string // Experimental. SetDependsOn(val *[]*string) DisableUpgradeMigration() interface{} SetDisableUpgradeMigration(val interface{}) DisableUpgradeMigrationInput() interface{} // Experimental. ForEach() cdktf.ITerraformIterator // Experimental. SetForEach(val cdktf.ITerraformIterator) // Experimental. Fqn() *string // Experimental. FriendlyUniqueId() *string Id() *string SetId(val *string) IdInput() *string LastContactThreshold() *string SetLastContactThreshold(val *string) LastContactThresholdInput() *string // Experimental. Lifecycle() *cdktf.TerraformResourceLifecycle // Experimental. SetLifecycle(val *cdktf.TerraformResourceLifecycle) MaxTrailingLogs() *float64 SetMaxTrailingLogs(val *float64) MaxTrailingLogsInput() *float64 MinQuorum() *float64 SetMinQuorum(val *float64) MinQuorumInput() *float64 Namespace() *string SetNamespace(val *string) NamespaceInput() *string // The tree node. Node() constructs.Node // Experimental. Provider() cdktf.TerraformProvider // Experimental. SetProvider(val cdktf.TerraformProvider) // Experimental. Provisioners() *[]interface{} // Experimental. SetProvisioners(val *[]interface{}) // Experimental. RawOverrides() interface{} ServerStabilizationTime() *string SetServerStabilizationTime(val *string) ServerStabilizationTimeInput() *string // 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) ResetCleanupDeadServers() ResetDeadServerLastContactThreshold() ResetDisableUpgradeMigration() ResetId() ResetLastContactThreshold() ResetMaxTrailingLogs() ResetMinQuorum() ResetNamespace() // Resets a previously passed logical Id to use the auto-generated logical id again. // Experimental. ResetOverrideLogicalId() ResetServerStabilizationTime() 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/vault/r/raft_autopilot vault_raft_autopilot}.
func NewRaftAutopilot ¶
func NewRaftAutopilot(scope constructs.Construct, id *string, config *RaftAutopilotConfig) RaftAutopilot
Create a new {@link https://www.terraform.io/docs/providers/vault/r/raft_autopilot vault_raft_autopilot} Resource.
type RaftAutopilotConfig ¶
type RaftAutopilotConfig struct { // Experimental. Connection interface{} `field:"optional" json:"connection" yaml:"connection"` // Experimental. Count *float64 `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"` // Specifies whether to remove dead server nodes periodically or when a new server joins. // // This requires that min-quorum is also set. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/vault/r/raft_autopilot#cleanup_dead_servers RaftAutopilot#cleanup_dead_servers} CleanupDeadServers interface{} `field:"optional" json:"cleanupDeadServers" yaml:"cleanupDeadServers"` // Limit the amount of time a server can go without leader contact before being considered failed. // // This only takes effect when cleanup_dead_servers is set. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/vault/r/raft_autopilot#dead_server_last_contact_threshold RaftAutopilot#dead_server_last_contact_threshold} DeadServerLastContactThreshold *string `field:"optional" json:"deadServerLastContactThreshold" yaml:"deadServerLastContactThreshold"` // Disables automatically upgrading Vault using autopilot. (Enterprise-only). // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/vault/r/raft_autopilot#disable_upgrade_migration RaftAutopilot#disable_upgrade_migration} DisableUpgradeMigration interface{} `field:"optional" json:"disableUpgradeMigration" yaml:"disableUpgradeMigration"` // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/vault/r/raft_autopilot#id RaftAutopilot#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"` // Limit the amount of time a server can go without leader contact before being considered unhealthy. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/vault/r/raft_autopilot#last_contact_threshold RaftAutopilot#last_contact_threshold} LastContactThreshold *string `field:"optional" json:"lastContactThreshold" yaml:"lastContactThreshold"` // Maximum number of log entries in the Raft log that a server can be behind its leader before being considered unhealthy. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/vault/r/raft_autopilot#max_trailing_logs RaftAutopilot#max_trailing_logs} MaxTrailingLogs *float64 `field:"optional" json:"maxTrailingLogs" yaml:"maxTrailingLogs"` // Minimum number of servers allowed in a cluster before autopilot can prune dead servers. // // This should at least be 3. Applicable only for voting nodes. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/vault/r/raft_autopilot#min_quorum RaftAutopilot#min_quorum} MinQuorum *float64 `field:"optional" json:"minQuorum" yaml:"minQuorum"` // Target namespace. (requires Enterprise). // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/vault/r/raft_autopilot#namespace RaftAutopilot#namespace} Namespace *string `field:"optional" json:"namespace" yaml:"namespace"` // Minimum amount of time a server must be stable in the 'healthy' state before being added to the cluster. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/vault/r/raft_autopilot#server_stabilization_time RaftAutopilot#server_stabilization_time} ServerStabilizationTime *string `field:"optional" json:"serverStabilizationTime" yaml:"serverStabilizationTime"` }