Documentation ¶
Index ¶
- func MagicWanIpsecTunnel_GenerateConfigForImport(scope constructs.Construct, importToId *string, importFromId *string, ...) cdktf.ImportableResource
- func MagicWanIpsecTunnel_IsConstruct(x interface{}) *bool
- func MagicWanIpsecTunnel_IsTerraformElement(x interface{}) *bool
- func MagicWanIpsecTunnel_IsTerraformResource(x interface{}) *bool
- func MagicWanIpsecTunnel_TfResourceType() *string
- func NewMagicWanIpsecTunnel_Override(m MagicWanIpsecTunnel, scope constructs.Construct, id *string, ...)
- type MagicWanIpsecTunnel
- type MagicWanIpsecTunnelConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MagicWanIpsecTunnel_GenerateConfigForImport ¶
func MagicWanIpsecTunnel_GenerateConfigForImport(scope constructs.Construct, importToId *string, importFromId *string, provider cdktf.TerraformProvider) cdktf.ImportableResource
Generates CDKTF code for importing a MagicWanIpsecTunnel resource upon running "cdktf plan <stack-name>".
func MagicWanIpsecTunnel_IsConstruct ¶
func MagicWanIpsecTunnel_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 MagicWanIpsecTunnel_IsTerraformElement ¶
func MagicWanIpsecTunnel_IsTerraformElement(x interface{}) *bool
Experimental.
func MagicWanIpsecTunnel_IsTerraformResource ¶
func MagicWanIpsecTunnel_IsTerraformResource(x interface{}) *bool
Experimental.
func MagicWanIpsecTunnel_TfResourceType ¶
func MagicWanIpsecTunnel_TfResourceType() *string
func NewMagicWanIpsecTunnel_Override ¶
func NewMagicWanIpsecTunnel_Override(m MagicWanIpsecTunnel, scope constructs.Construct, id *string, config *MagicWanIpsecTunnelConfig)
Create a new {@link https://registry.terraform.io/providers/cloudflare/cloudflare/4.42.0/docs/resources/magic_wan_ipsec_tunnel cloudflare_magic_wan_ipsec_tunnel} Resource.
Types ¶
type MagicWanIpsecTunnel ¶
type MagicWanIpsecTunnel interface { cdktf.TerraformResource AccountId() *string SetAccountId(val *string) AccountIdInput() *string AllowNullCipher() interface{} SetAllowNullCipher(val interface{}) AllowNullCipherInput() interface{} // Experimental. CdktfStack() cdktf.TerraformStack CloudflareEndpoint() *string SetCloudflareEndpoint(val *string) CloudflareEndpointInput() *string // Experimental. Connection() interface{} // Experimental. SetConnection(val interface{}) // Experimental. ConstructNodeMetadata() *map[string]interface{} // Experimental. Count() interface{} // Experimental. SetCount(val interface{}) CustomerEndpoint() *string SetCustomerEndpoint(val *string) CustomerEndpointInput() *string // Experimental. DependsOn() *[]*string // Experimental. SetDependsOn(val *[]*string) Description() *string SetDescription(val *string) DescriptionInput() *string // Experimental. ForEach() cdktf.ITerraformIterator // Experimental. SetForEach(val cdktf.ITerraformIterator) FqdnId() *string SetFqdnId(val *string) FqdnIdInput() *string // Experimental. Fqn() *string // Experimental. FriendlyUniqueId() *string HealthCheckDirection() *string SetHealthCheckDirection(val *string) HealthCheckDirectionInput() *string HealthCheckEnabled() interface{} SetHealthCheckEnabled(val interface{}) HealthCheckEnabledInput() interface{} HealthCheckRate() *string SetHealthCheckRate(val *string) HealthCheckRateInput() *string HealthCheckTarget() *string SetHealthCheckTarget(val *string) HealthCheckTargetInput() *string HealthCheckType() *string SetHealthCheckType(val *string) HealthCheckTypeInput() *string HexId() *string SetHexId(val *string) HexIdInput() *string Id() *string SetId(val *string) IdInput() *string InterfaceAddress() *string SetInterfaceAddress(val *string) InterfaceAddressInput() *string // Experimental. Lifecycle() *cdktf.TerraformResourceLifecycle // Experimental. SetLifecycle(val *cdktf.TerraformResourceLifecycle) Name() *string SetName(val *string) NameInput() *string // The tree node. Node() constructs.Node // Experimental. Provider() cdktf.TerraformProvider // Experimental. SetProvider(val cdktf.TerraformProvider) // Experimental. Provisioners() *[]interface{} // Experimental. SetProvisioners(val *[]interface{}) Psk() *string SetPsk(val *string) PskInput() *string // Experimental. RawOverrides() interface{} RemoteId() *string SetRemoteId(val *string) RemoteIdInput() *string ReplayProtection() interface{} SetReplayProtection(val interface{}) ReplayProtectionInput() interface{} // Experimental. TerraformGeneratorMetadata() *cdktf.TerraformProviderGeneratorMetadata // Experimental. TerraformMetaArguments() *map[string]interface{} // Experimental. TerraformResourceType() *string UserId() *string SetUserId(val *string) UserIdInput() *string // Adds a user defined moveTarget string to this resource to be later used in .moveTo(moveTarget) to resolve the location of the move. // Experimental. AddMoveTarget(moveTarget *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. HasResourceMove() interface{} // Experimental. ImportFrom(id *string, provider cdktf.TerraformProvider) // Experimental. InterpolationForAttribute(terraformAttribute *string) cdktf.IResolvable // Move the resource corresponding to "id" to this resource. // // Note that the resource being moved from must be marked as moved using it's instance function. // Experimental. MoveFromId(id *string) // Moves this resource to the target resource given by moveTarget. // Experimental. MoveTo(moveTarget *string, index interface{}) // Moves this resource to the resource corresponding to "id". // Experimental. MoveToId(id *string) // Overrides the auto-generated logical ID with a specific ID. // Experimental. OverrideLogicalId(newLogicalId *string) ResetAccountId() ResetAllowNullCipher() ResetDescription() ResetFqdnId() ResetHealthCheckDirection() ResetHealthCheckEnabled() ResetHealthCheckRate() ResetHealthCheckTarget() ResetHealthCheckType() ResetHexId() ResetId() // Resets a previously passed logical Id to use the auto-generated logical id again. // Experimental. ResetOverrideLogicalId() ResetPsk() ResetRemoteId() ResetReplayProtection() ResetUserId() SynthesizeAttributes() *map[string]interface{} SynthesizeHclAttributes() *map[string]interface{} // Experimental. ToHclTerraform() 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/cloudflare/cloudflare/4.42.0/docs/resources/magic_wan_ipsec_tunnel cloudflare_magic_wan_ipsec_tunnel}.
func NewMagicWanIpsecTunnel ¶
func NewMagicWanIpsecTunnel(scope constructs.Construct, id *string, config *MagicWanIpsecTunnelConfig) MagicWanIpsecTunnel
Create a new {@link https://registry.terraform.io/providers/cloudflare/cloudflare/4.42.0/docs/resources/magic_wan_ipsec_tunnel cloudflare_magic_wan_ipsec_tunnel} Resource.
type MagicWanIpsecTunnelConfig ¶
type MagicWanIpsecTunnelConfig 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"` // IP address assigned to the Cloudflare side of the IPsec tunnel. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/4.42.0/docs/resources/magic_wan_ipsec_tunnel#cloudflare_endpoint MagicWanIpsecTunnel#cloudflare_endpoint} CloudflareEndpoint *string `field:"required" json:"cloudflareEndpoint" yaml:"cloudflareEndpoint"` // IP address assigned to the customer side of the IPsec tunnel. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/4.42.0/docs/resources/magic_wan_ipsec_tunnel#customer_endpoint MagicWanIpsecTunnel#customer_endpoint} CustomerEndpoint *string `field:"required" json:"customerEndpoint" yaml:"customerEndpoint"` // 31-bit prefix (/31 in CIDR notation) supporting 2 hosts, one for each side of the tunnel. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/4.42.0/docs/resources/magic_wan_ipsec_tunnel#interface_address MagicWanIpsecTunnel#interface_address} InterfaceAddress *string `field:"required" json:"interfaceAddress" yaml:"interfaceAddress"` // Name of the IPsec tunnel. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/4.42.0/docs/resources/magic_wan_ipsec_tunnel#name MagicWanIpsecTunnel#name} Name *string `field:"required" json:"name" yaml:"name"` // The account identifier to target for the resource. **Modifying this attribute will force creation of a new resource.**. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/4.42.0/docs/resources/magic_wan_ipsec_tunnel#account_id MagicWanIpsecTunnel#account_id} AccountId *string `field:"optional" json:"accountId" yaml:"accountId"` // Specifies if this tunnel may use a null cipher (ENCR_NULL) in Phase 2. Defaults to `false`. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/4.42.0/docs/resources/magic_wan_ipsec_tunnel#allow_null_cipher MagicWanIpsecTunnel#allow_null_cipher} AllowNullCipher interface{} `field:"optional" json:"allowNullCipher" yaml:"allowNullCipher"` // An optional description of the IPsec tunnel. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/4.42.0/docs/resources/magic_wan_ipsec_tunnel#description MagicWanIpsecTunnel#description} Description *string `field:"optional" json:"description" yaml:"description"` // `remote_id` in the form of a fqdn. This value is generated by cloudflare. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/4.42.0/docs/resources/magic_wan_ipsec_tunnel#fqdn_id MagicWanIpsecTunnel#fqdn_id} FqdnId *string `field:"optional" json:"fqdnId" yaml:"fqdnId"` // Specifies the direction for the health check. Available values: `unidirectional`, `bidirectional` Default: `unidirectional`. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/4.42.0/docs/resources/magic_wan_ipsec_tunnel#health_check_direction MagicWanIpsecTunnel#health_check_direction} HealthCheckDirection *string `field:"optional" json:"healthCheckDirection" yaml:"healthCheckDirection"` // Specifies if ICMP tunnel health checks are enabled. Default: `true`. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/4.42.0/docs/resources/magic_wan_ipsec_tunnel#health_check_enabled MagicWanIpsecTunnel#health_check_enabled} HealthCheckEnabled interface{} `field:"optional" json:"healthCheckEnabled" yaml:"healthCheckEnabled"` // Specifies the ICMP rate for the health check. Available values: `low`, `mid`, `high` Default: `mid`. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/4.42.0/docs/resources/magic_wan_ipsec_tunnel#health_check_rate MagicWanIpsecTunnel#health_check_rate} HealthCheckRate *string `field:"optional" json:"healthCheckRate" yaml:"healthCheckRate"` // The IP address of the customer endpoint that will receive tunnel health checks. Default: `<customer_gre_endpoint>`. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/4.42.0/docs/resources/magic_wan_ipsec_tunnel#health_check_target MagicWanIpsecTunnel#health_check_target} HealthCheckTarget *string `field:"optional" json:"healthCheckTarget" yaml:"healthCheckTarget"` // Specifies the ICMP echo type for the health check (`request` or `reply`). Available values: `request`, `reply` Default: `reply`. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/4.42.0/docs/resources/magic_wan_ipsec_tunnel#health_check_type MagicWanIpsecTunnel#health_check_type} HealthCheckType *string `field:"optional" json:"healthCheckType" yaml:"healthCheckType"` // `remote_id` as a hex string. This value is generated by cloudflare. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/4.42.0/docs/resources/magic_wan_ipsec_tunnel#hex_id MagicWanIpsecTunnel#hex_id} HexId *string `field:"optional" json:"hexId" yaml:"hexId"` // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/4.42.0/docs/resources/magic_wan_ipsec_tunnel#id MagicWanIpsecTunnel#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"` // Pre shared key to be used with the IPsec tunnel. If left unset, it will be autogenerated. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/4.42.0/docs/resources/magic_wan_ipsec_tunnel#psk MagicWanIpsecTunnel#psk} Psk *string `field:"optional" json:"psk" yaml:"psk"` // ID to be used while setting up the IPsec tunnel. This value is generated by cloudflare. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/4.42.0/docs/resources/magic_wan_ipsec_tunnel#remote_id MagicWanIpsecTunnel#remote_id} RemoteId *string `field:"optional" json:"remoteId" yaml:"remoteId"` // Specifies if replay protection is enabled. Defaults to `false`. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/4.42.0/docs/resources/magic_wan_ipsec_tunnel#replay_protection MagicWanIpsecTunnel#replay_protection} ReplayProtection interface{} `field:"optional" json:"replayProtection" yaml:"replayProtection"` // `remote_id` in the form of an email address. This value is generated by cloudflare. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/4.42.0/docs/resources/magic_wan_ipsec_tunnel#user_id MagicWanIpsecTunnel#user_id} UserId *string `field:"optional" json:"userId" yaml:"userId"` }