pulumi-digitalocean 4.40.0a1739511652__py3-none-any.whl → 4.56.0a1766428645__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pulumi_digitalocean/__init__.py +224 -1
- pulumi_digitalocean/_enums.py +19 -9
- pulumi_digitalocean/_inputs.py +17037 -4771
- pulumi_digitalocean/_utilities.py +1 -1
- pulumi_digitalocean/app.py +238 -88
- pulumi_digitalocean/byoip_prefix.py +452 -0
- pulumi_digitalocean/cdn.py +106 -105
- pulumi_digitalocean/certificate.py +139 -138
- pulumi_digitalocean/config/__init__.py +2 -1
- pulumi_digitalocean/config/__init__.pyi +2 -2
- pulumi_digitalocean/config/vars.py +11 -11
- pulumi_digitalocean/container_registries.py +285 -0
- pulumi_digitalocean/container_registry.py +90 -89
- pulumi_digitalocean/container_registry_docker_credentials.py +84 -83
- pulumi_digitalocean/custom_image.py +180 -179
- pulumi_digitalocean/database_cluster.py +402 -373
- pulumi_digitalocean/database_connection_pool.py +159 -158
- pulumi_digitalocean/database_db.py +37 -36
- pulumi_digitalocean/database_firewall.py +23 -22
- pulumi_digitalocean/database_kafka_config.py +309 -308
- pulumi_digitalocean/database_kafka_schema_registry.py +360 -0
- pulumi_digitalocean/database_kafka_topic.py +83 -82
- pulumi_digitalocean/database_logsink_opensearch.py +680 -0
- pulumi_digitalocean/database_logsink_rsyslog.py +842 -0
- pulumi_digitalocean/database_mongodb_config.py +105 -104
- pulumi_digitalocean/database_mysql_config.py +479 -478
- pulumi_digitalocean/database_online_migration.py +460 -0
- pulumi_digitalocean/database_opensearch_config.py +666 -665
- pulumi_digitalocean/database_postgresql_config.py +859 -858
- pulumi_digitalocean/database_redis_config.py +211 -206
- pulumi_digitalocean/database_replica.py +199 -198
- pulumi_digitalocean/database_user.py +93 -92
- pulumi_digitalocean/database_valkey_config.py +776 -0
- pulumi_digitalocean/dns_record.py +184 -183
- pulumi_digitalocean/domain.py +55 -54
- pulumi_digitalocean/droplet.py +403 -402
- pulumi_digitalocean/droplet_autoscale.py +55 -54
- pulumi_digitalocean/droplet_snapshot.py +73 -72
- pulumi_digitalocean/firewall.py +80 -79
- pulumi_digitalocean/floating_ip.py +63 -62
- pulumi_digitalocean/floating_ip_assignment.py +37 -36
- pulumi_digitalocean/genai_agent.py +1903 -0
- pulumi_digitalocean/genai_agent_knowledge_base_attachment.py +198 -0
- pulumi_digitalocean/genai_agent_route.py +354 -0
- pulumi_digitalocean/genai_function.py +464 -0
- pulumi_digitalocean/genai_indexing_job_cancel.py +542 -0
- pulumi_digitalocean/genai_knowledge_base.py +627 -0
- pulumi_digitalocean/genai_knowledge_base_data_source.py +220 -0
- pulumi_digitalocean/genai_openai_api_key.py +386 -0
- pulumi_digitalocean/get_account.py +18 -18
- pulumi_digitalocean/get_app.py +28 -28
- pulumi_digitalocean/get_byoip_prefix.py +214 -0
- pulumi_digitalocean/get_byoip_prefix_resources.py +150 -0
- pulumi_digitalocean/get_certificate.py +22 -22
- pulumi_digitalocean/get_container_registries.py +151 -0
- pulumi_digitalocean/get_container_registry.py +22 -22
- pulumi_digitalocean/get_database_ca.py +12 -12
- pulumi_digitalocean/get_database_cluster.py +76 -62
- pulumi_digitalocean/get_database_connection_pool.py +36 -36
- pulumi_digitalocean/get_database_metrics_credentials.py +120 -0
- pulumi_digitalocean/get_database_replica.py +46 -46
- pulumi_digitalocean/get_database_user.py +27 -27
- pulumi_digitalocean/get_domain.py +16 -16
- pulumi_digitalocean/get_domains.py +7 -7
- pulumi_digitalocean/get_droplet.py +72 -72
- pulumi_digitalocean/get_droplet_autoscale.py +23 -23
- pulumi_digitalocean/get_droplet_snapshot.py +38 -38
- pulumi_digitalocean/get_droplets.py +13 -13
- pulumi_digitalocean/get_firewall.py +31 -31
- pulumi_digitalocean/get_floating_ip.py +16 -16
- pulumi_digitalocean/get_genai_agent.py +572 -0
- pulumi_digitalocean/get_genai_agent_versions.py +128 -0
- pulumi_digitalocean/get_genai_agents.py +128 -0
- pulumi_digitalocean/get_genai_agents_by_openai_api_key.py +97 -0
- pulumi_digitalocean/get_genai_indexing_job.py +239 -0
- pulumi_digitalocean/get_genai_indexing_job_data_sources.py +97 -0
- pulumi_digitalocean/get_genai_knowledge_base.py +259 -0
- pulumi_digitalocean/get_genai_knowledge_base_data_sources.py +97 -0
- pulumi_digitalocean/get_genai_knowledge_base_indexing_jobs.py +108 -0
- pulumi_digitalocean/get_genai_knowledge_bases.py +113 -0
- pulumi_digitalocean/get_genai_models.py +113 -0
- pulumi_digitalocean/get_genai_openai_api_key.py +152 -0
- pulumi_digitalocean/get_genai_openai_api_keys.py +113 -0
- pulumi_digitalocean/get_genai_regions.py +113 -0
- pulumi_digitalocean/get_image.py +50 -50
- pulumi_digitalocean/get_images.py +7 -7
- pulumi_digitalocean/get_kubernetes_cluster.py +144 -53
- pulumi_digitalocean/get_kubernetes_versions.py +14 -14
- pulumi_digitalocean/get_load_balancer.py +70 -59
- pulumi_digitalocean/get_nfs.py +205 -0
- pulumi_digitalocean/get_nfs_snapshot.py +188 -0
- pulumi_digitalocean/get_partner_attachment.py +206 -0
- pulumi_digitalocean/get_partner_attachment_service_key.py +118 -0
- pulumi_digitalocean/get_project.py +32 -32
- pulumi_digitalocean/get_projects.py +7 -7
- pulumi_digitalocean/get_record.py +32 -32
- pulumi_digitalocean/get_records.py +13 -13
- pulumi_digitalocean/get_region.py +18 -18
- pulumi_digitalocean/get_regions.py +7 -7
- pulumi_digitalocean/get_reserved_ip.py +16 -16
- pulumi_digitalocean/get_reserved_ipv6.py +51 -16
- pulumi_digitalocean/get_sizes.py +141 -7
- pulumi_digitalocean/get_spaces_bucket.py +22 -22
- pulumi_digitalocean/get_spaces_bucket_object.py +58 -58
- pulumi_digitalocean/get_spaces_bucket_objects.py +46 -46
- pulumi_digitalocean/get_spaces_buckets.py +7 -7
- pulumi_digitalocean/get_spaces_key.py +157 -0
- pulumi_digitalocean/get_ssh_key.py +14 -14
- pulumi_digitalocean/get_ssh_keys.py +7 -7
- pulumi_digitalocean/get_tag.py +22 -22
- pulumi_digitalocean/get_tags.py +7 -7
- pulumi_digitalocean/get_volume.py +34 -34
- pulumi_digitalocean/get_volume_snapshot.py +40 -40
- pulumi_digitalocean/get_vpc.py +30 -30
- pulumi_digitalocean/get_vpc_nat_gateway.py +263 -0
- pulumi_digitalocean/get_vpc_peering.py +24 -24
- pulumi_digitalocean/kubernetes_cluster.py +572 -303
- pulumi_digitalocean/kubernetes_node_pool.py +170 -169
- pulumi_digitalocean/load_balancer.py +406 -372
- pulumi_digitalocean/monitor_alert.py +153 -156
- pulumi_digitalocean/nfs.py +481 -0
- pulumi_digitalocean/nfs_attachment.py +289 -0
- pulumi_digitalocean/nfs_snapshot.py +379 -0
- pulumi_digitalocean/outputs.py +26759 -7592
- pulumi_digitalocean/partner_attachment.py +555 -0
- pulumi_digitalocean/project.py +141 -140
- pulumi_digitalocean/project_resources.py +37 -36
- pulumi_digitalocean/provider.py +105 -84
- pulumi_digitalocean/pulumi-plugin.json +1 -1
- pulumi_digitalocean/reserved_ip.py +63 -62
- pulumi_digitalocean/reserved_ip_assignment.py +37 -36
- pulumi_digitalocean/reserved_ipv6.py +122 -62
- pulumi_digitalocean/reserved_ipv6_assignment.py +81 -30
- pulumi_digitalocean/spaces_bucket.py +107 -106
- pulumi_digitalocean/spaces_bucket_cors_configuration.py +40 -39
- pulumi_digitalocean/spaces_bucket_logging.py +346 -0
- pulumi_digitalocean/spaces_bucket_object.py +284 -283
- pulumi_digitalocean/spaces_bucket_policy.py +54 -53
- pulumi_digitalocean/spaces_key.py +388 -0
- pulumi_digitalocean/ssh_key.py +46 -45
- pulumi_digitalocean/tag.py +74 -73
- pulumi_digitalocean/uptime_alert.py +112 -111
- pulumi_digitalocean/uptime_check.py +90 -89
- pulumi_digitalocean/volume.py +183 -182
- pulumi_digitalocean/volume_attachment.py +37 -36
- pulumi_digitalocean/volume_snapshot.py +90 -89
- pulumi_digitalocean/vpc.py +100 -99
- pulumi_digitalocean/vpc_nat_gateway.py +722 -0
- pulumi_digitalocean/vpc_peering.py +55 -58
- {pulumi_digitalocean-4.40.0a1739511652.dist-info → pulumi_digitalocean-4.56.0a1766428645.dist-info}/METADATA +4 -4
- pulumi_digitalocean-4.56.0a1766428645.dist-info/RECORD +154 -0
- {pulumi_digitalocean-4.40.0a1739511652.dist-info → pulumi_digitalocean-4.56.0a1766428645.dist-info}/WHEEL +1 -1
- pulumi_digitalocean-4.40.0a1739511652.dist-info/RECORD +0 -108
- {pulumi_digitalocean-4.40.0a1739511652.dist-info → pulumi_digitalocean-4.56.0a1766428645.dist-info}/top_level.txt +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
|
|
5
|
-
import
|
|
5
|
+
import builtins as _builtins
|
|
6
6
|
import warnings
|
|
7
7
|
import sys
|
|
8
8
|
import pulumi
|
|
@@ -22,40 +22,41 @@ __all__ = ['LoadBalancerArgs', 'LoadBalancer']
|
|
|
22
22
|
@pulumi.input_type
|
|
23
23
|
class LoadBalancerArgs:
|
|
24
24
|
def __init__(__self__, *,
|
|
25
|
-
algorithm: Optional[pulumi.Input[Union[str, 'Algorithm']]] = None,
|
|
26
|
-
disable_lets_encrypt_dns_records: Optional[pulumi.Input[bool]] = None,
|
|
25
|
+
algorithm: Optional[pulumi.Input[Union[_builtins.str, 'Algorithm']]] = None,
|
|
26
|
+
disable_lets_encrypt_dns_records: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
27
27
|
domains: Optional[pulumi.Input[Sequence[pulumi.Input['LoadBalancerDomainArgs']]]] = None,
|
|
28
|
-
droplet_ids: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None,
|
|
29
|
-
droplet_tag: Optional[pulumi.Input[str]] = None,
|
|
30
|
-
enable_backend_keepalive: Optional[pulumi.Input[bool]] = None,
|
|
31
|
-
enable_proxy_protocol: Optional[pulumi.Input[bool]] = None,
|
|
28
|
+
droplet_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.int]]]] = None,
|
|
29
|
+
droplet_tag: Optional[pulumi.Input[_builtins.str]] = None,
|
|
30
|
+
enable_backend_keepalive: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
31
|
+
enable_proxy_protocol: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
32
32
|
firewall: Optional[pulumi.Input['LoadBalancerFirewallArgs']] = None,
|
|
33
33
|
forwarding_rules: Optional[pulumi.Input[Sequence[pulumi.Input['LoadBalancerForwardingRuleArgs']]]] = None,
|
|
34
34
|
glb_settings: Optional[pulumi.Input['LoadBalancerGlbSettingsArgs']] = None,
|
|
35
35
|
healthcheck: Optional[pulumi.Input['LoadBalancerHealthcheckArgs']] = None,
|
|
36
|
-
http_idle_timeout_seconds: Optional[pulumi.Input[int]] = None,
|
|
37
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
38
|
-
network: Optional[pulumi.Input[str]] = None,
|
|
39
|
-
network_stack: Optional[pulumi.Input[str]] = None,
|
|
40
|
-
project_id: Optional[pulumi.Input[str]] = None,
|
|
41
|
-
redirect_http_to_https: Optional[pulumi.Input[bool]] = None,
|
|
42
|
-
region: Optional[pulumi.Input[Union[str, 'Region']]] = None,
|
|
43
|
-
size: Optional[pulumi.Input[str]] = None,
|
|
44
|
-
size_unit: Optional[pulumi.Input[int]] = None,
|
|
36
|
+
http_idle_timeout_seconds: Optional[pulumi.Input[_builtins.int]] = None,
|
|
37
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
38
|
+
network: Optional[pulumi.Input[_builtins.str]] = None,
|
|
39
|
+
network_stack: Optional[pulumi.Input[_builtins.str]] = None,
|
|
40
|
+
project_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
41
|
+
redirect_http_to_https: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
42
|
+
region: Optional[pulumi.Input[Union[_builtins.str, 'Region']]] = None,
|
|
43
|
+
size: Optional[pulumi.Input[_builtins.str]] = None,
|
|
44
|
+
size_unit: Optional[pulumi.Input[_builtins.int]] = None,
|
|
45
45
|
sticky_sessions: Optional[pulumi.Input['LoadBalancerStickySessionsArgs']] = None,
|
|
46
|
-
target_load_balancer_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
47
|
-
|
|
48
|
-
|
|
46
|
+
target_load_balancer_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
47
|
+
tls_cipher_policy: Optional[pulumi.Input[_builtins.str]] = None,
|
|
48
|
+
type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
49
|
+
vpc_uuid: Optional[pulumi.Input[_builtins.str]] = None):
|
|
49
50
|
"""
|
|
50
51
|
The set of arguments for constructing a LoadBalancer resource.
|
|
51
|
-
:param pulumi.Input[Union[str, 'Algorithm']] algorithm: **Deprecated** This field has been deprecated. You can no longer specify an algorithm for load balancers.
|
|
52
|
+
:param pulumi.Input[Union[_builtins.str, 'Algorithm']] algorithm: **Deprecated** This field has been deprecated. You can no longer specify an algorithm for load balancers.
|
|
52
53
|
or `least_connections`. The default value is `round_robin`.
|
|
53
|
-
:param pulumi.Input[bool] disable_lets_encrypt_dns_records: A boolean value indicating whether to disable automatic DNS record creation for Let's Encrypt certificates that are added to the load balancer. Default value is `false`.
|
|
54
|
+
:param pulumi.Input[_builtins.bool] disable_lets_encrypt_dns_records: A boolean value indicating whether to disable automatic DNS record creation for Let's Encrypt certificates that are added to the load balancer. Default value is `false`.
|
|
54
55
|
:param pulumi.Input[Sequence[pulumi.Input['LoadBalancerDomainArgs']]] domains: A list of `domains` required to ingress traffic to a Global Load Balancer. The `domains` block is documented below.
|
|
55
|
-
:param pulumi.Input[Sequence[pulumi.Input[int]]] droplet_ids: A list of the IDs of each droplet to be attached to the Load Balancer.
|
|
56
|
-
:param pulumi.Input[str] droplet_tag: The name of a Droplet tag corresponding to Droplets to be assigned to the Load Balancer.
|
|
57
|
-
:param pulumi.Input[bool] enable_backend_keepalive: A boolean value indicating whether HTTP keepalive connections are maintained to target Droplets. Default value is `false`.
|
|
58
|
-
:param pulumi.Input[bool] enable_proxy_protocol: A boolean value indicating whether PROXY
|
|
56
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.int]]] droplet_ids: A list of the IDs of each droplet to be attached to the Load Balancer.
|
|
57
|
+
:param pulumi.Input[_builtins.str] droplet_tag: The name of a Droplet tag corresponding to Droplets to be assigned to the Load Balancer.
|
|
58
|
+
:param pulumi.Input[_builtins.bool] enable_backend_keepalive: A boolean value indicating whether HTTP keepalive connections are maintained to target Droplets. Default value is `false`.
|
|
59
|
+
:param pulumi.Input[_builtins.bool] enable_proxy_protocol: A boolean value indicating whether PROXY
|
|
59
60
|
Protocol should be used to pass information from connecting client requests to
|
|
60
61
|
the backend service. Default value is `false`.
|
|
61
62
|
:param pulumi.Input['LoadBalancerFirewallArgs'] firewall: A block containing rules for allowing/denying traffic to the Load Balancer. The `firewall` block is documented below. Only 1 firewall is allowed.
|
|
@@ -64,24 +65,23 @@ class LoadBalancerArgs:
|
|
|
64
65
|
:param pulumi.Input['LoadBalancerGlbSettingsArgs'] glb_settings: A block containing `glb_settings` required to define target rules for a Global Load Balancer. The `glb_settings` block is documented below.
|
|
65
66
|
:param pulumi.Input['LoadBalancerHealthcheckArgs'] healthcheck: A `healthcheck` block to be assigned to the
|
|
66
67
|
Load Balancer. The `healthcheck` block is documented below. Only 1 healthcheck is allowed.
|
|
67
|
-
:param pulumi.Input[int] http_idle_timeout_seconds: Specifies the idle timeout for HTTPS connections on the load balancer in seconds.
|
|
68
|
-
:param pulumi.Input[str] name: The Load Balancer name
|
|
69
|
-
:param pulumi.Input[str] network: The type of network the Load Balancer is accessible from. It must be either of `INTERNAL` or `EXTERNAL`. Defaults to `EXTERNAL`.
|
|
70
|
-
:param pulumi.Input[str] network_stack: The network stack determines the allocation of ipv4/ipv6 addresses to the load balancer. It must be either of `IPV4` or `DUALSTACK`. Defaults to `IPV4`.
|
|
71
|
-
|
|
72
|
-
:param pulumi.Input[
|
|
73
|
-
:param pulumi.Input[bool] redirect_http_to_https: A boolean value indicating whether
|
|
68
|
+
:param pulumi.Input[_builtins.int] http_idle_timeout_seconds: Specifies the idle timeout for HTTPS connections on the load balancer in seconds.
|
|
69
|
+
:param pulumi.Input[_builtins.str] name: The Load Balancer name
|
|
70
|
+
:param pulumi.Input[_builtins.str] network: The type of network the Load Balancer is accessible from. It must be either of `INTERNAL` or `EXTERNAL`. Defaults to `EXTERNAL`.
|
|
71
|
+
:param pulumi.Input[_builtins.str] network_stack: The network stack determines the allocation of ipv4/ipv6 addresses to the load balancer. It must be either of `IPV4` or `DUALSTACK`. Defaults to `IPV4`.
|
|
72
|
+
:param pulumi.Input[_builtins.str] project_id: The ID of the project that the load balancer is associated with. If no ID is provided at creation, the load balancer associates with the user's default project.
|
|
73
|
+
:param pulumi.Input[_builtins.bool] redirect_http_to_https: A boolean value indicating whether
|
|
74
74
|
HTTP requests to the Load Balancer on port 80 will be redirected to HTTPS on port 443.
|
|
75
75
|
Default value is `false`.
|
|
76
|
-
:param pulumi.Input[Union[str, 'Region']] region: The region to start in
|
|
77
|
-
:param pulumi.Input[str] size: The size of the Load Balancer. It must be either `lb-small`, `lb-medium`, or `lb-large`. Defaults to `lb-small`. Only one of `size` or `size_unit` may be provided.
|
|
78
|
-
:param pulumi.Input[int] size_unit: The size of the Load Balancer. It must be in the range (1, 200). Defaults to `1`. Only one of `size` or `size_unit` may be provided.
|
|
76
|
+
:param pulumi.Input[Union[_builtins.str, 'Region']] region: The region to start in
|
|
77
|
+
:param pulumi.Input[_builtins.str] size: The size of the Load Balancer. It must be either `lb-small`, `lb-medium`, or `lb-large`. Defaults to `lb-small`. Only one of `size` or `size_unit` may be provided.
|
|
78
|
+
:param pulumi.Input[_builtins.int] size_unit: The size of the Load Balancer. It must be in the range (1, 200). Defaults to `1`. Only one of `size` or `size_unit` may be provided.
|
|
79
79
|
:param pulumi.Input['LoadBalancerStickySessionsArgs'] sticky_sessions: A `sticky_sessions` block to be assigned to the
|
|
80
80
|
Load Balancer. The `sticky_sessions` block is documented below. Only 1 sticky_sessions block is allowed.
|
|
81
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] target_load_balancer_ids: A list of Load Balancer IDs to be attached behind a Global Load Balancer.
|
|
82
|
-
:param pulumi.Input[str]
|
|
83
|
-
|
|
84
|
-
:param pulumi.Input[str] vpc_uuid: The ID of the VPC where the load balancer will be located.
|
|
81
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] target_load_balancer_ids: A list of Load Balancer IDs to be attached behind a Global Load Balancer.
|
|
82
|
+
:param pulumi.Input[_builtins.str] tls_cipher_policy: The tls cipher policy controls the cipher suites to be used by the load balancer. It must be either of `DEFAULT` or `STRONG`. Defaults to `DEFAULT`.
|
|
83
|
+
:param pulumi.Input[_builtins.str] type: The type of the Load Balancer. It must be either of `REGIONAL`, `REGIONAL_NETWORK`, or `GLOBAL`. Defaults to `REGIONAL`.
|
|
84
|
+
:param pulumi.Input[_builtins.str] vpc_uuid: The ID of the VPC where the load balancer will be located.
|
|
85
85
|
"""
|
|
86
86
|
if algorithm is not None:
|
|
87
87
|
warnings.warn("""This field has been deprecated. You can no longer specify an algorithm for load balancers.""", DeprecationWarning)
|
|
@@ -130,15 +130,17 @@ class LoadBalancerArgs:
|
|
|
130
130
|
pulumi.set(__self__, "sticky_sessions", sticky_sessions)
|
|
131
131
|
if target_load_balancer_ids is not None:
|
|
132
132
|
pulumi.set(__self__, "target_load_balancer_ids", target_load_balancer_ids)
|
|
133
|
+
if tls_cipher_policy is not None:
|
|
134
|
+
pulumi.set(__self__, "tls_cipher_policy", tls_cipher_policy)
|
|
133
135
|
if type is not None:
|
|
134
136
|
pulumi.set(__self__, "type", type)
|
|
135
137
|
if vpc_uuid is not None:
|
|
136
138
|
pulumi.set(__self__, "vpc_uuid", vpc_uuid)
|
|
137
139
|
|
|
138
|
-
@property
|
|
140
|
+
@_builtins.property
|
|
139
141
|
@pulumi.getter
|
|
140
142
|
@_utilities.deprecated("""This field has been deprecated. You can no longer specify an algorithm for load balancers.""")
|
|
141
|
-
def algorithm(self) -> Optional[pulumi.Input[Union[str, 'Algorithm']]]:
|
|
143
|
+
def algorithm(self) -> Optional[pulumi.Input[Union[_builtins.str, 'Algorithm']]]:
|
|
142
144
|
"""
|
|
143
145
|
**Deprecated** This field has been deprecated. You can no longer specify an algorithm for load balancers.
|
|
144
146
|
or `least_connections`. The default value is `round_robin`.
|
|
@@ -146,22 +148,22 @@ class LoadBalancerArgs:
|
|
|
146
148
|
return pulumi.get(self, "algorithm")
|
|
147
149
|
|
|
148
150
|
@algorithm.setter
|
|
149
|
-
def algorithm(self, value: Optional[pulumi.Input[Union[str, 'Algorithm']]]):
|
|
151
|
+
def algorithm(self, value: Optional[pulumi.Input[Union[_builtins.str, 'Algorithm']]]):
|
|
150
152
|
pulumi.set(self, "algorithm", value)
|
|
151
153
|
|
|
152
|
-
@property
|
|
154
|
+
@_builtins.property
|
|
153
155
|
@pulumi.getter(name="disableLetsEncryptDnsRecords")
|
|
154
|
-
def disable_lets_encrypt_dns_records(self) -> Optional[pulumi.Input[bool]]:
|
|
156
|
+
def disable_lets_encrypt_dns_records(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
155
157
|
"""
|
|
156
158
|
A boolean value indicating whether to disable automatic DNS record creation for Let's Encrypt certificates that are added to the load balancer. Default value is `false`.
|
|
157
159
|
"""
|
|
158
160
|
return pulumi.get(self, "disable_lets_encrypt_dns_records")
|
|
159
161
|
|
|
160
162
|
@disable_lets_encrypt_dns_records.setter
|
|
161
|
-
def disable_lets_encrypt_dns_records(self, value: Optional[pulumi.Input[bool]]):
|
|
163
|
+
def disable_lets_encrypt_dns_records(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
162
164
|
pulumi.set(self, "disable_lets_encrypt_dns_records", value)
|
|
163
165
|
|
|
164
|
-
@property
|
|
166
|
+
@_builtins.property
|
|
165
167
|
@pulumi.getter
|
|
166
168
|
def domains(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['LoadBalancerDomainArgs']]]]:
|
|
167
169
|
"""
|
|
@@ -173,45 +175,45 @@ class LoadBalancerArgs:
|
|
|
173
175
|
def domains(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['LoadBalancerDomainArgs']]]]):
|
|
174
176
|
pulumi.set(self, "domains", value)
|
|
175
177
|
|
|
176
|
-
@property
|
|
178
|
+
@_builtins.property
|
|
177
179
|
@pulumi.getter(name="dropletIds")
|
|
178
|
-
def droplet_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[int]]]]:
|
|
180
|
+
def droplet_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.int]]]]:
|
|
179
181
|
"""
|
|
180
182
|
A list of the IDs of each droplet to be attached to the Load Balancer.
|
|
181
183
|
"""
|
|
182
184
|
return pulumi.get(self, "droplet_ids")
|
|
183
185
|
|
|
184
186
|
@droplet_ids.setter
|
|
185
|
-
def droplet_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]]):
|
|
187
|
+
def droplet_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.int]]]]):
|
|
186
188
|
pulumi.set(self, "droplet_ids", value)
|
|
187
189
|
|
|
188
|
-
@property
|
|
190
|
+
@_builtins.property
|
|
189
191
|
@pulumi.getter(name="dropletTag")
|
|
190
|
-
def droplet_tag(self) -> Optional[pulumi.Input[str]]:
|
|
192
|
+
def droplet_tag(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
191
193
|
"""
|
|
192
194
|
The name of a Droplet tag corresponding to Droplets to be assigned to the Load Balancer.
|
|
193
195
|
"""
|
|
194
196
|
return pulumi.get(self, "droplet_tag")
|
|
195
197
|
|
|
196
198
|
@droplet_tag.setter
|
|
197
|
-
def droplet_tag(self, value: Optional[pulumi.Input[str]]):
|
|
199
|
+
def droplet_tag(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
198
200
|
pulumi.set(self, "droplet_tag", value)
|
|
199
201
|
|
|
200
|
-
@property
|
|
202
|
+
@_builtins.property
|
|
201
203
|
@pulumi.getter(name="enableBackendKeepalive")
|
|
202
|
-
def enable_backend_keepalive(self) -> Optional[pulumi.Input[bool]]:
|
|
204
|
+
def enable_backend_keepalive(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
203
205
|
"""
|
|
204
206
|
A boolean value indicating whether HTTP keepalive connections are maintained to target Droplets. Default value is `false`.
|
|
205
207
|
"""
|
|
206
208
|
return pulumi.get(self, "enable_backend_keepalive")
|
|
207
209
|
|
|
208
210
|
@enable_backend_keepalive.setter
|
|
209
|
-
def enable_backend_keepalive(self, value: Optional[pulumi.Input[bool]]):
|
|
211
|
+
def enable_backend_keepalive(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
210
212
|
pulumi.set(self, "enable_backend_keepalive", value)
|
|
211
213
|
|
|
212
|
-
@property
|
|
214
|
+
@_builtins.property
|
|
213
215
|
@pulumi.getter(name="enableProxyProtocol")
|
|
214
|
-
def enable_proxy_protocol(self) -> Optional[pulumi.Input[bool]]:
|
|
216
|
+
def enable_proxy_protocol(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
215
217
|
"""
|
|
216
218
|
A boolean value indicating whether PROXY
|
|
217
219
|
Protocol should be used to pass information from connecting client requests to
|
|
@@ -220,10 +222,10 @@ class LoadBalancerArgs:
|
|
|
220
222
|
return pulumi.get(self, "enable_proxy_protocol")
|
|
221
223
|
|
|
222
224
|
@enable_proxy_protocol.setter
|
|
223
|
-
def enable_proxy_protocol(self, value: Optional[pulumi.Input[bool]]):
|
|
225
|
+
def enable_proxy_protocol(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
224
226
|
pulumi.set(self, "enable_proxy_protocol", value)
|
|
225
227
|
|
|
226
|
-
@property
|
|
228
|
+
@_builtins.property
|
|
227
229
|
@pulumi.getter
|
|
228
230
|
def firewall(self) -> Optional[pulumi.Input['LoadBalancerFirewallArgs']]:
|
|
229
231
|
"""
|
|
@@ -235,7 +237,7 @@ class LoadBalancerArgs:
|
|
|
235
237
|
def firewall(self, value: Optional[pulumi.Input['LoadBalancerFirewallArgs']]):
|
|
236
238
|
pulumi.set(self, "firewall", value)
|
|
237
239
|
|
|
238
|
-
@property
|
|
240
|
+
@_builtins.property
|
|
239
241
|
@pulumi.getter(name="forwardingRules")
|
|
240
242
|
def forwarding_rules(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['LoadBalancerForwardingRuleArgs']]]]:
|
|
241
243
|
"""
|
|
@@ -248,7 +250,7 @@ class LoadBalancerArgs:
|
|
|
248
250
|
def forwarding_rules(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['LoadBalancerForwardingRuleArgs']]]]):
|
|
249
251
|
pulumi.set(self, "forwarding_rules", value)
|
|
250
252
|
|
|
251
|
-
@property
|
|
253
|
+
@_builtins.property
|
|
252
254
|
@pulumi.getter(name="glbSettings")
|
|
253
255
|
def glb_settings(self) -> Optional[pulumi.Input['LoadBalancerGlbSettingsArgs']]:
|
|
254
256
|
"""
|
|
@@ -260,7 +262,7 @@ class LoadBalancerArgs:
|
|
|
260
262
|
def glb_settings(self, value: Optional[pulumi.Input['LoadBalancerGlbSettingsArgs']]):
|
|
261
263
|
pulumi.set(self, "glb_settings", value)
|
|
262
264
|
|
|
263
|
-
@property
|
|
265
|
+
@_builtins.property
|
|
264
266
|
@pulumi.getter
|
|
265
267
|
def healthcheck(self) -> Optional[pulumi.Input['LoadBalancerHealthcheckArgs']]:
|
|
266
268
|
"""
|
|
@@ -273,70 +275,69 @@ class LoadBalancerArgs:
|
|
|
273
275
|
def healthcheck(self, value: Optional[pulumi.Input['LoadBalancerHealthcheckArgs']]):
|
|
274
276
|
pulumi.set(self, "healthcheck", value)
|
|
275
277
|
|
|
276
|
-
@property
|
|
278
|
+
@_builtins.property
|
|
277
279
|
@pulumi.getter(name="httpIdleTimeoutSeconds")
|
|
278
|
-
def http_idle_timeout_seconds(self) -> Optional[pulumi.Input[int]]:
|
|
280
|
+
def http_idle_timeout_seconds(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
279
281
|
"""
|
|
280
282
|
Specifies the idle timeout for HTTPS connections on the load balancer in seconds.
|
|
281
283
|
"""
|
|
282
284
|
return pulumi.get(self, "http_idle_timeout_seconds")
|
|
283
285
|
|
|
284
286
|
@http_idle_timeout_seconds.setter
|
|
285
|
-
def http_idle_timeout_seconds(self, value: Optional[pulumi.Input[int]]):
|
|
287
|
+
def http_idle_timeout_seconds(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
286
288
|
pulumi.set(self, "http_idle_timeout_seconds", value)
|
|
287
289
|
|
|
288
|
-
@property
|
|
290
|
+
@_builtins.property
|
|
289
291
|
@pulumi.getter
|
|
290
|
-
def name(self) -> Optional[pulumi.Input[str]]:
|
|
292
|
+
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
291
293
|
"""
|
|
292
294
|
The Load Balancer name
|
|
293
295
|
"""
|
|
294
296
|
return pulumi.get(self, "name")
|
|
295
297
|
|
|
296
298
|
@name.setter
|
|
297
|
-
def name(self, value: Optional[pulumi.Input[str]]):
|
|
299
|
+
def name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
298
300
|
pulumi.set(self, "name", value)
|
|
299
301
|
|
|
300
|
-
@property
|
|
302
|
+
@_builtins.property
|
|
301
303
|
@pulumi.getter
|
|
302
|
-
def network(self) -> Optional[pulumi.Input[str]]:
|
|
304
|
+
def network(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
303
305
|
"""
|
|
304
306
|
The type of network the Load Balancer is accessible from. It must be either of `INTERNAL` or `EXTERNAL`. Defaults to `EXTERNAL`.
|
|
305
307
|
"""
|
|
306
308
|
return pulumi.get(self, "network")
|
|
307
309
|
|
|
308
310
|
@network.setter
|
|
309
|
-
def network(self, value: Optional[pulumi.Input[str]]):
|
|
311
|
+
def network(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
310
312
|
pulumi.set(self, "network", value)
|
|
311
313
|
|
|
312
|
-
@property
|
|
314
|
+
@_builtins.property
|
|
313
315
|
@pulumi.getter(name="networkStack")
|
|
314
|
-
def network_stack(self) -> Optional[pulumi.Input[str]]:
|
|
316
|
+
def network_stack(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
315
317
|
"""
|
|
316
318
|
The network stack determines the allocation of ipv4/ipv6 addresses to the load balancer. It must be either of `IPV4` or `DUALSTACK`. Defaults to `IPV4`.
|
|
317
|
-
**NOTE**: this feature is in private preview, and may not be available for public use
|
|
318
319
|
"""
|
|
319
320
|
return pulumi.get(self, "network_stack")
|
|
320
321
|
|
|
321
322
|
@network_stack.setter
|
|
322
|
-
def network_stack(self, value: Optional[pulumi.Input[str]]):
|
|
323
|
+
def network_stack(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
323
324
|
pulumi.set(self, "network_stack", value)
|
|
324
325
|
|
|
325
|
-
@property
|
|
326
|
+
@_builtins.property
|
|
326
327
|
@pulumi.getter(name="projectId")
|
|
327
|
-
def project_id(self) -> Optional[pulumi.Input[str]]:
|
|
328
|
+
def project_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
328
329
|
"""
|
|
329
330
|
The ID of the project that the load balancer is associated with. If no ID is provided at creation, the load balancer associates with the user's default project.
|
|
330
331
|
"""
|
|
331
332
|
return pulumi.get(self, "project_id")
|
|
332
333
|
|
|
333
334
|
@project_id.setter
|
|
334
|
-
def project_id(self, value: Optional[pulumi.Input[str]]):
|
|
335
|
+
def project_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
335
336
|
pulumi.set(self, "project_id", value)
|
|
336
337
|
|
|
337
|
-
@property
|
|
338
|
+
@_builtins.property
|
|
338
339
|
@pulumi.getter(name="redirectHttpToHttps")
|
|
339
|
-
def redirect_http_to_https(self) -> Optional[pulumi.Input[bool]]:
|
|
340
|
+
def redirect_http_to_https(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
340
341
|
"""
|
|
341
342
|
A boolean value indicating whether
|
|
342
343
|
HTTP requests to the Load Balancer on port 80 will be redirected to HTTPS on port 443.
|
|
@@ -345,46 +346,46 @@ class LoadBalancerArgs:
|
|
|
345
346
|
return pulumi.get(self, "redirect_http_to_https")
|
|
346
347
|
|
|
347
348
|
@redirect_http_to_https.setter
|
|
348
|
-
def redirect_http_to_https(self, value: Optional[pulumi.Input[bool]]):
|
|
349
|
+
def redirect_http_to_https(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
349
350
|
pulumi.set(self, "redirect_http_to_https", value)
|
|
350
351
|
|
|
351
|
-
@property
|
|
352
|
+
@_builtins.property
|
|
352
353
|
@pulumi.getter
|
|
353
|
-
def region(self) -> Optional[pulumi.Input[Union[str, 'Region']]]:
|
|
354
|
+
def region(self) -> Optional[pulumi.Input[Union[_builtins.str, 'Region']]]:
|
|
354
355
|
"""
|
|
355
356
|
The region to start in
|
|
356
357
|
"""
|
|
357
358
|
return pulumi.get(self, "region")
|
|
358
359
|
|
|
359
360
|
@region.setter
|
|
360
|
-
def region(self, value: Optional[pulumi.Input[Union[str, 'Region']]]):
|
|
361
|
+
def region(self, value: Optional[pulumi.Input[Union[_builtins.str, 'Region']]]):
|
|
361
362
|
pulumi.set(self, "region", value)
|
|
362
363
|
|
|
363
|
-
@property
|
|
364
|
+
@_builtins.property
|
|
364
365
|
@pulumi.getter
|
|
365
|
-
def size(self) -> Optional[pulumi.Input[str]]:
|
|
366
|
+
def size(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
366
367
|
"""
|
|
367
368
|
The size of the Load Balancer. It must be either `lb-small`, `lb-medium`, or `lb-large`. Defaults to `lb-small`. Only one of `size` or `size_unit` may be provided.
|
|
368
369
|
"""
|
|
369
370
|
return pulumi.get(self, "size")
|
|
370
371
|
|
|
371
372
|
@size.setter
|
|
372
|
-
def size(self, value: Optional[pulumi.Input[str]]):
|
|
373
|
+
def size(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
373
374
|
pulumi.set(self, "size", value)
|
|
374
375
|
|
|
375
|
-
@property
|
|
376
|
+
@_builtins.property
|
|
376
377
|
@pulumi.getter(name="sizeUnit")
|
|
377
|
-
def size_unit(self) -> Optional[pulumi.Input[int]]:
|
|
378
|
+
def size_unit(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
378
379
|
"""
|
|
379
380
|
The size of the Load Balancer. It must be in the range (1, 200). Defaults to `1`. Only one of `size` or `size_unit` may be provided.
|
|
380
381
|
"""
|
|
381
382
|
return pulumi.get(self, "size_unit")
|
|
382
383
|
|
|
383
384
|
@size_unit.setter
|
|
384
|
-
def size_unit(self, value: Optional[pulumi.Input[int]]):
|
|
385
|
+
def size_unit(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
385
386
|
pulumi.set(self, "size_unit", value)
|
|
386
387
|
|
|
387
|
-
@property
|
|
388
|
+
@_builtins.property
|
|
388
389
|
@pulumi.getter(name="stickySessions")
|
|
389
390
|
def sticky_sessions(self) -> Optional[pulumi.Input['LoadBalancerStickySessionsArgs']]:
|
|
390
391
|
"""
|
|
@@ -397,85 +398,97 @@ class LoadBalancerArgs:
|
|
|
397
398
|
def sticky_sessions(self, value: Optional[pulumi.Input['LoadBalancerStickySessionsArgs']]):
|
|
398
399
|
pulumi.set(self, "sticky_sessions", value)
|
|
399
400
|
|
|
400
|
-
@property
|
|
401
|
+
@_builtins.property
|
|
401
402
|
@pulumi.getter(name="targetLoadBalancerIds")
|
|
402
|
-
def target_load_balancer_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
403
|
+
def target_load_balancer_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
|
|
403
404
|
"""
|
|
404
405
|
A list of Load Balancer IDs to be attached behind a Global Load Balancer.
|
|
405
406
|
"""
|
|
406
407
|
return pulumi.get(self, "target_load_balancer_ids")
|
|
407
408
|
|
|
408
409
|
@target_load_balancer_ids.setter
|
|
409
|
-
def target_load_balancer_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
410
|
+
def target_load_balancer_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
|
|
410
411
|
pulumi.set(self, "target_load_balancer_ids", value)
|
|
411
412
|
|
|
412
|
-
@property
|
|
413
|
+
@_builtins.property
|
|
414
|
+
@pulumi.getter(name="tlsCipherPolicy")
|
|
415
|
+
def tls_cipher_policy(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
416
|
+
"""
|
|
417
|
+
The tls cipher policy controls the cipher suites to be used by the load balancer. It must be either of `DEFAULT` or `STRONG`. Defaults to `DEFAULT`.
|
|
418
|
+
"""
|
|
419
|
+
return pulumi.get(self, "tls_cipher_policy")
|
|
420
|
+
|
|
421
|
+
@tls_cipher_policy.setter
|
|
422
|
+
def tls_cipher_policy(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
423
|
+
pulumi.set(self, "tls_cipher_policy", value)
|
|
424
|
+
|
|
425
|
+
@_builtins.property
|
|
413
426
|
@pulumi.getter
|
|
414
|
-
def type(self) -> Optional[pulumi.Input[str]]:
|
|
427
|
+
def type(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
415
428
|
"""
|
|
416
429
|
The type of the Load Balancer. It must be either of `REGIONAL`, `REGIONAL_NETWORK`, or `GLOBAL`. Defaults to `REGIONAL`.
|
|
417
|
-
**NOTE**: non-`REGIONAL/GLOBAL` type may be part of closed beta feature and not available for public use.
|
|
418
430
|
"""
|
|
419
431
|
return pulumi.get(self, "type")
|
|
420
432
|
|
|
421
433
|
@type.setter
|
|
422
|
-
def type(self, value: Optional[pulumi.Input[str]]):
|
|
434
|
+
def type(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
423
435
|
pulumi.set(self, "type", value)
|
|
424
436
|
|
|
425
|
-
@property
|
|
437
|
+
@_builtins.property
|
|
426
438
|
@pulumi.getter(name="vpcUuid")
|
|
427
|
-
def vpc_uuid(self) -> Optional[pulumi.Input[str]]:
|
|
439
|
+
def vpc_uuid(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
428
440
|
"""
|
|
429
441
|
The ID of the VPC where the load balancer will be located.
|
|
430
442
|
"""
|
|
431
443
|
return pulumi.get(self, "vpc_uuid")
|
|
432
444
|
|
|
433
445
|
@vpc_uuid.setter
|
|
434
|
-
def vpc_uuid(self, value: Optional[pulumi.Input[str]]):
|
|
446
|
+
def vpc_uuid(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
435
447
|
pulumi.set(self, "vpc_uuid", value)
|
|
436
448
|
|
|
437
449
|
|
|
438
450
|
@pulumi.input_type
|
|
439
451
|
class _LoadBalancerState:
|
|
440
452
|
def __init__(__self__, *,
|
|
441
|
-
algorithm: Optional[pulumi.Input[Union[str, 'Algorithm']]] = None,
|
|
442
|
-
disable_lets_encrypt_dns_records: Optional[pulumi.Input[bool]] = None,
|
|
453
|
+
algorithm: Optional[pulumi.Input[Union[_builtins.str, 'Algorithm']]] = None,
|
|
454
|
+
disable_lets_encrypt_dns_records: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
443
455
|
domains: Optional[pulumi.Input[Sequence[pulumi.Input['LoadBalancerDomainArgs']]]] = None,
|
|
444
|
-
droplet_ids: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None,
|
|
445
|
-
droplet_tag: Optional[pulumi.Input[str]] = None,
|
|
446
|
-
enable_backend_keepalive: Optional[pulumi.Input[bool]] = None,
|
|
447
|
-
enable_proxy_protocol: Optional[pulumi.Input[bool]] = None,
|
|
456
|
+
droplet_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.int]]]] = None,
|
|
457
|
+
droplet_tag: Optional[pulumi.Input[_builtins.str]] = None,
|
|
458
|
+
enable_backend_keepalive: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
459
|
+
enable_proxy_protocol: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
448
460
|
firewall: Optional[pulumi.Input['LoadBalancerFirewallArgs']] = None,
|
|
449
461
|
forwarding_rules: Optional[pulumi.Input[Sequence[pulumi.Input['LoadBalancerForwardingRuleArgs']]]] = None,
|
|
450
462
|
glb_settings: Optional[pulumi.Input['LoadBalancerGlbSettingsArgs']] = None,
|
|
451
463
|
healthcheck: Optional[pulumi.Input['LoadBalancerHealthcheckArgs']] = None,
|
|
452
|
-
http_idle_timeout_seconds: Optional[pulumi.Input[int]] = None,
|
|
453
|
-
ip: Optional[pulumi.Input[str]] = None,
|
|
454
|
-
ipv6: Optional[pulumi.Input[str]] = None,
|
|
455
|
-
load_balancer_urn: Optional[pulumi.Input[str]] = None,
|
|
456
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
457
|
-
network: Optional[pulumi.Input[str]] = None,
|
|
458
|
-
network_stack: Optional[pulumi.Input[str]] = None,
|
|
459
|
-
project_id: Optional[pulumi.Input[str]] = None,
|
|
460
|
-
redirect_http_to_https: Optional[pulumi.Input[bool]] = None,
|
|
461
|
-
region: Optional[pulumi.Input[Union[str, 'Region']]] = None,
|
|
462
|
-
size: Optional[pulumi.Input[str]] = None,
|
|
463
|
-
size_unit: Optional[pulumi.Input[int]] = None,
|
|
464
|
-
status: Optional[pulumi.Input[str]] = None,
|
|
464
|
+
http_idle_timeout_seconds: Optional[pulumi.Input[_builtins.int]] = None,
|
|
465
|
+
ip: Optional[pulumi.Input[_builtins.str]] = None,
|
|
466
|
+
ipv6: Optional[pulumi.Input[_builtins.str]] = None,
|
|
467
|
+
load_balancer_urn: Optional[pulumi.Input[_builtins.str]] = None,
|
|
468
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
469
|
+
network: Optional[pulumi.Input[_builtins.str]] = None,
|
|
470
|
+
network_stack: Optional[pulumi.Input[_builtins.str]] = None,
|
|
471
|
+
project_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
472
|
+
redirect_http_to_https: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
473
|
+
region: Optional[pulumi.Input[Union[_builtins.str, 'Region']]] = None,
|
|
474
|
+
size: Optional[pulumi.Input[_builtins.str]] = None,
|
|
475
|
+
size_unit: Optional[pulumi.Input[_builtins.int]] = None,
|
|
476
|
+
status: Optional[pulumi.Input[_builtins.str]] = None,
|
|
465
477
|
sticky_sessions: Optional[pulumi.Input['LoadBalancerStickySessionsArgs']] = None,
|
|
466
|
-
target_load_balancer_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
467
|
-
|
|
468
|
-
|
|
478
|
+
target_load_balancer_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
479
|
+
tls_cipher_policy: Optional[pulumi.Input[_builtins.str]] = None,
|
|
480
|
+
type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
481
|
+
vpc_uuid: Optional[pulumi.Input[_builtins.str]] = None):
|
|
469
482
|
"""
|
|
470
483
|
Input properties used for looking up and filtering LoadBalancer resources.
|
|
471
|
-
:param pulumi.Input[Union[str, 'Algorithm']] algorithm: **Deprecated** This field has been deprecated. You can no longer specify an algorithm for load balancers.
|
|
484
|
+
:param pulumi.Input[Union[_builtins.str, 'Algorithm']] algorithm: **Deprecated** This field has been deprecated. You can no longer specify an algorithm for load balancers.
|
|
472
485
|
or `least_connections`. The default value is `round_robin`.
|
|
473
|
-
:param pulumi.Input[bool] disable_lets_encrypt_dns_records: A boolean value indicating whether to disable automatic DNS record creation for Let's Encrypt certificates that are added to the load balancer. Default value is `false`.
|
|
486
|
+
:param pulumi.Input[_builtins.bool] disable_lets_encrypt_dns_records: A boolean value indicating whether to disable automatic DNS record creation for Let's Encrypt certificates that are added to the load balancer. Default value is `false`.
|
|
474
487
|
:param pulumi.Input[Sequence[pulumi.Input['LoadBalancerDomainArgs']]] domains: A list of `domains` required to ingress traffic to a Global Load Balancer. The `domains` block is documented below.
|
|
475
|
-
:param pulumi.Input[Sequence[pulumi.Input[int]]] droplet_ids: A list of the IDs of each droplet to be attached to the Load Balancer.
|
|
476
|
-
:param pulumi.Input[str] droplet_tag: The name of a Droplet tag corresponding to Droplets to be assigned to the Load Balancer.
|
|
477
|
-
:param pulumi.Input[bool] enable_backend_keepalive: A boolean value indicating whether HTTP keepalive connections are maintained to target Droplets. Default value is `false`.
|
|
478
|
-
:param pulumi.Input[bool] enable_proxy_protocol: A boolean value indicating whether PROXY
|
|
488
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.int]]] droplet_ids: A list of the IDs of each droplet to be attached to the Load Balancer.
|
|
489
|
+
:param pulumi.Input[_builtins.str] droplet_tag: The name of a Droplet tag corresponding to Droplets to be assigned to the Load Balancer.
|
|
490
|
+
:param pulumi.Input[_builtins.bool] enable_backend_keepalive: A boolean value indicating whether HTTP keepalive connections are maintained to target Droplets. Default value is `false`.
|
|
491
|
+
:param pulumi.Input[_builtins.bool] enable_proxy_protocol: A boolean value indicating whether PROXY
|
|
479
492
|
Protocol should be used to pass information from connecting client requests to
|
|
480
493
|
the backend service. Default value is `false`.
|
|
481
494
|
:param pulumi.Input['LoadBalancerFirewallArgs'] firewall: A block containing rules for allowing/denying traffic to the Load Balancer. The `firewall` block is documented below. Only 1 firewall is allowed.
|
|
@@ -484,26 +497,25 @@ class _LoadBalancerState:
|
|
|
484
497
|
:param pulumi.Input['LoadBalancerGlbSettingsArgs'] glb_settings: A block containing `glb_settings` required to define target rules for a Global Load Balancer. The `glb_settings` block is documented below.
|
|
485
498
|
:param pulumi.Input['LoadBalancerHealthcheckArgs'] healthcheck: A `healthcheck` block to be assigned to the
|
|
486
499
|
Load Balancer. The `healthcheck` block is documented below. Only 1 healthcheck is allowed.
|
|
487
|
-
:param pulumi.Input[int] http_idle_timeout_seconds: Specifies the idle timeout for HTTPS connections on the load balancer in seconds.
|
|
488
|
-
:param pulumi.Input[str] ip: The ip of the Load Balancer
|
|
489
|
-
:param pulumi.Input[str] load_balancer_urn: The uniform resource name for the Load Balancer
|
|
490
|
-
:param pulumi.Input[str] name: The Load Balancer name
|
|
491
|
-
:param pulumi.Input[str] network: The type of network the Load Balancer is accessible from. It must be either of `INTERNAL` or `EXTERNAL`. Defaults to `EXTERNAL`.
|
|
492
|
-
:param pulumi.Input[str] network_stack: The network stack determines the allocation of ipv4/ipv6 addresses to the load balancer. It must be either of `IPV4` or `DUALSTACK`. Defaults to `IPV4`.
|
|
493
|
-
|
|
494
|
-
:param pulumi.Input[
|
|
495
|
-
:param pulumi.Input[bool] redirect_http_to_https: A boolean value indicating whether
|
|
500
|
+
:param pulumi.Input[_builtins.int] http_idle_timeout_seconds: Specifies the idle timeout for HTTPS connections on the load balancer in seconds.
|
|
501
|
+
:param pulumi.Input[_builtins.str] ip: The ip of the Load Balancer
|
|
502
|
+
:param pulumi.Input[_builtins.str] load_balancer_urn: The uniform resource name for the Load Balancer
|
|
503
|
+
:param pulumi.Input[_builtins.str] name: The Load Balancer name
|
|
504
|
+
:param pulumi.Input[_builtins.str] network: The type of network the Load Balancer is accessible from. It must be either of `INTERNAL` or `EXTERNAL`. Defaults to `EXTERNAL`.
|
|
505
|
+
:param pulumi.Input[_builtins.str] network_stack: The network stack determines the allocation of ipv4/ipv6 addresses to the load balancer. It must be either of `IPV4` or `DUALSTACK`. Defaults to `IPV4`.
|
|
506
|
+
:param pulumi.Input[_builtins.str] project_id: The ID of the project that the load balancer is associated with. If no ID is provided at creation, the load balancer associates with the user's default project.
|
|
507
|
+
:param pulumi.Input[_builtins.bool] redirect_http_to_https: A boolean value indicating whether
|
|
496
508
|
HTTP requests to the Load Balancer on port 80 will be redirected to HTTPS on port 443.
|
|
497
509
|
Default value is `false`.
|
|
498
|
-
:param pulumi.Input[Union[str, 'Region']] region: The region to start in
|
|
499
|
-
:param pulumi.Input[str] size: The size of the Load Balancer. It must be either `lb-small`, `lb-medium`, or `lb-large`. Defaults to `lb-small`. Only one of `size` or `size_unit` may be provided.
|
|
500
|
-
:param pulumi.Input[int] size_unit: The size of the Load Balancer. It must be in the range (1, 200). Defaults to `1`. Only one of `size` or `size_unit` may be provided.
|
|
510
|
+
:param pulumi.Input[Union[_builtins.str, 'Region']] region: The region to start in
|
|
511
|
+
:param pulumi.Input[_builtins.str] size: The size of the Load Balancer. It must be either `lb-small`, `lb-medium`, or `lb-large`. Defaults to `lb-small`. Only one of `size` or `size_unit` may be provided.
|
|
512
|
+
:param pulumi.Input[_builtins.int] size_unit: The size of the Load Balancer. It must be in the range (1, 200). Defaults to `1`. Only one of `size` or `size_unit` may be provided.
|
|
501
513
|
:param pulumi.Input['LoadBalancerStickySessionsArgs'] sticky_sessions: A `sticky_sessions` block to be assigned to the
|
|
502
514
|
Load Balancer. The `sticky_sessions` block is documented below. Only 1 sticky_sessions block is allowed.
|
|
503
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] target_load_balancer_ids: A list of Load Balancer IDs to be attached behind a Global Load Balancer.
|
|
504
|
-
:param pulumi.Input[str]
|
|
505
|
-
|
|
506
|
-
:param pulumi.Input[str] vpc_uuid: The ID of the VPC where the load balancer will be located.
|
|
515
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] target_load_balancer_ids: A list of Load Balancer IDs to be attached behind a Global Load Balancer.
|
|
516
|
+
:param pulumi.Input[_builtins.str] tls_cipher_policy: The tls cipher policy controls the cipher suites to be used by the load balancer. It must be either of `DEFAULT` or `STRONG`. Defaults to `DEFAULT`.
|
|
517
|
+
:param pulumi.Input[_builtins.str] type: The type of the Load Balancer. It must be either of `REGIONAL`, `REGIONAL_NETWORK`, or `GLOBAL`. Defaults to `REGIONAL`.
|
|
518
|
+
:param pulumi.Input[_builtins.str] vpc_uuid: The ID of the VPC where the load balancer will be located.
|
|
507
519
|
"""
|
|
508
520
|
if algorithm is not None:
|
|
509
521
|
warnings.warn("""This field has been deprecated. You can no longer specify an algorithm for load balancers.""", DeprecationWarning)
|
|
@@ -560,15 +572,17 @@ class _LoadBalancerState:
|
|
|
560
572
|
pulumi.set(__self__, "sticky_sessions", sticky_sessions)
|
|
561
573
|
if target_load_balancer_ids is not None:
|
|
562
574
|
pulumi.set(__self__, "target_load_balancer_ids", target_load_balancer_ids)
|
|
575
|
+
if tls_cipher_policy is not None:
|
|
576
|
+
pulumi.set(__self__, "tls_cipher_policy", tls_cipher_policy)
|
|
563
577
|
if type is not None:
|
|
564
578
|
pulumi.set(__self__, "type", type)
|
|
565
579
|
if vpc_uuid is not None:
|
|
566
580
|
pulumi.set(__self__, "vpc_uuid", vpc_uuid)
|
|
567
581
|
|
|
568
|
-
@property
|
|
582
|
+
@_builtins.property
|
|
569
583
|
@pulumi.getter
|
|
570
584
|
@_utilities.deprecated("""This field has been deprecated. You can no longer specify an algorithm for load balancers.""")
|
|
571
|
-
def algorithm(self) -> Optional[pulumi.Input[Union[str, 'Algorithm']]]:
|
|
585
|
+
def algorithm(self) -> Optional[pulumi.Input[Union[_builtins.str, 'Algorithm']]]:
|
|
572
586
|
"""
|
|
573
587
|
**Deprecated** This field has been deprecated. You can no longer specify an algorithm for load balancers.
|
|
574
588
|
or `least_connections`. The default value is `round_robin`.
|
|
@@ -576,22 +590,22 @@ class _LoadBalancerState:
|
|
|
576
590
|
return pulumi.get(self, "algorithm")
|
|
577
591
|
|
|
578
592
|
@algorithm.setter
|
|
579
|
-
def algorithm(self, value: Optional[pulumi.Input[Union[str, 'Algorithm']]]):
|
|
593
|
+
def algorithm(self, value: Optional[pulumi.Input[Union[_builtins.str, 'Algorithm']]]):
|
|
580
594
|
pulumi.set(self, "algorithm", value)
|
|
581
595
|
|
|
582
|
-
@property
|
|
596
|
+
@_builtins.property
|
|
583
597
|
@pulumi.getter(name="disableLetsEncryptDnsRecords")
|
|
584
|
-
def disable_lets_encrypt_dns_records(self) -> Optional[pulumi.Input[bool]]:
|
|
598
|
+
def disable_lets_encrypt_dns_records(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
585
599
|
"""
|
|
586
600
|
A boolean value indicating whether to disable automatic DNS record creation for Let's Encrypt certificates that are added to the load balancer. Default value is `false`.
|
|
587
601
|
"""
|
|
588
602
|
return pulumi.get(self, "disable_lets_encrypt_dns_records")
|
|
589
603
|
|
|
590
604
|
@disable_lets_encrypt_dns_records.setter
|
|
591
|
-
def disable_lets_encrypt_dns_records(self, value: Optional[pulumi.Input[bool]]):
|
|
605
|
+
def disable_lets_encrypt_dns_records(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
592
606
|
pulumi.set(self, "disable_lets_encrypt_dns_records", value)
|
|
593
607
|
|
|
594
|
-
@property
|
|
608
|
+
@_builtins.property
|
|
595
609
|
@pulumi.getter
|
|
596
610
|
def domains(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['LoadBalancerDomainArgs']]]]:
|
|
597
611
|
"""
|
|
@@ -603,45 +617,45 @@ class _LoadBalancerState:
|
|
|
603
617
|
def domains(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['LoadBalancerDomainArgs']]]]):
|
|
604
618
|
pulumi.set(self, "domains", value)
|
|
605
619
|
|
|
606
|
-
@property
|
|
620
|
+
@_builtins.property
|
|
607
621
|
@pulumi.getter(name="dropletIds")
|
|
608
|
-
def droplet_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[int]]]]:
|
|
622
|
+
def droplet_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.int]]]]:
|
|
609
623
|
"""
|
|
610
624
|
A list of the IDs of each droplet to be attached to the Load Balancer.
|
|
611
625
|
"""
|
|
612
626
|
return pulumi.get(self, "droplet_ids")
|
|
613
627
|
|
|
614
628
|
@droplet_ids.setter
|
|
615
|
-
def droplet_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]]):
|
|
629
|
+
def droplet_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.int]]]]):
|
|
616
630
|
pulumi.set(self, "droplet_ids", value)
|
|
617
631
|
|
|
618
|
-
@property
|
|
632
|
+
@_builtins.property
|
|
619
633
|
@pulumi.getter(name="dropletTag")
|
|
620
|
-
def droplet_tag(self) -> Optional[pulumi.Input[str]]:
|
|
634
|
+
def droplet_tag(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
621
635
|
"""
|
|
622
636
|
The name of a Droplet tag corresponding to Droplets to be assigned to the Load Balancer.
|
|
623
637
|
"""
|
|
624
638
|
return pulumi.get(self, "droplet_tag")
|
|
625
639
|
|
|
626
640
|
@droplet_tag.setter
|
|
627
|
-
def droplet_tag(self, value: Optional[pulumi.Input[str]]):
|
|
641
|
+
def droplet_tag(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
628
642
|
pulumi.set(self, "droplet_tag", value)
|
|
629
643
|
|
|
630
|
-
@property
|
|
644
|
+
@_builtins.property
|
|
631
645
|
@pulumi.getter(name="enableBackendKeepalive")
|
|
632
|
-
def enable_backend_keepalive(self) -> Optional[pulumi.Input[bool]]:
|
|
646
|
+
def enable_backend_keepalive(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
633
647
|
"""
|
|
634
648
|
A boolean value indicating whether HTTP keepalive connections are maintained to target Droplets. Default value is `false`.
|
|
635
649
|
"""
|
|
636
650
|
return pulumi.get(self, "enable_backend_keepalive")
|
|
637
651
|
|
|
638
652
|
@enable_backend_keepalive.setter
|
|
639
|
-
def enable_backend_keepalive(self, value: Optional[pulumi.Input[bool]]):
|
|
653
|
+
def enable_backend_keepalive(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
640
654
|
pulumi.set(self, "enable_backend_keepalive", value)
|
|
641
655
|
|
|
642
|
-
@property
|
|
656
|
+
@_builtins.property
|
|
643
657
|
@pulumi.getter(name="enableProxyProtocol")
|
|
644
|
-
def enable_proxy_protocol(self) -> Optional[pulumi.Input[bool]]:
|
|
658
|
+
def enable_proxy_protocol(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
645
659
|
"""
|
|
646
660
|
A boolean value indicating whether PROXY
|
|
647
661
|
Protocol should be used to pass information from connecting client requests to
|
|
@@ -650,10 +664,10 @@ class _LoadBalancerState:
|
|
|
650
664
|
return pulumi.get(self, "enable_proxy_protocol")
|
|
651
665
|
|
|
652
666
|
@enable_proxy_protocol.setter
|
|
653
|
-
def enable_proxy_protocol(self, value: Optional[pulumi.Input[bool]]):
|
|
667
|
+
def enable_proxy_protocol(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
654
668
|
pulumi.set(self, "enable_proxy_protocol", value)
|
|
655
669
|
|
|
656
|
-
@property
|
|
670
|
+
@_builtins.property
|
|
657
671
|
@pulumi.getter
|
|
658
672
|
def firewall(self) -> Optional[pulumi.Input['LoadBalancerFirewallArgs']]:
|
|
659
673
|
"""
|
|
@@ -665,7 +679,7 @@ class _LoadBalancerState:
|
|
|
665
679
|
def firewall(self, value: Optional[pulumi.Input['LoadBalancerFirewallArgs']]):
|
|
666
680
|
pulumi.set(self, "firewall", value)
|
|
667
681
|
|
|
668
|
-
@property
|
|
682
|
+
@_builtins.property
|
|
669
683
|
@pulumi.getter(name="forwardingRules")
|
|
670
684
|
def forwarding_rules(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['LoadBalancerForwardingRuleArgs']]]]:
|
|
671
685
|
"""
|
|
@@ -678,7 +692,7 @@ class _LoadBalancerState:
|
|
|
678
692
|
def forwarding_rules(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['LoadBalancerForwardingRuleArgs']]]]):
|
|
679
693
|
pulumi.set(self, "forwarding_rules", value)
|
|
680
694
|
|
|
681
|
-
@property
|
|
695
|
+
@_builtins.property
|
|
682
696
|
@pulumi.getter(name="glbSettings")
|
|
683
697
|
def glb_settings(self) -> Optional[pulumi.Input['LoadBalancerGlbSettingsArgs']]:
|
|
684
698
|
"""
|
|
@@ -690,7 +704,7 @@ class _LoadBalancerState:
|
|
|
690
704
|
def glb_settings(self, value: Optional[pulumi.Input['LoadBalancerGlbSettingsArgs']]):
|
|
691
705
|
pulumi.set(self, "glb_settings", value)
|
|
692
706
|
|
|
693
|
-
@property
|
|
707
|
+
@_builtins.property
|
|
694
708
|
@pulumi.getter
|
|
695
709
|
def healthcheck(self) -> Optional[pulumi.Input['LoadBalancerHealthcheckArgs']]:
|
|
696
710
|
"""
|
|
@@ -703,103 +717,102 @@ class _LoadBalancerState:
|
|
|
703
717
|
def healthcheck(self, value: Optional[pulumi.Input['LoadBalancerHealthcheckArgs']]):
|
|
704
718
|
pulumi.set(self, "healthcheck", value)
|
|
705
719
|
|
|
706
|
-
@property
|
|
720
|
+
@_builtins.property
|
|
707
721
|
@pulumi.getter(name="httpIdleTimeoutSeconds")
|
|
708
|
-
def http_idle_timeout_seconds(self) -> Optional[pulumi.Input[int]]:
|
|
722
|
+
def http_idle_timeout_seconds(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
709
723
|
"""
|
|
710
724
|
Specifies the idle timeout for HTTPS connections on the load balancer in seconds.
|
|
711
725
|
"""
|
|
712
726
|
return pulumi.get(self, "http_idle_timeout_seconds")
|
|
713
727
|
|
|
714
728
|
@http_idle_timeout_seconds.setter
|
|
715
|
-
def http_idle_timeout_seconds(self, value: Optional[pulumi.Input[int]]):
|
|
729
|
+
def http_idle_timeout_seconds(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
716
730
|
pulumi.set(self, "http_idle_timeout_seconds", value)
|
|
717
731
|
|
|
718
|
-
@property
|
|
732
|
+
@_builtins.property
|
|
719
733
|
@pulumi.getter
|
|
720
|
-
def ip(self) -> Optional[pulumi.Input[str]]:
|
|
734
|
+
def ip(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
721
735
|
"""
|
|
722
736
|
The ip of the Load Balancer
|
|
723
737
|
"""
|
|
724
738
|
return pulumi.get(self, "ip")
|
|
725
739
|
|
|
726
740
|
@ip.setter
|
|
727
|
-
def ip(self, value: Optional[pulumi.Input[str]]):
|
|
741
|
+
def ip(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
728
742
|
pulumi.set(self, "ip", value)
|
|
729
743
|
|
|
730
|
-
@property
|
|
744
|
+
@_builtins.property
|
|
731
745
|
@pulumi.getter
|
|
732
|
-
def ipv6(self) -> Optional[pulumi.Input[str]]:
|
|
746
|
+
def ipv6(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
733
747
|
return pulumi.get(self, "ipv6")
|
|
734
748
|
|
|
735
749
|
@ipv6.setter
|
|
736
|
-
def ipv6(self, value: Optional[pulumi.Input[str]]):
|
|
750
|
+
def ipv6(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
737
751
|
pulumi.set(self, "ipv6", value)
|
|
738
752
|
|
|
739
|
-
@property
|
|
753
|
+
@_builtins.property
|
|
740
754
|
@pulumi.getter(name="loadBalancerUrn")
|
|
741
|
-
def load_balancer_urn(self) -> Optional[pulumi.Input[str]]:
|
|
755
|
+
def load_balancer_urn(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
742
756
|
"""
|
|
743
757
|
The uniform resource name for the Load Balancer
|
|
744
758
|
"""
|
|
745
759
|
return pulumi.get(self, "load_balancer_urn")
|
|
746
760
|
|
|
747
761
|
@load_balancer_urn.setter
|
|
748
|
-
def load_balancer_urn(self, value: Optional[pulumi.Input[str]]):
|
|
762
|
+
def load_balancer_urn(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
749
763
|
pulumi.set(self, "load_balancer_urn", value)
|
|
750
764
|
|
|
751
|
-
@property
|
|
765
|
+
@_builtins.property
|
|
752
766
|
@pulumi.getter
|
|
753
|
-
def name(self) -> Optional[pulumi.Input[str]]:
|
|
767
|
+
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
754
768
|
"""
|
|
755
769
|
The Load Balancer name
|
|
756
770
|
"""
|
|
757
771
|
return pulumi.get(self, "name")
|
|
758
772
|
|
|
759
773
|
@name.setter
|
|
760
|
-
def name(self, value: Optional[pulumi.Input[str]]):
|
|
774
|
+
def name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
761
775
|
pulumi.set(self, "name", value)
|
|
762
776
|
|
|
763
|
-
@property
|
|
777
|
+
@_builtins.property
|
|
764
778
|
@pulumi.getter
|
|
765
|
-
def network(self) -> Optional[pulumi.Input[str]]:
|
|
779
|
+
def network(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
766
780
|
"""
|
|
767
781
|
The type of network the Load Balancer is accessible from. It must be either of `INTERNAL` or `EXTERNAL`. Defaults to `EXTERNAL`.
|
|
768
782
|
"""
|
|
769
783
|
return pulumi.get(self, "network")
|
|
770
784
|
|
|
771
785
|
@network.setter
|
|
772
|
-
def network(self, value: Optional[pulumi.Input[str]]):
|
|
786
|
+
def network(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
773
787
|
pulumi.set(self, "network", value)
|
|
774
788
|
|
|
775
|
-
@property
|
|
789
|
+
@_builtins.property
|
|
776
790
|
@pulumi.getter(name="networkStack")
|
|
777
|
-
def network_stack(self) -> Optional[pulumi.Input[str]]:
|
|
791
|
+
def network_stack(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
778
792
|
"""
|
|
779
793
|
The network stack determines the allocation of ipv4/ipv6 addresses to the load balancer. It must be either of `IPV4` or `DUALSTACK`. Defaults to `IPV4`.
|
|
780
|
-
**NOTE**: this feature is in private preview, and may not be available for public use
|
|
781
794
|
"""
|
|
782
795
|
return pulumi.get(self, "network_stack")
|
|
783
796
|
|
|
784
797
|
@network_stack.setter
|
|
785
|
-
def network_stack(self, value: Optional[pulumi.Input[str]]):
|
|
798
|
+
def network_stack(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
786
799
|
pulumi.set(self, "network_stack", value)
|
|
787
800
|
|
|
788
|
-
@property
|
|
801
|
+
@_builtins.property
|
|
789
802
|
@pulumi.getter(name="projectId")
|
|
790
|
-
def project_id(self) -> Optional[pulumi.Input[str]]:
|
|
803
|
+
def project_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
791
804
|
"""
|
|
792
805
|
The ID of the project that the load balancer is associated with. If no ID is provided at creation, the load balancer associates with the user's default project.
|
|
793
806
|
"""
|
|
794
807
|
return pulumi.get(self, "project_id")
|
|
795
808
|
|
|
796
809
|
@project_id.setter
|
|
797
|
-
def project_id(self, value: Optional[pulumi.Input[str]]):
|
|
810
|
+
def project_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
798
811
|
pulumi.set(self, "project_id", value)
|
|
799
812
|
|
|
800
|
-
@property
|
|
813
|
+
@_builtins.property
|
|
801
814
|
@pulumi.getter(name="redirectHttpToHttps")
|
|
802
|
-
def redirect_http_to_https(self) -> Optional[pulumi.Input[bool]]:
|
|
815
|
+
def redirect_http_to_https(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
803
816
|
"""
|
|
804
817
|
A boolean value indicating whether
|
|
805
818
|
HTTP requests to the Load Balancer on port 80 will be redirected to HTTPS on port 443.
|
|
@@ -808,55 +821,55 @@ class _LoadBalancerState:
|
|
|
808
821
|
return pulumi.get(self, "redirect_http_to_https")
|
|
809
822
|
|
|
810
823
|
@redirect_http_to_https.setter
|
|
811
|
-
def redirect_http_to_https(self, value: Optional[pulumi.Input[bool]]):
|
|
824
|
+
def redirect_http_to_https(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
812
825
|
pulumi.set(self, "redirect_http_to_https", value)
|
|
813
826
|
|
|
814
|
-
@property
|
|
827
|
+
@_builtins.property
|
|
815
828
|
@pulumi.getter
|
|
816
|
-
def region(self) -> Optional[pulumi.Input[Union[str, 'Region']]]:
|
|
829
|
+
def region(self) -> Optional[pulumi.Input[Union[_builtins.str, 'Region']]]:
|
|
817
830
|
"""
|
|
818
831
|
The region to start in
|
|
819
832
|
"""
|
|
820
833
|
return pulumi.get(self, "region")
|
|
821
834
|
|
|
822
835
|
@region.setter
|
|
823
|
-
def region(self, value: Optional[pulumi.Input[Union[str, 'Region']]]):
|
|
836
|
+
def region(self, value: Optional[pulumi.Input[Union[_builtins.str, 'Region']]]):
|
|
824
837
|
pulumi.set(self, "region", value)
|
|
825
838
|
|
|
826
|
-
@property
|
|
839
|
+
@_builtins.property
|
|
827
840
|
@pulumi.getter
|
|
828
|
-
def size(self) -> Optional[pulumi.Input[str]]:
|
|
841
|
+
def size(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
829
842
|
"""
|
|
830
843
|
The size of the Load Balancer. It must be either `lb-small`, `lb-medium`, or `lb-large`. Defaults to `lb-small`. Only one of `size` or `size_unit` may be provided.
|
|
831
844
|
"""
|
|
832
845
|
return pulumi.get(self, "size")
|
|
833
846
|
|
|
834
847
|
@size.setter
|
|
835
|
-
def size(self, value: Optional[pulumi.Input[str]]):
|
|
848
|
+
def size(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
836
849
|
pulumi.set(self, "size", value)
|
|
837
850
|
|
|
838
|
-
@property
|
|
851
|
+
@_builtins.property
|
|
839
852
|
@pulumi.getter(name="sizeUnit")
|
|
840
|
-
def size_unit(self) -> Optional[pulumi.Input[int]]:
|
|
853
|
+
def size_unit(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
841
854
|
"""
|
|
842
855
|
The size of the Load Balancer. It must be in the range (1, 200). Defaults to `1`. Only one of `size` or `size_unit` may be provided.
|
|
843
856
|
"""
|
|
844
857
|
return pulumi.get(self, "size_unit")
|
|
845
858
|
|
|
846
859
|
@size_unit.setter
|
|
847
|
-
def size_unit(self, value: Optional[pulumi.Input[int]]):
|
|
860
|
+
def size_unit(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
848
861
|
pulumi.set(self, "size_unit", value)
|
|
849
862
|
|
|
850
|
-
@property
|
|
863
|
+
@_builtins.property
|
|
851
864
|
@pulumi.getter
|
|
852
|
-
def status(self) -> Optional[pulumi.Input[str]]:
|
|
865
|
+
def status(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
853
866
|
return pulumi.get(self, "status")
|
|
854
867
|
|
|
855
868
|
@status.setter
|
|
856
|
-
def status(self, value: Optional[pulumi.Input[str]]):
|
|
869
|
+
def status(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
857
870
|
pulumi.set(self, "status", value)
|
|
858
871
|
|
|
859
|
-
@property
|
|
872
|
+
@_builtins.property
|
|
860
873
|
@pulumi.getter(name="stickySessions")
|
|
861
874
|
def sticky_sessions(self) -> Optional[pulumi.Input['LoadBalancerStickySessionsArgs']]:
|
|
862
875
|
"""
|
|
@@ -869,73 +882,86 @@ class _LoadBalancerState:
|
|
|
869
882
|
def sticky_sessions(self, value: Optional[pulumi.Input['LoadBalancerStickySessionsArgs']]):
|
|
870
883
|
pulumi.set(self, "sticky_sessions", value)
|
|
871
884
|
|
|
872
|
-
@property
|
|
885
|
+
@_builtins.property
|
|
873
886
|
@pulumi.getter(name="targetLoadBalancerIds")
|
|
874
|
-
def target_load_balancer_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
887
|
+
def target_load_balancer_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
|
|
875
888
|
"""
|
|
876
889
|
A list of Load Balancer IDs to be attached behind a Global Load Balancer.
|
|
877
890
|
"""
|
|
878
891
|
return pulumi.get(self, "target_load_balancer_ids")
|
|
879
892
|
|
|
880
893
|
@target_load_balancer_ids.setter
|
|
881
|
-
def target_load_balancer_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
894
|
+
def target_load_balancer_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
|
|
882
895
|
pulumi.set(self, "target_load_balancer_ids", value)
|
|
883
896
|
|
|
884
|
-
@property
|
|
897
|
+
@_builtins.property
|
|
898
|
+
@pulumi.getter(name="tlsCipherPolicy")
|
|
899
|
+
def tls_cipher_policy(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
900
|
+
"""
|
|
901
|
+
The tls cipher policy controls the cipher suites to be used by the load balancer. It must be either of `DEFAULT` or `STRONG`. Defaults to `DEFAULT`.
|
|
902
|
+
"""
|
|
903
|
+
return pulumi.get(self, "tls_cipher_policy")
|
|
904
|
+
|
|
905
|
+
@tls_cipher_policy.setter
|
|
906
|
+
def tls_cipher_policy(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
907
|
+
pulumi.set(self, "tls_cipher_policy", value)
|
|
908
|
+
|
|
909
|
+
@_builtins.property
|
|
885
910
|
@pulumi.getter
|
|
886
|
-
def type(self) -> Optional[pulumi.Input[str]]:
|
|
911
|
+
def type(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
887
912
|
"""
|
|
888
913
|
The type of the Load Balancer. It must be either of `REGIONAL`, `REGIONAL_NETWORK`, or `GLOBAL`. Defaults to `REGIONAL`.
|
|
889
|
-
**NOTE**: non-`REGIONAL/GLOBAL` type may be part of closed beta feature and not available for public use.
|
|
890
914
|
"""
|
|
891
915
|
return pulumi.get(self, "type")
|
|
892
916
|
|
|
893
917
|
@type.setter
|
|
894
|
-
def type(self, value: Optional[pulumi.Input[str]]):
|
|
918
|
+
def type(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
895
919
|
pulumi.set(self, "type", value)
|
|
896
920
|
|
|
897
|
-
@property
|
|
921
|
+
@_builtins.property
|
|
898
922
|
@pulumi.getter(name="vpcUuid")
|
|
899
|
-
def vpc_uuid(self) -> Optional[pulumi.Input[str]]:
|
|
923
|
+
def vpc_uuid(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
900
924
|
"""
|
|
901
925
|
The ID of the VPC where the load balancer will be located.
|
|
902
926
|
"""
|
|
903
927
|
return pulumi.get(self, "vpc_uuid")
|
|
904
928
|
|
|
905
929
|
@vpc_uuid.setter
|
|
906
|
-
def vpc_uuid(self, value: Optional[pulumi.Input[str]]):
|
|
930
|
+
def vpc_uuid(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
907
931
|
pulumi.set(self, "vpc_uuid", value)
|
|
908
932
|
|
|
909
933
|
|
|
934
|
+
@pulumi.type_token("digitalocean:index/loadBalancer:LoadBalancer")
|
|
910
935
|
class LoadBalancer(pulumi.CustomResource):
|
|
911
936
|
@overload
|
|
912
937
|
def __init__(__self__,
|
|
913
938
|
resource_name: str,
|
|
914
939
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
915
|
-
algorithm: Optional[pulumi.Input[Union[str, 'Algorithm']]] = None,
|
|
916
|
-
disable_lets_encrypt_dns_records: Optional[pulumi.Input[bool]] = None,
|
|
940
|
+
algorithm: Optional[pulumi.Input[Union[_builtins.str, 'Algorithm']]] = None,
|
|
941
|
+
disable_lets_encrypt_dns_records: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
917
942
|
domains: Optional[pulumi.Input[Sequence[pulumi.Input[Union['LoadBalancerDomainArgs', 'LoadBalancerDomainArgsDict']]]]] = None,
|
|
918
|
-
droplet_ids: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None,
|
|
919
|
-
droplet_tag: Optional[pulumi.Input[str]] = None,
|
|
920
|
-
enable_backend_keepalive: Optional[pulumi.Input[bool]] = None,
|
|
921
|
-
enable_proxy_protocol: Optional[pulumi.Input[bool]] = None,
|
|
943
|
+
droplet_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.int]]]] = None,
|
|
944
|
+
droplet_tag: Optional[pulumi.Input[_builtins.str]] = None,
|
|
945
|
+
enable_backend_keepalive: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
946
|
+
enable_proxy_protocol: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
922
947
|
firewall: Optional[pulumi.Input[Union['LoadBalancerFirewallArgs', 'LoadBalancerFirewallArgsDict']]] = None,
|
|
923
948
|
forwarding_rules: Optional[pulumi.Input[Sequence[pulumi.Input[Union['LoadBalancerForwardingRuleArgs', 'LoadBalancerForwardingRuleArgsDict']]]]] = None,
|
|
924
949
|
glb_settings: Optional[pulumi.Input[Union['LoadBalancerGlbSettingsArgs', 'LoadBalancerGlbSettingsArgsDict']]] = None,
|
|
925
950
|
healthcheck: Optional[pulumi.Input[Union['LoadBalancerHealthcheckArgs', 'LoadBalancerHealthcheckArgsDict']]] = None,
|
|
926
|
-
http_idle_timeout_seconds: Optional[pulumi.Input[int]] = None,
|
|
927
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
928
|
-
network: Optional[pulumi.Input[str]] = None,
|
|
929
|
-
network_stack: Optional[pulumi.Input[str]] = None,
|
|
930
|
-
project_id: Optional[pulumi.Input[str]] = None,
|
|
931
|
-
redirect_http_to_https: Optional[pulumi.Input[bool]] = None,
|
|
932
|
-
region: Optional[pulumi.Input[Union[str, 'Region']]] = None,
|
|
933
|
-
size: Optional[pulumi.Input[str]] = None,
|
|
934
|
-
size_unit: Optional[pulumi.Input[int]] = None,
|
|
951
|
+
http_idle_timeout_seconds: Optional[pulumi.Input[_builtins.int]] = None,
|
|
952
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
953
|
+
network: Optional[pulumi.Input[_builtins.str]] = None,
|
|
954
|
+
network_stack: Optional[pulumi.Input[_builtins.str]] = None,
|
|
955
|
+
project_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
956
|
+
redirect_http_to_https: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
957
|
+
region: Optional[pulumi.Input[Union[_builtins.str, 'Region']]] = None,
|
|
958
|
+
size: Optional[pulumi.Input[_builtins.str]] = None,
|
|
959
|
+
size_unit: Optional[pulumi.Input[_builtins.int]] = None,
|
|
935
960
|
sticky_sessions: Optional[pulumi.Input[Union['LoadBalancerStickySessionsArgs', 'LoadBalancerStickySessionsArgsDict']]] = None,
|
|
936
|
-
target_load_balancer_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
937
|
-
|
|
938
|
-
|
|
961
|
+
target_load_balancer_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
962
|
+
tls_cipher_policy: Optional[pulumi.Input[_builtins.str]] = None,
|
|
963
|
+
type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
964
|
+
vpc_uuid: Optional[pulumi.Input[_builtins.str]] = None,
|
|
939
965
|
__props__=None):
|
|
940
966
|
"""
|
|
941
967
|
Provides a DigitalOcean Load Balancer resource. This can be used to create,
|
|
@@ -984,14 +1010,14 @@ class LoadBalancer(pulumi.CustomResource):
|
|
|
984
1010
|
|
|
985
1011
|
:param str resource_name: The name of the resource.
|
|
986
1012
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
987
|
-
:param pulumi.Input[Union[str, 'Algorithm']] algorithm: **Deprecated** This field has been deprecated. You can no longer specify an algorithm for load balancers.
|
|
1013
|
+
:param pulumi.Input[Union[_builtins.str, 'Algorithm']] algorithm: **Deprecated** This field has been deprecated. You can no longer specify an algorithm for load balancers.
|
|
988
1014
|
or `least_connections`. The default value is `round_robin`.
|
|
989
|
-
:param pulumi.Input[bool] disable_lets_encrypt_dns_records: A boolean value indicating whether to disable automatic DNS record creation for Let's Encrypt certificates that are added to the load balancer. Default value is `false`.
|
|
1015
|
+
:param pulumi.Input[_builtins.bool] disable_lets_encrypt_dns_records: A boolean value indicating whether to disable automatic DNS record creation for Let's Encrypt certificates that are added to the load balancer. Default value is `false`.
|
|
990
1016
|
:param pulumi.Input[Sequence[pulumi.Input[Union['LoadBalancerDomainArgs', 'LoadBalancerDomainArgsDict']]]] domains: A list of `domains` required to ingress traffic to a Global Load Balancer. The `domains` block is documented below.
|
|
991
|
-
:param pulumi.Input[Sequence[pulumi.Input[int]]] droplet_ids: A list of the IDs of each droplet to be attached to the Load Balancer.
|
|
992
|
-
:param pulumi.Input[str] droplet_tag: The name of a Droplet tag corresponding to Droplets to be assigned to the Load Balancer.
|
|
993
|
-
:param pulumi.Input[bool] enable_backend_keepalive: A boolean value indicating whether HTTP keepalive connections are maintained to target Droplets. Default value is `false`.
|
|
994
|
-
:param pulumi.Input[bool] enable_proxy_protocol: A boolean value indicating whether PROXY
|
|
1017
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.int]]] droplet_ids: A list of the IDs of each droplet to be attached to the Load Balancer.
|
|
1018
|
+
:param pulumi.Input[_builtins.str] droplet_tag: The name of a Droplet tag corresponding to Droplets to be assigned to the Load Balancer.
|
|
1019
|
+
:param pulumi.Input[_builtins.bool] enable_backend_keepalive: A boolean value indicating whether HTTP keepalive connections are maintained to target Droplets. Default value is `false`.
|
|
1020
|
+
:param pulumi.Input[_builtins.bool] enable_proxy_protocol: A boolean value indicating whether PROXY
|
|
995
1021
|
Protocol should be used to pass information from connecting client requests to
|
|
996
1022
|
the backend service. Default value is `false`.
|
|
997
1023
|
:param pulumi.Input[Union['LoadBalancerFirewallArgs', 'LoadBalancerFirewallArgsDict']] firewall: A block containing rules for allowing/denying traffic to the Load Balancer. The `firewall` block is documented below. Only 1 firewall is allowed.
|
|
@@ -1000,24 +1026,23 @@ class LoadBalancer(pulumi.CustomResource):
|
|
|
1000
1026
|
:param pulumi.Input[Union['LoadBalancerGlbSettingsArgs', 'LoadBalancerGlbSettingsArgsDict']] glb_settings: A block containing `glb_settings` required to define target rules for a Global Load Balancer. The `glb_settings` block is documented below.
|
|
1001
1027
|
:param pulumi.Input[Union['LoadBalancerHealthcheckArgs', 'LoadBalancerHealthcheckArgsDict']] healthcheck: A `healthcheck` block to be assigned to the
|
|
1002
1028
|
Load Balancer. The `healthcheck` block is documented below. Only 1 healthcheck is allowed.
|
|
1003
|
-
:param pulumi.Input[int] http_idle_timeout_seconds: Specifies the idle timeout for HTTPS connections on the load balancer in seconds.
|
|
1004
|
-
:param pulumi.Input[str] name: The Load Balancer name
|
|
1005
|
-
:param pulumi.Input[str] network: The type of network the Load Balancer is accessible from. It must be either of `INTERNAL` or `EXTERNAL`. Defaults to `EXTERNAL`.
|
|
1006
|
-
:param pulumi.Input[str] network_stack: The network stack determines the allocation of ipv4/ipv6 addresses to the load balancer. It must be either of `IPV4` or `DUALSTACK`. Defaults to `IPV4`.
|
|
1007
|
-
|
|
1008
|
-
:param pulumi.Input[
|
|
1009
|
-
:param pulumi.Input[bool] redirect_http_to_https: A boolean value indicating whether
|
|
1029
|
+
:param pulumi.Input[_builtins.int] http_idle_timeout_seconds: Specifies the idle timeout for HTTPS connections on the load balancer in seconds.
|
|
1030
|
+
:param pulumi.Input[_builtins.str] name: The Load Balancer name
|
|
1031
|
+
:param pulumi.Input[_builtins.str] network: The type of network the Load Balancer is accessible from. It must be either of `INTERNAL` or `EXTERNAL`. Defaults to `EXTERNAL`.
|
|
1032
|
+
:param pulumi.Input[_builtins.str] network_stack: The network stack determines the allocation of ipv4/ipv6 addresses to the load balancer. It must be either of `IPV4` or `DUALSTACK`. Defaults to `IPV4`.
|
|
1033
|
+
:param pulumi.Input[_builtins.str] project_id: The ID of the project that the load balancer is associated with. If no ID is provided at creation, the load balancer associates with the user's default project.
|
|
1034
|
+
:param pulumi.Input[_builtins.bool] redirect_http_to_https: A boolean value indicating whether
|
|
1010
1035
|
HTTP requests to the Load Balancer on port 80 will be redirected to HTTPS on port 443.
|
|
1011
1036
|
Default value is `false`.
|
|
1012
|
-
:param pulumi.Input[Union[str, 'Region']] region: The region to start in
|
|
1013
|
-
:param pulumi.Input[str] size: The size of the Load Balancer. It must be either `lb-small`, `lb-medium`, or `lb-large`. Defaults to `lb-small`. Only one of `size` or `size_unit` may be provided.
|
|
1014
|
-
:param pulumi.Input[int] size_unit: The size of the Load Balancer. It must be in the range (1, 200). Defaults to `1`. Only one of `size` or `size_unit` may be provided.
|
|
1037
|
+
:param pulumi.Input[Union[_builtins.str, 'Region']] region: The region to start in
|
|
1038
|
+
:param pulumi.Input[_builtins.str] size: The size of the Load Balancer. It must be either `lb-small`, `lb-medium`, or `lb-large`. Defaults to `lb-small`. Only one of `size` or `size_unit` may be provided.
|
|
1039
|
+
:param pulumi.Input[_builtins.int] size_unit: The size of the Load Balancer. It must be in the range (1, 200). Defaults to `1`. Only one of `size` or `size_unit` may be provided.
|
|
1015
1040
|
:param pulumi.Input[Union['LoadBalancerStickySessionsArgs', 'LoadBalancerStickySessionsArgsDict']] sticky_sessions: A `sticky_sessions` block to be assigned to the
|
|
1016
1041
|
Load Balancer. The `sticky_sessions` block is documented below. Only 1 sticky_sessions block is allowed.
|
|
1017
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] target_load_balancer_ids: A list of Load Balancer IDs to be attached behind a Global Load Balancer.
|
|
1018
|
-
:param pulumi.Input[str]
|
|
1019
|
-
|
|
1020
|
-
:param pulumi.Input[str] vpc_uuid: The ID of the VPC where the load balancer will be located.
|
|
1042
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] target_load_balancer_ids: A list of Load Balancer IDs to be attached behind a Global Load Balancer.
|
|
1043
|
+
:param pulumi.Input[_builtins.str] tls_cipher_policy: The tls cipher policy controls the cipher suites to be used by the load balancer. It must be either of `DEFAULT` or `STRONG`. Defaults to `DEFAULT`.
|
|
1044
|
+
:param pulumi.Input[_builtins.str] type: The type of the Load Balancer. It must be either of `REGIONAL`, `REGIONAL_NETWORK`, or `GLOBAL`. Defaults to `REGIONAL`.
|
|
1045
|
+
:param pulumi.Input[_builtins.str] vpc_uuid: The ID of the VPC where the load balancer will be located.
|
|
1021
1046
|
"""
|
|
1022
1047
|
...
|
|
1023
1048
|
@overload
|
|
@@ -1085,30 +1110,31 @@ class LoadBalancer(pulumi.CustomResource):
|
|
|
1085
1110
|
def _internal_init(__self__,
|
|
1086
1111
|
resource_name: str,
|
|
1087
1112
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
1088
|
-
algorithm: Optional[pulumi.Input[Union[str, 'Algorithm']]] = None,
|
|
1089
|
-
disable_lets_encrypt_dns_records: Optional[pulumi.Input[bool]] = None,
|
|
1113
|
+
algorithm: Optional[pulumi.Input[Union[_builtins.str, 'Algorithm']]] = None,
|
|
1114
|
+
disable_lets_encrypt_dns_records: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
1090
1115
|
domains: Optional[pulumi.Input[Sequence[pulumi.Input[Union['LoadBalancerDomainArgs', 'LoadBalancerDomainArgsDict']]]]] = None,
|
|
1091
|
-
droplet_ids: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None,
|
|
1092
|
-
droplet_tag: Optional[pulumi.Input[str]] = None,
|
|
1093
|
-
enable_backend_keepalive: Optional[pulumi.Input[bool]] = None,
|
|
1094
|
-
enable_proxy_protocol: Optional[pulumi.Input[bool]] = None,
|
|
1116
|
+
droplet_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.int]]]] = None,
|
|
1117
|
+
droplet_tag: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1118
|
+
enable_backend_keepalive: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
1119
|
+
enable_proxy_protocol: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
1095
1120
|
firewall: Optional[pulumi.Input[Union['LoadBalancerFirewallArgs', 'LoadBalancerFirewallArgsDict']]] = None,
|
|
1096
1121
|
forwarding_rules: Optional[pulumi.Input[Sequence[pulumi.Input[Union['LoadBalancerForwardingRuleArgs', 'LoadBalancerForwardingRuleArgsDict']]]]] = None,
|
|
1097
1122
|
glb_settings: Optional[pulumi.Input[Union['LoadBalancerGlbSettingsArgs', 'LoadBalancerGlbSettingsArgsDict']]] = None,
|
|
1098
1123
|
healthcheck: Optional[pulumi.Input[Union['LoadBalancerHealthcheckArgs', 'LoadBalancerHealthcheckArgsDict']]] = None,
|
|
1099
|
-
http_idle_timeout_seconds: Optional[pulumi.Input[int]] = None,
|
|
1100
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
1101
|
-
network: Optional[pulumi.Input[str]] = None,
|
|
1102
|
-
network_stack: Optional[pulumi.Input[str]] = None,
|
|
1103
|
-
project_id: Optional[pulumi.Input[str]] = None,
|
|
1104
|
-
redirect_http_to_https: Optional[pulumi.Input[bool]] = None,
|
|
1105
|
-
region: Optional[pulumi.Input[Union[str, 'Region']]] = None,
|
|
1106
|
-
size: Optional[pulumi.Input[str]] = None,
|
|
1107
|
-
size_unit: Optional[pulumi.Input[int]] = None,
|
|
1124
|
+
http_idle_timeout_seconds: Optional[pulumi.Input[_builtins.int]] = None,
|
|
1125
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1126
|
+
network: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1127
|
+
network_stack: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1128
|
+
project_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1129
|
+
redirect_http_to_https: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
1130
|
+
region: Optional[pulumi.Input[Union[_builtins.str, 'Region']]] = None,
|
|
1131
|
+
size: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1132
|
+
size_unit: Optional[pulumi.Input[_builtins.int]] = None,
|
|
1108
1133
|
sticky_sessions: Optional[pulumi.Input[Union['LoadBalancerStickySessionsArgs', 'LoadBalancerStickySessionsArgsDict']]] = None,
|
|
1109
|
-
target_load_balancer_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
1110
|
-
|
|
1111
|
-
|
|
1134
|
+
target_load_balancer_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
1135
|
+
tls_cipher_policy: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1136
|
+
type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1137
|
+
vpc_uuid: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1112
1138
|
__props__=None):
|
|
1113
1139
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
1114
1140
|
if not isinstance(opts, pulumi.ResourceOptions):
|
|
@@ -1140,6 +1166,7 @@ class LoadBalancer(pulumi.CustomResource):
|
|
|
1140
1166
|
__props__.__dict__["size_unit"] = size_unit
|
|
1141
1167
|
__props__.__dict__["sticky_sessions"] = sticky_sessions
|
|
1142
1168
|
__props__.__dict__["target_load_balancer_ids"] = target_load_balancer_ids
|
|
1169
|
+
__props__.__dict__["tls_cipher_policy"] = tls_cipher_policy
|
|
1143
1170
|
__props__.__dict__["type"] = type
|
|
1144
1171
|
__props__.__dict__["vpc_uuid"] = vpc_uuid
|
|
1145
1172
|
__props__.__dict__["ip"] = None
|
|
@@ -1156,34 +1183,35 @@ class LoadBalancer(pulumi.CustomResource):
|
|
|
1156
1183
|
def get(resource_name: str,
|
|
1157
1184
|
id: pulumi.Input[str],
|
|
1158
1185
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
1159
|
-
algorithm: Optional[pulumi.Input[Union[str, 'Algorithm']]] = None,
|
|
1160
|
-
disable_lets_encrypt_dns_records: Optional[pulumi.Input[bool]] = None,
|
|
1186
|
+
algorithm: Optional[pulumi.Input[Union[_builtins.str, 'Algorithm']]] = None,
|
|
1187
|
+
disable_lets_encrypt_dns_records: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
1161
1188
|
domains: Optional[pulumi.Input[Sequence[pulumi.Input[Union['LoadBalancerDomainArgs', 'LoadBalancerDomainArgsDict']]]]] = None,
|
|
1162
|
-
droplet_ids: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None,
|
|
1163
|
-
droplet_tag: Optional[pulumi.Input[str]] = None,
|
|
1164
|
-
enable_backend_keepalive: Optional[pulumi.Input[bool]] = None,
|
|
1165
|
-
enable_proxy_protocol: Optional[pulumi.Input[bool]] = None,
|
|
1189
|
+
droplet_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.int]]]] = None,
|
|
1190
|
+
droplet_tag: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1191
|
+
enable_backend_keepalive: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
1192
|
+
enable_proxy_protocol: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
1166
1193
|
firewall: Optional[pulumi.Input[Union['LoadBalancerFirewallArgs', 'LoadBalancerFirewallArgsDict']]] = None,
|
|
1167
1194
|
forwarding_rules: Optional[pulumi.Input[Sequence[pulumi.Input[Union['LoadBalancerForwardingRuleArgs', 'LoadBalancerForwardingRuleArgsDict']]]]] = None,
|
|
1168
1195
|
glb_settings: Optional[pulumi.Input[Union['LoadBalancerGlbSettingsArgs', 'LoadBalancerGlbSettingsArgsDict']]] = None,
|
|
1169
1196
|
healthcheck: Optional[pulumi.Input[Union['LoadBalancerHealthcheckArgs', 'LoadBalancerHealthcheckArgsDict']]] = None,
|
|
1170
|
-
http_idle_timeout_seconds: Optional[pulumi.Input[int]] = None,
|
|
1171
|
-
ip: Optional[pulumi.Input[str]] = None,
|
|
1172
|
-
ipv6: Optional[pulumi.Input[str]] = None,
|
|
1173
|
-
load_balancer_urn: Optional[pulumi.Input[str]] = None,
|
|
1174
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
1175
|
-
network: Optional[pulumi.Input[str]] = None,
|
|
1176
|
-
network_stack: Optional[pulumi.Input[str]] = None,
|
|
1177
|
-
project_id: Optional[pulumi.Input[str]] = None,
|
|
1178
|
-
redirect_http_to_https: Optional[pulumi.Input[bool]] = None,
|
|
1179
|
-
region: Optional[pulumi.Input[Union[str, 'Region']]] = None,
|
|
1180
|
-
size: Optional[pulumi.Input[str]] = None,
|
|
1181
|
-
size_unit: Optional[pulumi.Input[int]] = None,
|
|
1182
|
-
status: Optional[pulumi.Input[str]] = None,
|
|
1197
|
+
http_idle_timeout_seconds: Optional[pulumi.Input[_builtins.int]] = None,
|
|
1198
|
+
ip: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1199
|
+
ipv6: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1200
|
+
load_balancer_urn: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1201
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1202
|
+
network: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1203
|
+
network_stack: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1204
|
+
project_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1205
|
+
redirect_http_to_https: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
1206
|
+
region: Optional[pulumi.Input[Union[_builtins.str, 'Region']]] = None,
|
|
1207
|
+
size: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1208
|
+
size_unit: Optional[pulumi.Input[_builtins.int]] = None,
|
|
1209
|
+
status: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1183
1210
|
sticky_sessions: Optional[pulumi.Input[Union['LoadBalancerStickySessionsArgs', 'LoadBalancerStickySessionsArgsDict']]] = None,
|
|
1184
|
-
target_load_balancer_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
1185
|
-
|
|
1186
|
-
|
|
1211
|
+
target_load_balancer_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
1212
|
+
tls_cipher_policy: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1213
|
+
type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1214
|
+
vpc_uuid: Optional[pulumi.Input[_builtins.str]] = None) -> 'LoadBalancer':
|
|
1187
1215
|
"""
|
|
1188
1216
|
Get an existing LoadBalancer resource's state with the given name, id, and optional extra
|
|
1189
1217
|
properties used to qualify the lookup.
|
|
@@ -1191,14 +1219,14 @@ class LoadBalancer(pulumi.CustomResource):
|
|
|
1191
1219
|
:param str resource_name: The unique name of the resulting resource.
|
|
1192
1220
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
1193
1221
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
1194
|
-
:param pulumi.Input[Union[str, 'Algorithm']] algorithm: **Deprecated** This field has been deprecated. You can no longer specify an algorithm for load balancers.
|
|
1222
|
+
:param pulumi.Input[Union[_builtins.str, 'Algorithm']] algorithm: **Deprecated** This field has been deprecated. You can no longer specify an algorithm for load balancers.
|
|
1195
1223
|
or `least_connections`. The default value is `round_robin`.
|
|
1196
|
-
:param pulumi.Input[bool] disable_lets_encrypt_dns_records: A boolean value indicating whether to disable automatic DNS record creation for Let's Encrypt certificates that are added to the load balancer. Default value is `false`.
|
|
1224
|
+
:param pulumi.Input[_builtins.bool] disable_lets_encrypt_dns_records: A boolean value indicating whether to disable automatic DNS record creation for Let's Encrypt certificates that are added to the load balancer. Default value is `false`.
|
|
1197
1225
|
:param pulumi.Input[Sequence[pulumi.Input[Union['LoadBalancerDomainArgs', 'LoadBalancerDomainArgsDict']]]] domains: A list of `domains` required to ingress traffic to a Global Load Balancer. The `domains` block is documented below.
|
|
1198
|
-
:param pulumi.Input[Sequence[pulumi.Input[int]]] droplet_ids: A list of the IDs of each droplet to be attached to the Load Balancer.
|
|
1199
|
-
:param pulumi.Input[str] droplet_tag: The name of a Droplet tag corresponding to Droplets to be assigned to the Load Balancer.
|
|
1200
|
-
:param pulumi.Input[bool] enable_backend_keepalive: A boolean value indicating whether HTTP keepalive connections are maintained to target Droplets. Default value is `false`.
|
|
1201
|
-
:param pulumi.Input[bool] enable_proxy_protocol: A boolean value indicating whether PROXY
|
|
1226
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.int]]] droplet_ids: A list of the IDs of each droplet to be attached to the Load Balancer.
|
|
1227
|
+
:param pulumi.Input[_builtins.str] droplet_tag: The name of a Droplet tag corresponding to Droplets to be assigned to the Load Balancer.
|
|
1228
|
+
:param pulumi.Input[_builtins.bool] enable_backend_keepalive: A boolean value indicating whether HTTP keepalive connections are maintained to target Droplets. Default value is `false`.
|
|
1229
|
+
:param pulumi.Input[_builtins.bool] enable_proxy_protocol: A boolean value indicating whether PROXY
|
|
1202
1230
|
Protocol should be used to pass information from connecting client requests to
|
|
1203
1231
|
the backend service. Default value is `false`.
|
|
1204
1232
|
:param pulumi.Input[Union['LoadBalancerFirewallArgs', 'LoadBalancerFirewallArgsDict']] firewall: A block containing rules for allowing/denying traffic to the Load Balancer. The `firewall` block is documented below. Only 1 firewall is allowed.
|
|
@@ -1207,26 +1235,25 @@ class LoadBalancer(pulumi.CustomResource):
|
|
|
1207
1235
|
:param pulumi.Input[Union['LoadBalancerGlbSettingsArgs', 'LoadBalancerGlbSettingsArgsDict']] glb_settings: A block containing `glb_settings` required to define target rules for a Global Load Balancer. The `glb_settings` block is documented below.
|
|
1208
1236
|
:param pulumi.Input[Union['LoadBalancerHealthcheckArgs', 'LoadBalancerHealthcheckArgsDict']] healthcheck: A `healthcheck` block to be assigned to the
|
|
1209
1237
|
Load Balancer. The `healthcheck` block is documented below. Only 1 healthcheck is allowed.
|
|
1210
|
-
:param pulumi.Input[int] http_idle_timeout_seconds: Specifies the idle timeout for HTTPS connections on the load balancer in seconds.
|
|
1211
|
-
:param pulumi.Input[str] ip: The ip of the Load Balancer
|
|
1212
|
-
:param pulumi.Input[str] load_balancer_urn: The uniform resource name for the Load Balancer
|
|
1213
|
-
:param pulumi.Input[str] name: The Load Balancer name
|
|
1214
|
-
:param pulumi.Input[str] network: The type of network the Load Balancer is accessible from. It must be either of `INTERNAL` or `EXTERNAL`. Defaults to `EXTERNAL`.
|
|
1215
|
-
:param pulumi.Input[str] network_stack: The network stack determines the allocation of ipv4/ipv6 addresses to the load balancer. It must be either of `IPV4` or `DUALSTACK`. Defaults to `IPV4`.
|
|
1216
|
-
|
|
1217
|
-
:param pulumi.Input[
|
|
1218
|
-
:param pulumi.Input[bool] redirect_http_to_https: A boolean value indicating whether
|
|
1238
|
+
:param pulumi.Input[_builtins.int] http_idle_timeout_seconds: Specifies the idle timeout for HTTPS connections on the load balancer in seconds.
|
|
1239
|
+
:param pulumi.Input[_builtins.str] ip: The ip of the Load Balancer
|
|
1240
|
+
:param pulumi.Input[_builtins.str] load_balancer_urn: The uniform resource name for the Load Balancer
|
|
1241
|
+
:param pulumi.Input[_builtins.str] name: The Load Balancer name
|
|
1242
|
+
:param pulumi.Input[_builtins.str] network: The type of network the Load Balancer is accessible from. It must be either of `INTERNAL` or `EXTERNAL`. Defaults to `EXTERNAL`.
|
|
1243
|
+
:param pulumi.Input[_builtins.str] network_stack: The network stack determines the allocation of ipv4/ipv6 addresses to the load balancer. It must be either of `IPV4` or `DUALSTACK`. Defaults to `IPV4`.
|
|
1244
|
+
:param pulumi.Input[_builtins.str] project_id: The ID of the project that the load balancer is associated with. If no ID is provided at creation, the load balancer associates with the user's default project.
|
|
1245
|
+
:param pulumi.Input[_builtins.bool] redirect_http_to_https: A boolean value indicating whether
|
|
1219
1246
|
HTTP requests to the Load Balancer on port 80 will be redirected to HTTPS on port 443.
|
|
1220
1247
|
Default value is `false`.
|
|
1221
|
-
:param pulumi.Input[Union[str, 'Region']] region: The region to start in
|
|
1222
|
-
:param pulumi.Input[str] size: The size of the Load Balancer. It must be either `lb-small`, `lb-medium`, or `lb-large`. Defaults to `lb-small`. Only one of `size` or `size_unit` may be provided.
|
|
1223
|
-
:param pulumi.Input[int] size_unit: The size of the Load Balancer. It must be in the range (1, 200). Defaults to `1`. Only one of `size` or `size_unit` may be provided.
|
|
1248
|
+
:param pulumi.Input[Union[_builtins.str, 'Region']] region: The region to start in
|
|
1249
|
+
:param pulumi.Input[_builtins.str] size: The size of the Load Balancer. It must be either `lb-small`, `lb-medium`, or `lb-large`. Defaults to `lb-small`. Only one of `size` or `size_unit` may be provided.
|
|
1250
|
+
:param pulumi.Input[_builtins.int] size_unit: The size of the Load Balancer. It must be in the range (1, 200). Defaults to `1`. Only one of `size` or `size_unit` may be provided.
|
|
1224
1251
|
:param pulumi.Input[Union['LoadBalancerStickySessionsArgs', 'LoadBalancerStickySessionsArgsDict']] sticky_sessions: A `sticky_sessions` block to be assigned to the
|
|
1225
1252
|
Load Balancer. The `sticky_sessions` block is documented below. Only 1 sticky_sessions block is allowed.
|
|
1226
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] target_load_balancer_ids: A list of Load Balancer IDs to be attached behind a Global Load Balancer.
|
|
1227
|
-
:param pulumi.Input[str]
|
|
1228
|
-
|
|
1229
|
-
:param pulumi.Input[str] vpc_uuid: The ID of the VPC where the load balancer will be located.
|
|
1253
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] target_load_balancer_ids: A list of Load Balancer IDs to be attached behind a Global Load Balancer.
|
|
1254
|
+
:param pulumi.Input[_builtins.str] tls_cipher_policy: The tls cipher policy controls the cipher suites to be used by the load balancer. It must be either of `DEFAULT` or `STRONG`. Defaults to `DEFAULT`.
|
|
1255
|
+
:param pulumi.Input[_builtins.str] type: The type of the Load Balancer. It must be either of `REGIONAL`, `REGIONAL_NETWORK`, or `GLOBAL`. Defaults to `REGIONAL`.
|
|
1256
|
+
:param pulumi.Input[_builtins.str] vpc_uuid: The ID of the VPC where the load balancer will be located.
|
|
1230
1257
|
"""
|
|
1231
1258
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
1232
1259
|
|
|
@@ -1258,29 +1285,30 @@ class LoadBalancer(pulumi.CustomResource):
|
|
|
1258
1285
|
__props__.__dict__["status"] = status
|
|
1259
1286
|
__props__.__dict__["sticky_sessions"] = sticky_sessions
|
|
1260
1287
|
__props__.__dict__["target_load_balancer_ids"] = target_load_balancer_ids
|
|
1288
|
+
__props__.__dict__["tls_cipher_policy"] = tls_cipher_policy
|
|
1261
1289
|
__props__.__dict__["type"] = type
|
|
1262
1290
|
__props__.__dict__["vpc_uuid"] = vpc_uuid
|
|
1263
1291
|
return LoadBalancer(resource_name, opts=opts, __props__=__props__)
|
|
1264
1292
|
|
|
1265
|
-
@property
|
|
1293
|
+
@_builtins.property
|
|
1266
1294
|
@pulumi.getter
|
|
1267
1295
|
@_utilities.deprecated("""This field has been deprecated. You can no longer specify an algorithm for load balancers.""")
|
|
1268
|
-
def algorithm(self) -> pulumi.Output[Optional[str]]:
|
|
1296
|
+
def algorithm(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
1269
1297
|
"""
|
|
1270
1298
|
**Deprecated** This field has been deprecated. You can no longer specify an algorithm for load balancers.
|
|
1271
1299
|
or `least_connections`. The default value is `round_robin`.
|
|
1272
1300
|
"""
|
|
1273
1301
|
return pulumi.get(self, "algorithm")
|
|
1274
1302
|
|
|
1275
|
-
@property
|
|
1303
|
+
@_builtins.property
|
|
1276
1304
|
@pulumi.getter(name="disableLetsEncryptDnsRecords")
|
|
1277
|
-
def disable_lets_encrypt_dns_records(self) -> pulumi.Output[Optional[bool]]:
|
|
1305
|
+
def disable_lets_encrypt_dns_records(self) -> pulumi.Output[Optional[_builtins.bool]]:
|
|
1278
1306
|
"""
|
|
1279
1307
|
A boolean value indicating whether to disable automatic DNS record creation for Let's Encrypt certificates that are added to the load balancer. Default value is `false`.
|
|
1280
1308
|
"""
|
|
1281
1309
|
return pulumi.get(self, "disable_lets_encrypt_dns_records")
|
|
1282
1310
|
|
|
1283
|
-
@property
|
|
1311
|
+
@_builtins.property
|
|
1284
1312
|
@pulumi.getter
|
|
1285
1313
|
def domains(self) -> pulumi.Output[Sequence['outputs.LoadBalancerDomain']]:
|
|
1286
1314
|
"""
|
|
@@ -1288,33 +1316,33 @@ class LoadBalancer(pulumi.CustomResource):
|
|
|
1288
1316
|
"""
|
|
1289
1317
|
return pulumi.get(self, "domains")
|
|
1290
1318
|
|
|
1291
|
-
@property
|
|
1319
|
+
@_builtins.property
|
|
1292
1320
|
@pulumi.getter(name="dropletIds")
|
|
1293
|
-
def droplet_ids(self) -> pulumi.Output[Sequence[int]]:
|
|
1321
|
+
def droplet_ids(self) -> pulumi.Output[Sequence[_builtins.int]]:
|
|
1294
1322
|
"""
|
|
1295
1323
|
A list of the IDs of each droplet to be attached to the Load Balancer.
|
|
1296
1324
|
"""
|
|
1297
1325
|
return pulumi.get(self, "droplet_ids")
|
|
1298
1326
|
|
|
1299
|
-
@property
|
|
1327
|
+
@_builtins.property
|
|
1300
1328
|
@pulumi.getter(name="dropletTag")
|
|
1301
|
-
def droplet_tag(self) -> pulumi.Output[Optional[str]]:
|
|
1329
|
+
def droplet_tag(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
1302
1330
|
"""
|
|
1303
1331
|
The name of a Droplet tag corresponding to Droplets to be assigned to the Load Balancer.
|
|
1304
1332
|
"""
|
|
1305
1333
|
return pulumi.get(self, "droplet_tag")
|
|
1306
1334
|
|
|
1307
|
-
@property
|
|
1335
|
+
@_builtins.property
|
|
1308
1336
|
@pulumi.getter(name="enableBackendKeepalive")
|
|
1309
|
-
def enable_backend_keepalive(self) -> pulumi.Output[Optional[bool]]:
|
|
1337
|
+
def enable_backend_keepalive(self) -> pulumi.Output[Optional[_builtins.bool]]:
|
|
1310
1338
|
"""
|
|
1311
1339
|
A boolean value indicating whether HTTP keepalive connections are maintained to target Droplets. Default value is `false`.
|
|
1312
1340
|
"""
|
|
1313
1341
|
return pulumi.get(self, "enable_backend_keepalive")
|
|
1314
1342
|
|
|
1315
|
-
@property
|
|
1343
|
+
@_builtins.property
|
|
1316
1344
|
@pulumi.getter(name="enableProxyProtocol")
|
|
1317
|
-
def enable_proxy_protocol(self) -> pulumi.Output[Optional[bool]]:
|
|
1345
|
+
def enable_proxy_protocol(self) -> pulumi.Output[Optional[_builtins.bool]]:
|
|
1318
1346
|
"""
|
|
1319
1347
|
A boolean value indicating whether PROXY
|
|
1320
1348
|
Protocol should be used to pass information from connecting client requests to
|
|
@@ -1322,7 +1350,7 @@ class LoadBalancer(pulumi.CustomResource):
|
|
|
1322
1350
|
"""
|
|
1323
1351
|
return pulumi.get(self, "enable_proxy_protocol")
|
|
1324
1352
|
|
|
1325
|
-
@property
|
|
1353
|
+
@_builtins.property
|
|
1326
1354
|
@pulumi.getter
|
|
1327
1355
|
def firewall(self) -> pulumi.Output['outputs.LoadBalancerFirewall']:
|
|
1328
1356
|
"""
|
|
@@ -1330,7 +1358,7 @@ class LoadBalancer(pulumi.CustomResource):
|
|
|
1330
1358
|
"""
|
|
1331
1359
|
return pulumi.get(self, "firewall")
|
|
1332
1360
|
|
|
1333
|
-
@property
|
|
1361
|
+
@_builtins.property
|
|
1334
1362
|
@pulumi.getter(name="forwardingRules")
|
|
1335
1363
|
def forwarding_rules(self) -> pulumi.Output[Optional[Sequence['outputs.LoadBalancerForwardingRule']]]:
|
|
1336
1364
|
"""
|
|
@@ -1339,7 +1367,7 @@ class LoadBalancer(pulumi.CustomResource):
|
|
|
1339
1367
|
"""
|
|
1340
1368
|
return pulumi.get(self, "forwarding_rules")
|
|
1341
1369
|
|
|
1342
|
-
@property
|
|
1370
|
+
@_builtins.property
|
|
1343
1371
|
@pulumi.getter(name="glbSettings")
|
|
1344
1372
|
def glb_settings(self) -> pulumi.Output['outputs.LoadBalancerGlbSettings']:
|
|
1345
1373
|
"""
|
|
@@ -1347,7 +1375,7 @@ class LoadBalancer(pulumi.CustomResource):
|
|
|
1347
1375
|
"""
|
|
1348
1376
|
return pulumi.get(self, "glb_settings")
|
|
1349
1377
|
|
|
1350
|
-
@property
|
|
1378
|
+
@_builtins.property
|
|
1351
1379
|
@pulumi.getter
|
|
1352
1380
|
def healthcheck(self) -> pulumi.Output['outputs.LoadBalancerHealthcheck']:
|
|
1353
1381
|
"""
|
|
@@ -1356,71 +1384,70 @@ class LoadBalancer(pulumi.CustomResource):
|
|
|
1356
1384
|
"""
|
|
1357
1385
|
return pulumi.get(self, "healthcheck")
|
|
1358
1386
|
|
|
1359
|
-
@property
|
|
1387
|
+
@_builtins.property
|
|
1360
1388
|
@pulumi.getter(name="httpIdleTimeoutSeconds")
|
|
1361
|
-
def http_idle_timeout_seconds(self) -> pulumi.Output[int]:
|
|
1389
|
+
def http_idle_timeout_seconds(self) -> pulumi.Output[_builtins.int]:
|
|
1362
1390
|
"""
|
|
1363
1391
|
Specifies the idle timeout for HTTPS connections on the load balancer in seconds.
|
|
1364
1392
|
"""
|
|
1365
1393
|
return pulumi.get(self, "http_idle_timeout_seconds")
|
|
1366
1394
|
|
|
1367
|
-
@property
|
|
1395
|
+
@_builtins.property
|
|
1368
1396
|
@pulumi.getter
|
|
1369
|
-
def ip(self) -> pulumi.Output[str]:
|
|
1397
|
+
def ip(self) -> pulumi.Output[_builtins.str]:
|
|
1370
1398
|
"""
|
|
1371
1399
|
The ip of the Load Balancer
|
|
1372
1400
|
"""
|
|
1373
1401
|
return pulumi.get(self, "ip")
|
|
1374
1402
|
|
|
1375
|
-
@property
|
|
1403
|
+
@_builtins.property
|
|
1376
1404
|
@pulumi.getter
|
|
1377
|
-
def ipv6(self) -> pulumi.Output[str]:
|
|
1405
|
+
def ipv6(self) -> pulumi.Output[_builtins.str]:
|
|
1378
1406
|
return pulumi.get(self, "ipv6")
|
|
1379
1407
|
|
|
1380
|
-
@property
|
|
1408
|
+
@_builtins.property
|
|
1381
1409
|
@pulumi.getter(name="loadBalancerUrn")
|
|
1382
|
-
def load_balancer_urn(self) -> pulumi.Output[str]:
|
|
1410
|
+
def load_balancer_urn(self) -> pulumi.Output[_builtins.str]:
|
|
1383
1411
|
"""
|
|
1384
1412
|
The uniform resource name for the Load Balancer
|
|
1385
1413
|
"""
|
|
1386
1414
|
return pulumi.get(self, "load_balancer_urn")
|
|
1387
1415
|
|
|
1388
|
-
@property
|
|
1416
|
+
@_builtins.property
|
|
1389
1417
|
@pulumi.getter
|
|
1390
|
-
def name(self) -> pulumi.Output[str]:
|
|
1418
|
+
def name(self) -> pulumi.Output[_builtins.str]:
|
|
1391
1419
|
"""
|
|
1392
1420
|
The Load Balancer name
|
|
1393
1421
|
"""
|
|
1394
1422
|
return pulumi.get(self, "name")
|
|
1395
1423
|
|
|
1396
|
-
@property
|
|
1424
|
+
@_builtins.property
|
|
1397
1425
|
@pulumi.getter
|
|
1398
|
-
def network(self) -> pulumi.Output[Optional[str]]:
|
|
1426
|
+
def network(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
1399
1427
|
"""
|
|
1400
1428
|
The type of network the Load Balancer is accessible from. It must be either of `INTERNAL` or `EXTERNAL`. Defaults to `EXTERNAL`.
|
|
1401
1429
|
"""
|
|
1402
1430
|
return pulumi.get(self, "network")
|
|
1403
1431
|
|
|
1404
|
-
@property
|
|
1432
|
+
@_builtins.property
|
|
1405
1433
|
@pulumi.getter(name="networkStack")
|
|
1406
|
-
def network_stack(self) -> pulumi.Output[Optional[str]]:
|
|
1434
|
+
def network_stack(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
1407
1435
|
"""
|
|
1408
1436
|
The network stack determines the allocation of ipv4/ipv6 addresses to the load balancer. It must be either of `IPV4` or `DUALSTACK`. Defaults to `IPV4`.
|
|
1409
|
-
**NOTE**: this feature is in private preview, and may not be available for public use
|
|
1410
1437
|
"""
|
|
1411
1438
|
return pulumi.get(self, "network_stack")
|
|
1412
1439
|
|
|
1413
|
-
@property
|
|
1440
|
+
@_builtins.property
|
|
1414
1441
|
@pulumi.getter(name="projectId")
|
|
1415
|
-
def project_id(self) -> pulumi.Output[str]:
|
|
1442
|
+
def project_id(self) -> pulumi.Output[_builtins.str]:
|
|
1416
1443
|
"""
|
|
1417
1444
|
The ID of the project that the load balancer is associated with. If no ID is provided at creation, the load balancer associates with the user's default project.
|
|
1418
1445
|
"""
|
|
1419
1446
|
return pulumi.get(self, "project_id")
|
|
1420
1447
|
|
|
1421
|
-
@property
|
|
1448
|
+
@_builtins.property
|
|
1422
1449
|
@pulumi.getter(name="redirectHttpToHttps")
|
|
1423
|
-
def redirect_http_to_https(self) -> pulumi.Output[Optional[bool]]:
|
|
1450
|
+
def redirect_http_to_https(self) -> pulumi.Output[Optional[_builtins.bool]]:
|
|
1424
1451
|
"""
|
|
1425
1452
|
A boolean value indicating whether
|
|
1426
1453
|
HTTP requests to the Load Balancer on port 80 will be redirected to HTTPS on port 443.
|
|
@@ -1428,36 +1455,36 @@ class LoadBalancer(pulumi.CustomResource):
|
|
|
1428
1455
|
"""
|
|
1429
1456
|
return pulumi.get(self, "redirect_http_to_https")
|
|
1430
1457
|
|
|
1431
|
-
@property
|
|
1458
|
+
@_builtins.property
|
|
1432
1459
|
@pulumi.getter
|
|
1433
|
-
def region(self) -> pulumi.Output[Optional[str]]:
|
|
1460
|
+
def region(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
1434
1461
|
"""
|
|
1435
1462
|
The region to start in
|
|
1436
1463
|
"""
|
|
1437
1464
|
return pulumi.get(self, "region")
|
|
1438
1465
|
|
|
1439
|
-
@property
|
|
1466
|
+
@_builtins.property
|
|
1440
1467
|
@pulumi.getter
|
|
1441
|
-
def size(self) -> pulumi.Output[Optional[str]]:
|
|
1468
|
+
def size(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
1442
1469
|
"""
|
|
1443
1470
|
The size of the Load Balancer. It must be either `lb-small`, `lb-medium`, or `lb-large`. Defaults to `lb-small`. Only one of `size` or `size_unit` may be provided.
|
|
1444
1471
|
"""
|
|
1445
1472
|
return pulumi.get(self, "size")
|
|
1446
1473
|
|
|
1447
|
-
@property
|
|
1474
|
+
@_builtins.property
|
|
1448
1475
|
@pulumi.getter(name="sizeUnit")
|
|
1449
|
-
def size_unit(self) -> pulumi.Output[int]:
|
|
1476
|
+
def size_unit(self) -> pulumi.Output[_builtins.int]:
|
|
1450
1477
|
"""
|
|
1451
1478
|
The size of the Load Balancer. It must be in the range (1, 200). Defaults to `1`. Only one of `size` or `size_unit` may be provided.
|
|
1452
1479
|
"""
|
|
1453
1480
|
return pulumi.get(self, "size_unit")
|
|
1454
1481
|
|
|
1455
|
-
@property
|
|
1482
|
+
@_builtins.property
|
|
1456
1483
|
@pulumi.getter
|
|
1457
|
-
def status(self) -> pulumi.Output[str]:
|
|
1484
|
+
def status(self) -> pulumi.Output[_builtins.str]:
|
|
1458
1485
|
return pulumi.get(self, "status")
|
|
1459
1486
|
|
|
1460
|
-
@property
|
|
1487
|
+
@_builtins.property
|
|
1461
1488
|
@pulumi.getter(name="stickySessions")
|
|
1462
1489
|
def sticky_sessions(self) -> pulumi.Output['outputs.LoadBalancerStickySessions']:
|
|
1463
1490
|
"""
|
|
@@ -1466,26 +1493,33 @@ class LoadBalancer(pulumi.CustomResource):
|
|
|
1466
1493
|
"""
|
|
1467
1494
|
return pulumi.get(self, "sticky_sessions")
|
|
1468
1495
|
|
|
1469
|
-
@property
|
|
1496
|
+
@_builtins.property
|
|
1470
1497
|
@pulumi.getter(name="targetLoadBalancerIds")
|
|
1471
|
-
def target_load_balancer_ids(self) -> pulumi.Output[Sequence[str]]:
|
|
1498
|
+
def target_load_balancer_ids(self) -> pulumi.Output[Sequence[_builtins.str]]:
|
|
1472
1499
|
"""
|
|
1473
1500
|
A list of Load Balancer IDs to be attached behind a Global Load Balancer.
|
|
1474
1501
|
"""
|
|
1475
1502
|
return pulumi.get(self, "target_load_balancer_ids")
|
|
1476
1503
|
|
|
1477
|
-
@property
|
|
1504
|
+
@_builtins.property
|
|
1505
|
+
@pulumi.getter(name="tlsCipherPolicy")
|
|
1506
|
+
def tls_cipher_policy(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
1507
|
+
"""
|
|
1508
|
+
The tls cipher policy controls the cipher suites to be used by the load balancer. It must be either of `DEFAULT` or `STRONG`. Defaults to `DEFAULT`.
|
|
1509
|
+
"""
|
|
1510
|
+
return pulumi.get(self, "tls_cipher_policy")
|
|
1511
|
+
|
|
1512
|
+
@_builtins.property
|
|
1478
1513
|
@pulumi.getter
|
|
1479
|
-
def type(self) -> pulumi.Output[
|
|
1514
|
+
def type(self) -> pulumi.Output[_builtins.str]:
|
|
1480
1515
|
"""
|
|
1481
1516
|
The type of the Load Balancer. It must be either of `REGIONAL`, `REGIONAL_NETWORK`, or `GLOBAL`. Defaults to `REGIONAL`.
|
|
1482
|
-
**NOTE**: non-`REGIONAL/GLOBAL` type may be part of closed beta feature and not available for public use.
|
|
1483
1517
|
"""
|
|
1484
1518
|
return pulumi.get(self, "type")
|
|
1485
1519
|
|
|
1486
|
-
@property
|
|
1520
|
+
@_builtins.property
|
|
1487
1521
|
@pulumi.getter(name="vpcUuid")
|
|
1488
|
-
def vpc_uuid(self) -> pulumi.Output[str]:
|
|
1522
|
+
def vpc_uuid(self) -> pulumi.Output[_builtins.str]:
|
|
1489
1523
|
"""
|
|
1490
1524
|
The ID of the VPC where the load balancer will be located.
|
|
1491
1525
|
"""
|