Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IpsecTunnel_IsConstruct ¶
func IpsecTunnel_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 IpsecTunnel_TfResourceType ¶
func IpsecTunnel_TfResourceType() *string
func NewIpsecTunnel_Override ¶
func NewIpsecTunnel_Override(i IpsecTunnel, scope constructs.Construct, id *string, config *IpsecTunnelConfig)
Create a new {@link https://www.terraform.io/docs/providers/cloudflare/r/ipsec_tunnel cloudflare_ipsec_tunnel} Resource.
Types ¶
type IpsecTunnel ¶
type IpsecTunnel 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() *float64 // Experimental. SetCount(val *float64) 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 HealthCheckEnabled() interface{} SetHealthCheckEnabled(val interface{}) HealthCheckEnabledInput() interface{} 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 // Experimental. TerraformGeneratorMetadata() *cdktf.TerraformProviderGeneratorMetadata // Experimental. TerraformMetaArguments() *map[string]interface{} // Experimental. TerraformResourceType() *string UserId() *string SetUserId(val *string) UserIdInput() *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) ResetAccountId() ResetAllowNullCipher() ResetDescription() ResetFqdnId() ResetHealthCheckEnabled() ResetHealthCheckTarget() ResetHealthCheckType() ResetHexId() ResetId() // Resets a previously passed logical Id to use the auto-generated logical id again. // Experimental. ResetOverrideLogicalId() ResetPsk() ResetRemoteId() ResetUserId() 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/cloudflare/r/ipsec_tunnel cloudflare_ipsec_tunnel}.
func NewIpsecTunnel ¶
func NewIpsecTunnel(scope constructs.Construct, id *string, config *IpsecTunnelConfig) IpsecTunnel
Create a new {@link https://www.terraform.io/docs/providers/cloudflare/r/ipsec_tunnel cloudflare_ipsec_tunnel} Resource.
type IpsecTunnelConfig ¶
type IpsecTunnelConfig 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"` // IP address assigned to the Cloudflare side of the IPsec tunnel. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/cloudflare/r/ipsec_tunnel#cloudflare_endpoint IpsecTunnel#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://www.terraform.io/docs/providers/cloudflare/r/ipsec_tunnel#customer_endpoint IpsecTunnel#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://www.terraform.io/docs/providers/cloudflare/r/ipsec_tunnel#interface_address IpsecTunnel#interface_address} InterfaceAddress *string `field:"required" json:"interfaceAddress" yaml:"interfaceAddress"` // Name of the IPsec tunnel. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/cloudflare/r/ipsec_tunnel#name IpsecTunnel#name} Name *string `field:"required" json:"name" yaml:"name"` // The account identifier to target for the resource. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/cloudflare/r/ipsec_tunnel#account_id IpsecTunnel#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://www.terraform.io/docs/providers/cloudflare/r/ipsec_tunnel#allow_null_cipher IpsecTunnel#allow_null_cipher} AllowNullCipher interface{} `field:"optional" json:"allowNullCipher" yaml:"allowNullCipher"` // An optional description of the IPsec tunnel. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/cloudflare/r/ipsec_tunnel#description IpsecTunnel#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://www.terraform.io/docs/providers/cloudflare/r/ipsec_tunnel#fqdn_id IpsecTunnel#fqdn_id} FqdnId *string `field:"optional" json:"fqdnId" yaml:"fqdnId"` // Specifies if ICMP tunnel health checks are enabled. Default: `true`. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/cloudflare/r/ipsec_tunnel#health_check_enabled IpsecTunnel#health_check_enabled} HealthCheckEnabled interface{} `field:"optional" json:"healthCheckEnabled" yaml:"healthCheckEnabled"` // The IP address of the customer endpoint that will receive tunnel health checks. Default: `<customer_gre_endpoint>`. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/cloudflare/r/ipsec_tunnel#health_check_target IpsecTunnel#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://www.terraform.io/docs/providers/cloudflare/r/ipsec_tunnel#health_check_type IpsecTunnel#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://www.terraform.io/docs/providers/cloudflare/r/ipsec_tunnel#hex_id IpsecTunnel#hex_id} HexId *string `field:"optional" json:"hexId" yaml:"hexId"` // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/cloudflare/r/ipsec_tunnel#id IpsecTunnel#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://www.terraform.io/docs/providers/cloudflare/r/ipsec_tunnel#psk IpsecTunnel#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://www.terraform.io/docs/providers/cloudflare/r/ipsec_tunnel#remote_id IpsecTunnel#remote_id} RemoteId *string `field:"optional" json:"remoteId" yaml:"remoteId"` // `remote_id` in the form of an email address. This value is generated by cloudflare. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/cloudflare/r/ipsec_tunnel#user_id IpsecTunnel#user_id} UserId *string `field:"optional" json:"userId" yaml:"userId"` }