pulumiverse-scaleway 1.23.0a1736837529__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.
Potentially problematic release.
This version of pulumiverse-scaleway might be problematic. Click here for more details.
- pulumiverse_scaleway/__init__.py +1065 -0
- pulumiverse_scaleway/_inputs.py +8688 -0
- pulumiverse_scaleway/_utilities.py +327 -0
- pulumiverse_scaleway/account_project.py +316 -0
- pulumiverse_scaleway/account_ssh_key.py +454 -0
- pulumiverse_scaleway/apple_silicon_server.py +564 -0
- pulumiverse_scaleway/baremetal_server.py +1579 -0
- pulumiverse_scaleway/block_snapshot.py +401 -0
- pulumiverse_scaleway/block_volume.py +527 -0
- pulumiverse_scaleway/cockpit.py +314 -0
- pulumiverse_scaleway/cockpit_alert_manager.py +401 -0
- pulumiverse_scaleway/cockpit_grafana_user.py +362 -0
- pulumiverse_scaleway/cockpit_source.py +567 -0
- pulumiverse_scaleway/cockpit_token.py +479 -0
- pulumiverse_scaleway/config/__init__.py +8 -0
- pulumiverse_scaleway/config/__init__.pyi +56 -0
- pulumiverse_scaleway/config/vars.py +78 -0
- pulumiverse_scaleway/container.py +1373 -0
- pulumiverse_scaleway/container_cron.py +458 -0
- pulumiverse_scaleway/container_domain.py +406 -0
- pulumiverse_scaleway/container_namespace.py +636 -0
- pulumiverse_scaleway/container_token.py +452 -0
- pulumiverse_scaleway/container_trigger.py +480 -0
- pulumiverse_scaleway/database.py +407 -0
- pulumiverse_scaleway/database_acl.py +332 -0
- pulumiverse_scaleway/database_backup.py +574 -0
- pulumiverse_scaleway/database_instance.py +1641 -0
- pulumiverse_scaleway/database_privilege.py +422 -0
- pulumiverse_scaleway/database_read_replica.py +528 -0
- pulumiverse_scaleway/database_user.py +446 -0
- pulumiverse_scaleway/domain_record.py +1116 -0
- pulumiverse_scaleway/domain_zone.py +430 -0
- pulumiverse_scaleway/flexible_ip.py +702 -0
- pulumiverse_scaleway/flexible_ip_mac_address.py +510 -0
- pulumiverse_scaleway/function.py +1103 -0
- pulumiverse_scaleway/function_cron.py +462 -0
- pulumiverse_scaleway/function_domain.py +370 -0
- pulumiverse_scaleway/function_namespace.py +580 -0
- pulumiverse_scaleway/function_token.py +460 -0
- pulumiverse_scaleway/function_trigger.py +480 -0
- pulumiverse_scaleway/get_account_project.py +170 -0
- pulumiverse_scaleway/get_account_ssh_key.py +205 -0
- pulumiverse_scaleway/get_availability_zones.py +139 -0
- pulumiverse_scaleway/get_baremetal_offer.py +245 -0
- pulumiverse_scaleway/get_baremetal_option.py +168 -0
- pulumiverse_scaleway/get_baremetal_os.py +174 -0
- pulumiverse_scaleway/get_baremetal_server.py +422 -0
- pulumiverse_scaleway/get_billing_consumptions.py +134 -0
- pulumiverse_scaleway/get_billing_invoices.py +154 -0
- pulumiverse_scaleway/get_block_snapshot.py +174 -0
- pulumiverse_scaleway/get_block_volume.py +188 -0
- pulumiverse_scaleway/get_cockpit.py +204 -0
- pulumiverse_scaleway/get_cockpit_plan.py +125 -0
- pulumiverse_scaleway/get_cockpit_source.py +262 -0
- pulumiverse_scaleway/get_config.py +180 -0
- pulumiverse_scaleway/get_container.py +522 -0
- pulumiverse_scaleway/get_container_namespace.py +283 -0
- pulumiverse_scaleway/get_database.py +187 -0
- pulumiverse_scaleway/get_database_acl.py +143 -0
- pulumiverse_scaleway/get_database_backup.py +253 -0
- pulumiverse_scaleway/get_database_instance.py +404 -0
- pulumiverse_scaleway/get_database_privilege.py +181 -0
- pulumiverse_scaleway/get_domain_record.py +340 -0
- pulumiverse_scaleway/get_domain_zone.py +201 -0
- pulumiverse_scaleway/get_flexible_ip.py +247 -0
- pulumiverse_scaleway/get_flexible_ips.py +240 -0
- pulumiverse_scaleway/get_function.py +365 -0
- pulumiverse_scaleway/get_function_namespace.py +238 -0
- pulumiverse_scaleway/get_iam_api_key.py +210 -0
- pulumiverse_scaleway/get_iam_application.py +210 -0
- pulumiverse_scaleway/get_iam_group.py +236 -0
- pulumiverse_scaleway/get_iam_ssh_key.py +212 -0
- pulumiverse_scaleway/get_iam_user.py +177 -0
- pulumiverse_scaleway/get_instance_image.py +305 -0
- pulumiverse_scaleway/get_instance_ip.py +204 -0
- pulumiverse_scaleway/get_instance_placement_group.py +212 -0
- pulumiverse_scaleway/get_instance_private_nic.py +226 -0
- pulumiverse_scaleway/get_instance_security_group.py +268 -0
- pulumiverse_scaleway/get_instance_server.py +502 -0
- pulumiverse_scaleway/get_instance_servers.py +187 -0
- pulumiverse_scaleway/get_instance_snapshot.py +248 -0
- pulumiverse_scaleway/get_instance_volume.py +215 -0
- pulumiverse_scaleway/get_iot_device.py +257 -0
- pulumiverse_scaleway/get_iot_hub.py +322 -0
- pulumiverse_scaleway/get_ipam_ip.py +419 -0
- pulumiverse_scaleway/get_ipam_ips.py +358 -0
- pulumiverse_scaleway/get_k8s_version.py +196 -0
- pulumiverse_scaleway/get_kubernetes_cluster.py +417 -0
- pulumiverse_scaleway/get_kubernetes_node_pool.py +436 -0
- pulumiverse_scaleway/get_lb_acls.py +198 -0
- pulumiverse_scaleway/get_lb_backend.py +486 -0
- pulumiverse_scaleway/get_lb_backends.py +196 -0
- pulumiverse_scaleway/get_lb_frontend.py +274 -0
- pulumiverse_scaleway/get_lb_frontends.py +196 -0
- pulumiverse_scaleway/get_lb_ips.py +198 -0
- pulumiverse_scaleway/get_lb_route.py +217 -0
- pulumiverse_scaleway/get_lb_routes.py +179 -0
- pulumiverse_scaleway/get_lbs.py +187 -0
- pulumiverse_scaleway/get_loadbalancer.py +339 -0
- pulumiverse_scaleway/get_loadbalancer_certificate.py +230 -0
- pulumiverse_scaleway/get_loadbalancer_ip.py +228 -0
- pulumiverse_scaleway/get_marketplace_image.py +147 -0
- pulumiverse_scaleway/get_mnq_sns.py +150 -0
- pulumiverse_scaleway/get_mnq_sqs.py +150 -0
- pulumiverse_scaleway/get_mongo_db_instance.py +324 -0
- pulumiverse_scaleway/get_object_bucket.py +290 -0
- pulumiverse_scaleway/get_object_bucket_policy.py +163 -0
- pulumiverse_scaleway/get_redis_cluster.py +347 -0
- pulumiverse_scaleway/get_registry_image.py +239 -0
- pulumiverse_scaleway/get_registry_image_tag.py +229 -0
- pulumiverse_scaleway/get_registry_namespace.py +199 -0
- pulumiverse_scaleway/get_secret.py +338 -0
- pulumiverse_scaleway/get_secret_version.py +340 -0
- pulumiverse_scaleway/get_tem_domain.py +378 -0
- pulumiverse_scaleway/get_vpc.py +246 -0
- pulumiverse_scaleway/get_vpc_gateway_network.py +287 -0
- pulumiverse_scaleway/get_vpc_private_network.py +282 -0
- pulumiverse_scaleway/get_vpc_public_gateway.py +304 -0
- pulumiverse_scaleway/get_vpc_public_gateway_dhcp.py +305 -0
- pulumiverse_scaleway/get_vpc_public_gateway_dhcp_reservation.py +382 -0
- pulumiverse_scaleway/get_vpc_public_gateway_ip.py +199 -0
- pulumiverse_scaleway/get_vpc_public_pat_rule.py +313 -0
- pulumiverse_scaleway/get_vpc_routes.py +208 -0
- pulumiverse_scaleway/get_vpcs.py +174 -0
- pulumiverse_scaleway/get_web_host_offer.py +192 -0
- pulumiverse_scaleway/get_webhosting.py +332 -0
- pulumiverse_scaleway/iam_api_key.py +620 -0
- pulumiverse_scaleway/iam_application.py +417 -0
- pulumiverse_scaleway/iam_group.py +566 -0
- pulumiverse_scaleway/iam_group_membership.py +323 -0
- pulumiverse_scaleway/iam_policy.py +773 -0
- pulumiverse_scaleway/iam_ssh_key.py +455 -0
- pulumiverse_scaleway/iam_user.py +513 -0
- pulumiverse_scaleway/inference_deployment.py +822 -0
- pulumiverse_scaleway/instance_image.py +750 -0
- pulumiverse_scaleway/instance_ip.py +483 -0
- pulumiverse_scaleway/instance_ip_reverse_dns.py +308 -0
- pulumiverse_scaleway/instance_placement_group.py +479 -0
- pulumiverse_scaleway/instance_private_nic.py +555 -0
- pulumiverse_scaleway/instance_security_group.py +720 -0
- pulumiverse_scaleway/instance_security_group_rules.py +439 -0
- pulumiverse_scaleway/instance_server.py +2006 -0
- pulumiverse_scaleway/instance_snapshot.py +669 -0
- pulumiverse_scaleway/instance_user_data.py +435 -0
- pulumiverse_scaleway/instance_volume.py +535 -0
- pulumiverse_scaleway/iot_device.py +750 -0
- pulumiverse_scaleway/iot_hub.py +896 -0
- pulumiverse_scaleway/iot_network.py +472 -0
- pulumiverse_scaleway/iot_route.py +660 -0
- pulumiverse_scaleway/ipam_ip.py +757 -0
- pulumiverse_scaleway/ipam_ip_reverse_dns.py +318 -0
- pulumiverse_scaleway/job_definition.py +692 -0
- pulumiverse_scaleway/kubernetes_cluster.py +1538 -0
- pulumiverse_scaleway/kubernetes_node_pool.py +1255 -0
- pulumiverse_scaleway/loadbalancer.py +1061 -0
- pulumiverse_scaleway/loadbalancer_acl.py +520 -0
- pulumiverse_scaleway/loadbalancer_backend.py +1588 -0
- pulumiverse_scaleway/loadbalancer_certificate.py +460 -0
- pulumiverse_scaleway/loadbalancer_frontend.py +829 -0
- pulumiverse_scaleway/loadbalancer_ip.py +514 -0
- pulumiverse_scaleway/loadbalancer_route.py +523 -0
- pulumiverse_scaleway/mnq_nats_account.py +334 -0
- pulumiverse_scaleway/mnq_nats_credentials.py +330 -0
- pulumiverse_scaleway/mnq_sns.py +306 -0
- pulumiverse_scaleway/mnq_sns_credentials.py +413 -0
- pulumiverse_scaleway/mnq_sns_topic.py +659 -0
- pulumiverse_scaleway/mnq_sns_topic_subscription.py +699 -0
- pulumiverse_scaleway/mnq_sqs.py +304 -0
- pulumiverse_scaleway/mnq_sqs_credentials.py +413 -0
- pulumiverse_scaleway/mnq_sqs_queue.py +800 -0
- pulumiverse_scaleway/mongo_db_instance.py +907 -0
- pulumiverse_scaleway/mongo_db_snapshot.py +521 -0
- pulumiverse_scaleway/object_bucket.py +874 -0
- pulumiverse_scaleway/object_bucket_acl.py +596 -0
- pulumiverse_scaleway/object_bucket_lock_configuration.py +395 -0
- pulumiverse_scaleway/object_bucket_policy.py +673 -0
- pulumiverse_scaleway/object_bucket_website_configuration.py +534 -0
- pulumiverse_scaleway/object_item.py +776 -0
- pulumiverse_scaleway/outputs.py +11808 -0
- pulumiverse_scaleway/provider.py +327 -0
- pulumiverse_scaleway/pulumi-plugin.json +6 -0
- pulumiverse_scaleway/py.typed +0 -0
- pulumiverse_scaleway/redis_cluster.py +1201 -0
- pulumiverse_scaleway/registry_namespace.py +458 -0
- pulumiverse_scaleway/sdb_database.py +432 -0
- pulumiverse_scaleway/secret.py +663 -0
- pulumiverse_scaleway/secret_version.py +487 -0
- pulumiverse_scaleway/tem_domain.py +1030 -0
- pulumiverse_scaleway/tem_domain_validation.py +303 -0
- pulumiverse_scaleway/tem_webhook.py +640 -0
- pulumiverse_scaleway/vpc.py +536 -0
- pulumiverse_scaleway/vpc_gateway_network.py +866 -0
- pulumiverse_scaleway/vpc_private_network.py +734 -0
- pulumiverse_scaleway/vpc_public_gateway.py +789 -0
- pulumiverse_scaleway/vpc_public_gateway_dhcp.py +933 -0
- pulumiverse_scaleway/vpc_public_gateway_dhcp_reservation.py +514 -0
- pulumiverse_scaleway/vpc_public_gateway_ip.py +457 -0
- pulumiverse_scaleway/vpc_public_gateway_ip_reverse_dns.py +306 -0
- pulumiverse_scaleway/vpc_public_gateway_pat_rule.py +591 -0
- pulumiverse_scaleway/vpc_route.py +577 -0
- pulumiverse_scaleway/webhosting.py +805 -0
- pulumiverse_scaleway-1.23.0a1736837529.dist-info/METADATA +77 -0
- pulumiverse_scaleway-1.23.0a1736837529.dist-info/RECORD +205 -0
- pulumiverse_scaleway-1.23.0a1736837529.dist-info/WHEEL +5 -0
- pulumiverse_scaleway-1.23.0a1736837529.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,486 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
|
|
5
|
+
import copy
|
|
6
|
+
import warnings
|
|
7
|
+
import sys
|
|
8
|
+
import pulumi
|
|
9
|
+
import pulumi.runtime
|
|
10
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
15
|
+
from . import _utilities
|
|
16
|
+
from . import outputs
|
|
17
|
+
|
|
18
|
+
__all__ = [
|
|
19
|
+
'GetLbBackendResult',
|
|
20
|
+
'AwaitableGetLbBackendResult',
|
|
21
|
+
'get_lb_backend',
|
|
22
|
+
'get_lb_backend_output',
|
|
23
|
+
]
|
|
24
|
+
|
|
25
|
+
@pulumi.output_type
|
|
26
|
+
class GetLbBackendResult:
|
|
27
|
+
"""
|
|
28
|
+
A collection of values returned by getLbBackend.
|
|
29
|
+
"""
|
|
30
|
+
def __init__(__self__, backend_id=None, failover_host=None, forward_port=None, forward_port_algorithm=None, forward_protocol=None, health_check_delay=None, health_check_http=None, health_check_https=None, health_check_max_retries=None, health_check_port=None, health_check_send_proxy=None, health_check_tcps=None, health_check_timeout=None, health_check_transient_delay=None, id=None, ignore_ssl_server_verify=None, lb_id=None, max_connections=None, max_retries=None, name=None, on_marked_down_action=None, proxy_protocol=None, redispatch_attempt_count=None, send_proxy_v2=None, server_ips=None, ssl_bridging=None, sticky_sessions=None, sticky_sessions_cookie_name=None, timeout_connect=None, timeout_queue=None, timeout_server=None, timeout_tunnel=None):
|
|
31
|
+
if backend_id and not isinstance(backend_id, str):
|
|
32
|
+
raise TypeError("Expected argument 'backend_id' to be a str")
|
|
33
|
+
pulumi.set(__self__, "backend_id", backend_id)
|
|
34
|
+
if failover_host and not isinstance(failover_host, str):
|
|
35
|
+
raise TypeError("Expected argument 'failover_host' to be a str")
|
|
36
|
+
pulumi.set(__self__, "failover_host", failover_host)
|
|
37
|
+
if forward_port and not isinstance(forward_port, int):
|
|
38
|
+
raise TypeError("Expected argument 'forward_port' to be a int")
|
|
39
|
+
pulumi.set(__self__, "forward_port", forward_port)
|
|
40
|
+
if forward_port_algorithm and not isinstance(forward_port_algorithm, str):
|
|
41
|
+
raise TypeError("Expected argument 'forward_port_algorithm' to be a str")
|
|
42
|
+
pulumi.set(__self__, "forward_port_algorithm", forward_port_algorithm)
|
|
43
|
+
if forward_protocol and not isinstance(forward_protocol, str):
|
|
44
|
+
raise TypeError("Expected argument 'forward_protocol' to be a str")
|
|
45
|
+
pulumi.set(__self__, "forward_protocol", forward_protocol)
|
|
46
|
+
if health_check_delay and not isinstance(health_check_delay, str):
|
|
47
|
+
raise TypeError("Expected argument 'health_check_delay' to be a str")
|
|
48
|
+
pulumi.set(__self__, "health_check_delay", health_check_delay)
|
|
49
|
+
if health_check_http and not isinstance(health_check_http, list):
|
|
50
|
+
raise TypeError("Expected argument 'health_check_http' to be a list")
|
|
51
|
+
pulumi.set(__self__, "health_check_http", health_check_http)
|
|
52
|
+
if health_check_https and not isinstance(health_check_https, list):
|
|
53
|
+
raise TypeError("Expected argument 'health_check_https' to be a list")
|
|
54
|
+
pulumi.set(__self__, "health_check_https", health_check_https)
|
|
55
|
+
if health_check_max_retries and not isinstance(health_check_max_retries, int):
|
|
56
|
+
raise TypeError("Expected argument 'health_check_max_retries' to be a int")
|
|
57
|
+
pulumi.set(__self__, "health_check_max_retries", health_check_max_retries)
|
|
58
|
+
if health_check_port and not isinstance(health_check_port, int):
|
|
59
|
+
raise TypeError("Expected argument 'health_check_port' to be a int")
|
|
60
|
+
pulumi.set(__self__, "health_check_port", health_check_port)
|
|
61
|
+
if health_check_send_proxy and not isinstance(health_check_send_proxy, bool):
|
|
62
|
+
raise TypeError("Expected argument 'health_check_send_proxy' to be a bool")
|
|
63
|
+
pulumi.set(__self__, "health_check_send_proxy", health_check_send_proxy)
|
|
64
|
+
if health_check_tcps and not isinstance(health_check_tcps, list):
|
|
65
|
+
raise TypeError("Expected argument 'health_check_tcps' to be a list")
|
|
66
|
+
pulumi.set(__self__, "health_check_tcps", health_check_tcps)
|
|
67
|
+
if health_check_timeout and not isinstance(health_check_timeout, str):
|
|
68
|
+
raise TypeError("Expected argument 'health_check_timeout' to be a str")
|
|
69
|
+
pulumi.set(__self__, "health_check_timeout", health_check_timeout)
|
|
70
|
+
if health_check_transient_delay and not isinstance(health_check_transient_delay, str):
|
|
71
|
+
raise TypeError("Expected argument 'health_check_transient_delay' to be a str")
|
|
72
|
+
pulumi.set(__self__, "health_check_transient_delay", health_check_transient_delay)
|
|
73
|
+
if id and not isinstance(id, str):
|
|
74
|
+
raise TypeError("Expected argument 'id' to be a str")
|
|
75
|
+
pulumi.set(__self__, "id", id)
|
|
76
|
+
if ignore_ssl_server_verify and not isinstance(ignore_ssl_server_verify, bool):
|
|
77
|
+
raise TypeError("Expected argument 'ignore_ssl_server_verify' to be a bool")
|
|
78
|
+
pulumi.set(__self__, "ignore_ssl_server_verify", ignore_ssl_server_verify)
|
|
79
|
+
if lb_id and not isinstance(lb_id, str):
|
|
80
|
+
raise TypeError("Expected argument 'lb_id' to be a str")
|
|
81
|
+
pulumi.set(__self__, "lb_id", lb_id)
|
|
82
|
+
if max_connections and not isinstance(max_connections, int):
|
|
83
|
+
raise TypeError("Expected argument 'max_connections' to be a int")
|
|
84
|
+
pulumi.set(__self__, "max_connections", max_connections)
|
|
85
|
+
if max_retries and not isinstance(max_retries, int):
|
|
86
|
+
raise TypeError("Expected argument 'max_retries' to be a int")
|
|
87
|
+
pulumi.set(__self__, "max_retries", max_retries)
|
|
88
|
+
if name and not isinstance(name, str):
|
|
89
|
+
raise TypeError("Expected argument 'name' to be a str")
|
|
90
|
+
pulumi.set(__self__, "name", name)
|
|
91
|
+
if on_marked_down_action and not isinstance(on_marked_down_action, str):
|
|
92
|
+
raise TypeError("Expected argument 'on_marked_down_action' to be a str")
|
|
93
|
+
pulumi.set(__self__, "on_marked_down_action", on_marked_down_action)
|
|
94
|
+
if proxy_protocol and not isinstance(proxy_protocol, str):
|
|
95
|
+
raise TypeError("Expected argument 'proxy_protocol' to be a str")
|
|
96
|
+
pulumi.set(__self__, "proxy_protocol", proxy_protocol)
|
|
97
|
+
if redispatch_attempt_count and not isinstance(redispatch_attempt_count, int):
|
|
98
|
+
raise TypeError("Expected argument 'redispatch_attempt_count' to be a int")
|
|
99
|
+
pulumi.set(__self__, "redispatch_attempt_count", redispatch_attempt_count)
|
|
100
|
+
if send_proxy_v2 and not isinstance(send_proxy_v2, bool):
|
|
101
|
+
raise TypeError("Expected argument 'send_proxy_v2' to be a bool")
|
|
102
|
+
pulumi.set(__self__, "send_proxy_v2", send_proxy_v2)
|
|
103
|
+
if server_ips and not isinstance(server_ips, list):
|
|
104
|
+
raise TypeError("Expected argument 'server_ips' to be a list")
|
|
105
|
+
pulumi.set(__self__, "server_ips", server_ips)
|
|
106
|
+
if ssl_bridging and not isinstance(ssl_bridging, bool):
|
|
107
|
+
raise TypeError("Expected argument 'ssl_bridging' to be a bool")
|
|
108
|
+
pulumi.set(__self__, "ssl_bridging", ssl_bridging)
|
|
109
|
+
if sticky_sessions and not isinstance(sticky_sessions, str):
|
|
110
|
+
raise TypeError("Expected argument 'sticky_sessions' to be a str")
|
|
111
|
+
pulumi.set(__self__, "sticky_sessions", sticky_sessions)
|
|
112
|
+
if sticky_sessions_cookie_name and not isinstance(sticky_sessions_cookie_name, str):
|
|
113
|
+
raise TypeError("Expected argument 'sticky_sessions_cookie_name' to be a str")
|
|
114
|
+
pulumi.set(__self__, "sticky_sessions_cookie_name", sticky_sessions_cookie_name)
|
|
115
|
+
if timeout_connect and not isinstance(timeout_connect, str):
|
|
116
|
+
raise TypeError("Expected argument 'timeout_connect' to be a str")
|
|
117
|
+
pulumi.set(__self__, "timeout_connect", timeout_connect)
|
|
118
|
+
if timeout_queue and not isinstance(timeout_queue, str):
|
|
119
|
+
raise TypeError("Expected argument 'timeout_queue' to be a str")
|
|
120
|
+
pulumi.set(__self__, "timeout_queue", timeout_queue)
|
|
121
|
+
if timeout_server and not isinstance(timeout_server, str):
|
|
122
|
+
raise TypeError("Expected argument 'timeout_server' to be a str")
|
|
123
|
+
pulumi.set(__self__, "timeout_server", timeout_server)
|
|
124
|
+
if timeout_tunnel and not isinstance(timeout_tunnel, str):
|
|
125
|
+
raise TypeError("Expected argument 'timeout_tunnel' to be a str")
|
|
126
|
+
pulumi.set(__self__, "timeout_tunnel", timeout_tunnel)
|
|
127
|
+
|
|
128
|
+
@property
|
|
129
|
+
@pulumi.getter(name="backendId")
|
|
130
|
+
def backend_id(self) -> Optional[str]:
|
|
131
|
+
return pulumi.get(self, "backend_id")
|
|
132
|
+
|
|
133
|
+
@property
|
|
134
|
+
@pulumi.getter(name="failoverHost")
|
|
135
|
+
def failover_host(self) -> str:
|
|
136
|
+
return pulumi.get(self, "failover_host")
|
|
137
|
+
|
|
138
|
+
@property
|
|
139
|
+
@pulumi.getter(name="forwardPort")
|
|
140
|
+
def forward_port(self) -> int:
|
|
141
|
+
return pulumi.get(self, "forward_port")
|
|
142
|
+
|
|
143
|
+
@property
|
|
144
|
+
@pulumi.getter(name="forwardPortAlgorithm")
|
|
145
|
+
def forward_port_algorithm(self) -> str:
|
|
146
|
+
return pulumi.get(self, "forward_port_algorithm")
|
|
147
|
+
|
|
148
|
+
@property
|
|
149
|
+
@pulumi.getter(name="forwardProtocol")
|
|
150
|
+
def forward_protocol(self) -> str:
|
|
151
|
+
return pulumi.get(self, "forward_protocol")
|
|
152
|
+
|
|
153
|
+
@property
|
|
154
|
+
@pulumi.getter(name="healthCheckDelay")
|
|
155
|
+
def health_check_delay(self) -> str:
|
|
156
|
+
return pulumi.get(self, "health_check_delay")
|
|
157
|
+
|
|
158
|
+
@property
|
|
159
|
+
@pulumi.getter(name="healthCheckHttp")
|
|
160
|
+
def health_check_http(self) -> Sequence['outputs.GetLbBackendHealthCheckHttpResult']:
|
|
161
|
+
return pulumi.get(self, "health_check_http")
|
|
162
|
+
|
|
163
|
+
@property
|
|
164
|
+
@pulumi.getter(name="healthCheckHttps")
|
|
165
|
+
def health_check_https(self) -> Sequence['outputs.GetLbBackendHealthCheckHttpResult']:
|
|
166
|
+
return pulumi.get(self, "health_check_https")
|
|
167
|
+
|
|
168
|
+
@property
|
|
169
|
+
@pulumi.getter(name="healthCheckMaxRetries")
|
|
170
|
+
def health_check_max_retries(self) -> int:
|
|
171
|
+
return pulumi.get(self, "health_check_max_retries")
|
|
172
|
+
|
|
173
|
+
@property
|
|
174
|
+
@pulumi.getter(name="healthCheckPort")
|
|
175
|
+
def health_check_port(self) -> int:
|
|
176
|
+
return pulumi.get(self, "health_check_port")
|
|
177
|
+
|
|
178
|
+
@property
|
|
179
|
+
@pulumi.getter(name="healthCheckSendProxy")
|
|
180
|
+
def health_check_send_proxy(self) -> bool:
|
|
181
|
+
return pulumi.get(self, "health_check_send_proxy")
|
|
182
|
+
|
|
183
|
+
@property
|
|
184
|
+
@pulumi.getter(name="healthCheckTcps")
|
|
185
|
+
def health_check_tcps(self) -> Sequence['outputs.GetLbBackendHealthCheckTcpResult']:
|
|
186
|
+
return pulumi.get(self, "health_check_tcps")
|
|
187
|
+
|
|
188
|
+
@property
|
|
189
|
+
@pulumi.getter(name="healthCheckTimeout")
|
|
190
|
+
def health_check_timeout(self) -> str:
|
|
191
|
+
return pulumi.get(self, "health_check_timeout")
|
|
192
|
+
|
|
193
|
+
@property
|
|
194
|
+
@pulumi.getter(name="healthCheckTransientDelay")
|
|
195
|
+
def health_check_transient_delay(self) -> str:
|
|
196
|
+
return pulumi.get(self, "health_check_transient_delay")
|
|
197
|
+
|
|
198
|
+
@property
|
|
199
|
+
@pulumi.getter
|
|
200
|
+
def id(self) -> str:
|
|
201
|
+
"""
|
|
202
|
+
The provider-assigned unique ID for this managed resource.
|
|
203
|
+
"""
|
|
204
|
+
return pulumi.get(self, "id")
|
|
205
|
+
|
|
206
|
+
@property
|
|
207
|
+
@pulumi.getter(name="ignoreSslServerVerify")
|
|
208
|
+
def ignore_ssl_server_verify(self) -> bool:
|
|
209
|
+
return pulumi.get(self, "ignore_ssl_server_verify")
|
|
210
|
+
|
|
211
|
+
@property
|
|
212
|
+
@pulumi.getter(name="lbId")
|
|
213
|
+
def lb_id(self) -> Optional[str]:
|
|
214
|
+
return pulumi.get(self, "lb_id")
|
|
215
|
+
|
|
216
|
+
@property
|
|
217
|
+
@pulumi.getter(name="maxConnections")
|
|
218
|
+
def max_connections(self) -> int:
|
|
219
|
+
return pulumi.get(self, "max_connections")
|
|
220
|
+
|
|
221
|
+
@property
|
|
222
|
+
@pulumi.getter(name="maxRetries")
|
|
223
|
+
def max_retries(self) -> int:
|
|
224
|
+
return pulumi.get(self, "max_retries")
|
|
225
|
+
|
|
226
|
+
@property
|
|
227
|
+
@pulumi.getter
|
|
228
|
+
def name(self) -> Optional[str]:
|
|
229
|
+
return pulumi.get(self, "name")
|
|
230
|
+
|
|
231
|
+
@property
|
|
232
|
+
@pulumi.getter(name="onMarkedDownAction")
|
|
233
|
+
def on_marked_down_action(self) -> str:
|
|
234
|
+
return pulumi.get(self, "on_marked_down_action")
|
|
235
|
+
|
|
236
|
+
@property
|
|
237
|
+
@pulumi.getter(name="proxyProtocol")
|
|
238
|
+
def proxy_protocol(self) -> str:
|
|
239
|
+
return pulumi.get(self, "proxy_protocol")
|
|
240
|
+
|
|
241
|
+
@property
|
|
242
|
+
@pulumi.getter(name="redispatchAttemptCount")
|
|
243
|
+
def redispatch_attempt_count(self) -> int:
|
|
244
|
+
return pulumi.get(self, "redispatch_attempt_count")
|
|
245
|
+
|
|
246
|
+
@property
|
|
247
|
+
@pulumi.getter(name="sendProxyV2")
|
|
248
|
+
def send_proxy_v2(self) -> bool:
|
|
249
|
+
return pulumi.get(self, "send_proxy_v2")
|
|
250
|
+
|
|
251
|
+
@property
|
|
252
|
+
@pulumi.getter(name="serverIps")
|
|
253
|
+
def server_ips(self) -> Sequence[str]:
|
|
254
|
+
return pulumi.get(self, "server_ips")
|
|
255
|
+
|
|
256
|
+
@property
|
|
257
|
+
@pulumi.getter(name="sslBridging")
|
|
258
|
+
def ssl_bridging(self) -> bool:
|
|
259
|
+
return pulumi.get(self, "ssl_bridging")
|
|
260
|
+
|
|
261
|
+
@property
|
|
262
|
+
@pulumi.getter(name="stickySessions")
|
|
263
|
+
def sticky_sessions(self) -> str:
|
|
264
|
+
return pulumi.get(self, "sticky_sessions")
|
|
265
|
+
|
|
266
|
+
@property
|
|
267
|
+
@pulumi.getter(name="stickySessionsCookieName")
|
|
268
|
+
def sticky_sessions_cookie_name(self) -> str:
|
|
269
|
+
return pulumi.get(self, "sticky_sessions_cookie_name")
|
|
270
|
+
|
|
271
|
+
@property
|
|
272
|
+
@pulumi.getter(name="timeoutConnect")
|
|
273
|
+
def timeout_connect(self) -> str:
|
|
274
|
+
return pulumi.get(self, "timeout_connect")
|
|
275
|
+
|
|
276
|
+
@property
|
|
277
|
+
@pulumi.getter(name="timeoutQueue")
|
|
278
|
+
def timeout_queue(self) -> str:
|
|
279
|
+
return pulumi.get(self, "timeout_queue")
|
|
280
|
+
|
|
281
|
+
@property
|
|
282
|
+
@pulumi.getter(name="timeoutServer")
|
|
283
|
+
def timeout_server(self) -> str:
|
|
284
|
+
return pulumi.get(self, "timeout_server")
|
|
285
|
+
|
|
286
|
+
@property
|
|
287
|
+
@pulumi.getter(name="timeoutTunnel")
|
|
288
|
+
def timeout_tunnel(self) -> str:
|
|
289
|
+
return pulumi.get(self, "timeout_tunnel")
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
class AwaitableGetLbBackendResult(GetLbBackendResult):
|
|
293
|
+
# pylint: disable=using-constant-test
|
|
294
|
+
def __await__(self):
|
|
295
|
+
if False:
|
|
296
|
+
yield self
|
|
297
|
+
return GetLbBackendResult(
|
|
298
|
+
backend_id=self.backend_id,
|
|
299
|
+
failover_host=self.failover_host,
|
|
300
|
+
forward_port=self.forward_port,
|
|
301
|
+
forward_port_algorithm=self.forward_port_algorithm,
|
|
302
|
+
forward_protocol=self.forward_protocol,
|
|
303
|
+
health_check_delay=self.health_check_delay,
|
|
304
|
+
health_check_http=self.health_check_http,
|
|
305
|
+
health_check_https=self.health_check_https,
|
|
306
|
+
health_check_max_retries=self.health_check_max_retries,
|
|
307
|
+
health_check_port=self.health_check_port,
|
|
308
|
+
health_check_send_proxy=self.health_check_send_proxy,
|
|
309
|
+
health_check_tcps=self.health_check_tcps,
|
|
310
|
+
health_check_timeout=self.health_check_timeout,
|
|
311
|
+
health_check_transient_delay=self.health_check_transient_delay,
|
|
312
|
+
id=self.id,
|
|
313
|
+
ignore_ssl_server_verify=self.ignore_ssl_server_verify,
|
|
314
|
+
lb_id=self.lb_id,
|
|
315
|
+
max_connections=self.max_connections,
|
|
316
|
+
max_retries=self.max_retries,
|
|
317
|
+
name=self.name,
|
|
318
|
+
on_marked_down_action=self.on_marked_down_action,
|
|
319
|
+
proxy_protocol=self.proxy_protocol,
|
|
320
|
+
redispatch_attempt_count=self.redispatch_attempt_count,
|
|
321
|
+
send_proxy_v2=self.send_proxy_v2,
|
|
322
|
+
server_ips=self.server_ips,
|
|
323
|
+
ssl_bridging=self.ssl_bridging,
|
|
324
|
+
sticky_sessions=self.sticky_sessions,
|
|
325
|
+
sticky_sessions_cookie_name=self.sticky_sessions_cookie_name,
|
|
326
|
+
timeout_connect=self.timeout_connect,
|
|
327
|
+
timeout_queue=self.timeout_queue,
|
|
328
|
+
timeout_server=self.timeout_server,
|
|
329
|
+
timeout_tunnel=self.timeout_tunnel)
|
|
330
|
+
|
|
331
|
+
|
|
332
|
+
def get_lb_backend(backend_id: Optional[str] = None,
|
|
333
|
+
lb_id: Optional[str] = None,
|
|
334
|
+
name: Optional[str] = None,
|
|
335
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetLbBackendResult:
|
|
336
|
+
"""
|
|
337
|
+
Get information about Scaleway Load Balancer backends.
|
|
338
|
+
|
|
339
|
+
For more information, see the [main documentation](https://www.scaleway.com/en/docs/network/load-balancer/reference-content/configuring-backends/) or [API documentation](https://www.scaleway.com/en/developers/api/load-balancer/zoned-api/#path-backends).
|
|
340
|
+
|
|
341
|
+
## Example Usage
|
|
342
|
+
|
|
343
|
+
```python
|
|
344
|
+
import pulumi
|
|
345
|
+
import pulumi_scaleway as scaleway
|
|
346
|
+
import pulumiverse_scaleway as scaleway
|
|
347
|
+
|
|
348
|
+
main = scaleway.LoadbalancerIp("main")
|
|
349
|
+
main_loadbalancer = scaleway.Loadbalancer("main",
|
|
350
|
+
ip_id=main.id,
|
|
351
|
+
name="data-test-lb-backend",
|
|
352
|
+
type="LB-S")
|
|
353
|
+
main_loadbalancer_backend = scaleway.LoadbalancerBackend("main",
|
|
354
|
+
lb_id=main_loadbalancer.id,
|
|
355
|
+
name="backend01",
|
|
356
|
+
forward_protocol="http",
|
|
357
|
+
forward_port=80)
|
|
358
|
+
by_id = scaleway.get_lb_backend_output(backend_id=main_loadbalancer_backend.id)
|
|
359
|
+
by_name = scaleway.get_lb_backend_output(name=main_loadbalancer_backend.name,
|
|
360
|
+
lb_id=main_loadbalancer.id)
|
|
361
|
+
```
|
|
362
|
+
|
|
363
|
+
|
|
364
|
+
:param str backend_id: The backend ID.
|
|
365
|
+
- Only one of `name` and `backend_id` should be specified.
|
|
366
|
+
:param str lb_id: Load Balancer ID this backend is attached to.
|
|
367
|
+
:param str name: The name of the backend.
|
|
368
|
+
- When using `name` you should specify the `lb-id`
|
|
369
|
+
"""
|
|
370
|
+
__args__ = dict()
|
|
371
|
+
__args__['backendId'] = backend_id
|
|
372
|
+
__args__['lbId'] = lb_id
|
|
373
|
+
__args__['name'] = name
|
|
374
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
375
|
+
__ret__ = pulumi.runtime.invoke('scaleway:index/getLbBackend:getLbBackend', __args__, opts=opts, typ=GetLbBackendResult).value
|
|
376
|
+
|
|
377
|
+
return AwaitableGetLbBackendResult(
|
|
378
|
+
backend_id=pulumi.get(__ret__, 'backend_id'),
|
|
379
|
+
failover_host=pulumi.get(__ret__, 'failover_host'),
|
|
380
|
+
forward_port=pulumi.get(__ret__, 'forward_port'),
|
|
381
|
+
forward_port_algorithm=pulumi.get(__ret__, 'forward_port_algorithm'),
|
|
382
|
+
forward_protocol=pulumi.get(__ret__, 'forward_protocol'),
|
|
383
|
+
health_check_delay=pulumi.get(__ret__, 'health_check_delay'),
|
|
384
|
+
health_check_http=pulumi.get(__ret__, 'health_check_http'),
|
|
385
|
+
health_check_https=pulumi.get(__ret__, 'health_check_https'),
|
|
386
|
+
health_check_max_retries=pulumi.get(__ret__, 'health_check_max_retries'),
|
|
387
|
+
health_check_port=pulumi.get(__ret__, 'health_check_port'),
|
|
388
|
+
health_check_send_proxy=pulumi.get(__ret__, 'health_check_send_proxy'),
|
|
389
|
+
health_check_tcps=pulumi.get(__ret__, 'health_check_tcps'),
|
|
390
|
+
health_check_timeout=pulumi.get(__ret__, 'health_check_timeout'),
|
|
391
|
+
health_check_transient_delay=pulumi.get(__ret__, 'health_check_transient_delay'),
|
|
392
|
+
id=pulumi.get(__ret__, 'id'),
|
|
393
|
+
ignore_ssl_server_verify=pulumi.get(__ret__, 'ignore_ssl_server_verify'),
|
|
394
|
+
lb_id=pulumi.get(__ret__, 'lb_id'),
|
|
395
|
+
max_connections=pulumi.get(__ret__, 'max_connections'),
|
|
396
|
+
max_retries=pulumi.get(__ret__, 'max_retries'),
|
|
397
|
+
name=pulumi.get(__ret__, 'name'),
|
|
398
|
+
on_marked_down_action=pulumi.get(__ret__, 'on_marked_down_action'),
|
|
399
|
+
proxy_protocol=pulumi.get(__ret__, 'proxy_protocol'),
|
|
400
|
+
redispatch_attempt_count=pulumi.get(__ret__, 'redispatch_attempt_count'),
|
|
401
|
+
send_proxy_v2=pulumi.get(__ret__, 'send_proxy_v2'),
|
|
402
|
+
server_ips=pulumi.get(__ret__, 'server_ips'),
|
|
403
|
+
ssl_bridging=pulumi.get(__ret__, 'ssl_bridging'),
|
|
404
|
+
sticky_sessions=pulumi.get(__ret__, 'sticky_sessions'),
|
|
405
|
+
sticky_sessions_cookie_name=pulumi.get(__ret__, 'sticky_sessions_cookie_name'),
|
|
406
|
+
timeout_connect=pulumi.get(__ret__, 'timeout_connect'),
|
|
407
|
+
timeout_queue=pulumi.get(__ret__, 'timeout_queue'),
|
|
408
|
+
timeout_server=pulumi.get(__ret__, 'timeout_server'),
|
|
409
|
+
timeout_tunnel=pulumi.get(__ret__, 'timeout_tunnel'))
|
|
410
|
+
def get_lb_backend_output(backend_id: Optional[pulumi.Input[Optional[str]]] = None,
|
|
411
|
+
lb_id: Optional[pulumi.Input[Optional[str]]] = None,
|
|
412
|
+
name: Optional[pulumi.Input[Optional[str]]] = None,
|
|
413
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetLbBackendResult]:
|
|
414
|
+
"""
|
|
415
|
+
Get information about Scaleway Load Balancer backends.
|
|
416
|
+
|
|
417
|
+
For more information, see the [main documentation](https://www.scaleway.com/en/docs/network/load-balancer/reference-content/configuring-backends/) or [API documentation](https://www.scaleway.com/en/developers/api/load-balancer/zoned-api/#path-backends).
|
|
418
|
+
|
|
419
|
+
## Example Usage
|
|
420
|
+
|
|
421
|
+
```python
|
|
422
|
+
import pulumi
|
|
423
|
+
import pulumi_scaleway as scaleway
|
|
424
|
+
import pulumiverse_scaleway as scaleway
|
|
425
|
+
|
|
426
|
+
main = scaleway.LoadbalancerIp("main")
|
|
427
|
+
main_loadbalancer = scaleway.Loadbalancer("main",
|
|
428
|
+
ip_id=main.id,
|
|
429
|
+
name="data-test-lb-backend",
|
|
430
|
+
type="LB-S")
|
|
431
|
+
main_loadbalancer_backend = scaleway.LoadbalancerBackend("main",
|
|
432
|
+
lb_id=main_loadbalancer.id,
|
|
433
|
+
name="backend01",
|
|
434
|
+
forward_protocol="http",
|
|
435
|
+
forward_port=80)
|
|
436
|
+
by_id = scaleway.get_lb_backend_output(backend_id=main_loadbalancer_backend.id)
|
|
437
|
+
by_name = scaleway.get_lb_backend_output(name=main_loadbalancer_backend.name,
|
|
438
|
+
lb_id=main_loadbalancer.id)
|
|
439
|
+
```
|
|
440
|
+
|
|
441
|
+
|
|
442
|
+
:param str backend_id: The backend ID.
|
|
443
|
+
- Only one of `name` and `backend_id` should be specified.
|
|
444
|
+
:param str lb_id: Load Balancer ID this backend is attached to.
|
|
445
|
+
:param str name: The name of the backend.
|
|
446
|
+
- When using `name` you should specify the `lb-id`
|
|
447
|
+
"""
|
|
448
|
+
__args__ = dict()
|
|
449
|
+
__args__['backendId'] = backend_id
|
|
450
|
+
__args__['lbId'] = lb_id
|
|
451
|
+
__args__['name'] = name
|
|
452
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
453
|
+
__ret__ = pulumi.runtime.invoke_output('scaleway:index/getLbBackend:getLbBackend', __args__, opts=opts, typ=GetLbBackendResult)
|
|
454
|
+
return __ret__.apply(lambda __response__: GetLbBackendResult(
|
|
455
|
+
backend_id=pulumi.get(__response__, 'backend_id'),
|
|
456
|
+
failover_host=pulumi.get(__response__, 'failover_host'),
|
|
457
|
+
forward_port=pulumi.get(__response__, 'forward_port'),
|
|
458
|
+
forward_port_algorithm=pulumi.get(__response__, 'forward_port_algorithm'),
|
|
459
|
+
forward_protocol=pulumi.get(__response__, 'forward_protocol'),
|
|
460
|
+
health_check_delay=pulumi.get(__response__, 'health_check_delay'),
|
|
461
|
+
health_check_http=pulumi.get(__response__, 'health_check_http'),
|
|
462
|
+
health_check_https=pulumi.get(__response__, 'health_check_https'),
|
|
463
|
+
health_check_max_retries=pulumi.get(__response__, 'health_check_max_retries'),
|
|
464
|
+
health_check_port=pulumi.get(__response__, 'health_check_port'),
|
|
465
|
+
health_check_send_proxy=pulumi.get(__response__, 'health_check_send_proxy'),
|
|
466
|
+
health_check_tcps=pulumi.get(__response__, 'health_check_tcps'),
|
|
467
|
+
health_check_timeout=pulumi.get(__response__, 'health_check_timeout'),
|
|
468
|
+
health_check_transient_delay=pulumi.get(__response__, 'health_check_transient_delay'),
|
|
469
|
+
id=pulumi.get(__response__, 'id'),
|
|
470
|
+
ignore_ssl_server_verify=pulumi.get(__response__, 'ignore_ssl_server_verify'),
|
|
471
|
+
lb_id=pulumi.get(__response__, 'lb_id'),
|
|
472
|
+
max_connections=pulumi.get(__response__, 'max_connections'),
|
|
473
|
+
max_retries=pulumi.get(__response__, 'max_retries'),
|
|
474
|
+
name=pulumi.get(__response__, 'name'),
|
|
475
|
+
on_marked_down_action=pulumi.get(__response__, 'on_marked_down_action'),
|
|
476
|
+
proxy_protocol=pulumi.get(__response__, 'proxy_protocol'),
|
|
477
|
+
redispatch_attempt_count=pulumi.get(__response__, 'redispatch_attempt_count'),
|
|
478
|
+
send_proxy_v2=pulumi.get(__response__, 'send_proxy_v2'),
|
|
479
|
+
server_ips=pulumi.get(__response__, 'server_ips'),
|
|
480
|
+
ssl_bridging=pulumi.get(__response__, 'ssl_bridging'),
|
|
481
|
+
sticky_sessions=pulumi.get(__response__, 'sticky_sessions'),
|
|
482
|
+
sticky_sessions_cookie_name=pulumi.get(__response__, 'sticky_sessions_cookie_name'),
|
|
483
|
+
timeout_connect=pulumi.get(__response__, 'timeout_connect'),
|
|
484
|
+
timeout_queue=pulumi.get(__response__, 'timeout_queue'),
|
|
485
|
+
timeout_server=pulumi.get(__response__, 'timeout_server'),
|
|
486
|
+
timeout_tunnel=pulumi.get(__response__, 'timeout_tunnel')))
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
|
|
5
|
+
import copy
|
|
6
|
+
import warnings
|
|
7
|
+
import sys
|
|
8
|
+
import pulumi
|
|
9
|
+
import pulumi.runtime
|
|
10
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
15
|
+
from . import _utilities
|
|
16
|
+
from . import outputs
|
|
17
|
+
|
|
18
|
+
__all__ = [
|
|
19
|
+
'GetLbBackendsResult',
|
|
20
|
+
'AwaitableGetLbBackendsResult',
|
|
21
|
+
'get_lb_backends',
|
|
22
|
+
'get_lb_backends_output',
|
|
23
|
+
]
|
|
24
|
+
|
|
25
|
+
@pulumi.output_type
|
|
26
|
+
class GetLbBackendsResult:
|
|
27
|
+
"""
|
|
28
|
+
A collection of values returned by getLbBackends.
|
|
29
|
+
"""
|
|
30
|
+
def __init__(__self__, backends=None, id=None, lb_id=None, name=None, organization_id=None, project_id=None, zone=None):
|
|
31
|
+
if backends and not isinstance(backends, list):
|
|
32
|
+
raise TypeError("Expected argument 'backends' to be a list")
|
|
33
|
+
pulumi.set(__self__, "backends", backends)
|
|
34
|
+
if id and not isinstance(id, str):
|
|
35
|
+
raise TypeError("Expected argument 'id' to be a str")
|
|
36
|
+
pulumi.set(__self__, "id", id)
|
|
37
|
+
if lb_id and not isinstance(lb_id, str):
|
|
38
|
+
raise TypeError("Expected argument 'lb_id' to be a str")
|
|
39
|
+
pulumi.set(__self__, "lb_id", lb_id)
|
|
40
|
+
if name and not isinstance(name, str):
|
|
41
|
+
raise TypeError("Expected argument 'name' to be a str")
|
|
42
|
+
pulumi.set(__self__, "name", name)
|
|
43
|
+
if organization_id and not isinstance(organization_id, str):
|
|
44
|
+
raise TypeError("Expected argument 'organization_id' to be a str")
|
|
45
|
+
pulumi.set(__self__, "organization_id", organization_id)
|
|
46
|
+
if project_id and not isinstance(project_id, str):
|
|
47
|
+
raise TypeError("Expected argument 'project_id' to be a str")
|
|
48
|
+
pulumi.set(__self__, "project_id", project_id)
|
|
49
|
+
if zone and not isinstance(zone, str):
|
|
50
|
+
raise TypeError("Expected argument 'zone' to be a str")
|
|
51
|
+
pulumi.set(__self__, "zone", zone)
|
|
52
|
+
|
|
53
|
+
@property
|
|
54
|
+
@pulumi.getter
|
|
55
|
+
def backends(self) -> Sequence['outputs.GetLbBackendsBackendResult']:
|
|
56
|
+
"""
|
|
57
|
+
List of retrieved backends
|
|
58
|
+
"""
|
|
59
|
+
return pulumi.get(self, "backends")
|
|
60
|
+
|
|
61
|
+
@property
|
|
62
|
+
@pulumi.getter
|
|
63
|
+
def id(self) -> str:
|
|
64
|
+
"""
|
|
65
|
+
The provider-assigned unique ID for this managed resource.
|
|
66
|
+
"""
|
|
67
|
+
return pulumi.get(self, "id")
|
|
68
|
+
|
|
69
|
+
@property
|
|
70
|
+
@pulumi.getter(name="lbId")
|
|
71
|
+
def lb_id(self) -> str:
|
|
72
|
+
return pulumi.get(self, "lb_id")
|
|
73
|
+
|
|
74
|
+
@property
|
|
75
|
+
@pulumi.getter
|
|
76
|
+
def name(self) -> Optional[str]:
|
|
77
|
+
return pulumi.get(self, "name")
|
|
78
|
+
|
|
79
|
+
@property
|
|
80
|
+
@pulumi.getter(name="organizationId")
|
|
81
|
+
def organization_id(self) -> str:
|
|
82
|
+
return pulumi.get(self, "organization_id")
|
|
83
|
+
|
|
84
|
+
@property
|
|
85
|
+
@pulumi.getter(name="projectId")
|
|
86
|
+
def project_id(self) -> str:
|
|
87
|
+
return pulumi.get(self, "project_id")
|
|
88
|
+
|
|
89
|
+
@property
|
|
90
|
+
@pulumi.getter
|
|
91
|
+
def zone(self) -> str:
|
|
92
|
+
return pulumi.get(self, "zone")
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
class AwaitableGetLbBackendsResult(GetLbBackendsResult):
|
|
96
|
+
# pylint: disable=using-constant-test
|
|
97
|
+
def __await__(self):
|
|
98
|
+
if False:
|
|
99
|
+
yield self
|
|
100
|
+
return GetLbBackendsResult(
|
|
101
|
+
backends=self.backends,
|
|
102
|
+
id=self.id,
|
|
103
|
+
lb_id=self.lb_id,
|
|
104
|
+
name=self.name,
|
|
105
|
+
organization_id=self.organization_id,
|
|
106
|
+
project_id=self.project_id,
|
|
107
|
+
zone=self.zone)
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
def get_lb_backends(lb_id: Optional[str] = None,
|
|
111
|
+
name: Optional[str] = None,
|
|
112
|
+
project_id: Optional[str] = None,
|
|
113
|
+
zone: Optional[str] = None,
|
|
114
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetLbBackendsResult:
|
|
115
|
+
"""
|
|
116
|
+
Gets information about multiple Load Balancer Backends.
|
|
117
|
+
|
|
118
|
+
For more information, see the [main documentation](https://www.scaleway.com/en/docs/network/load-balancer/reference-content/configuring-backends/) or [API documentation](https://www.scaleway.com/en/developers/api/load-balancer/zoned-api/#path-backends).
|
|
119
|
+
|
|
120
|
+
## Example Usage
|
|
121
|
+
|
|
122
|
+
```python
|
|
123
|
+
import pulumi
|
|
124
|
+
import pulumi_scaleway as scaleway
|
|
125
|
+
|
|
126
|
+
# Find backends that share the same LB ID
|
|
127
|
+
by_lbid = scaleway.get_lb_backends(lb_id=lb01["id"])
|
|
128
|
+
# Find backends by LB ID and name
|
|
129
|
+
by_lbid_and_name = scaleway.get_lb_backends(lb_id=lb01["id"],
|
|
130
|
+
name="tf-backend-datasource")
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
:param str lb_id: The Load Balancer ID this backend is attached to. Backends with a matching ID are listed.
|
|
135
|
+
:param str name: The backend name to filter for. Backends with a matching name are listed.
|
|
136
|
+
:param str zone: `zone`) The zone in which backends exist.
|
|
137
|
+
"""
|
|
138
|
+
__args__ = dict()
|
|
139
|
+
__args__['lbId'] = lb_id
|
|
140
|
+
__args__['name'] = name
|
|
141
|
+
__args__['projectId'] = project_id
|
|
142
|
+
__args__['zone'] = zone
|
|
143
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
144
|
+
__ret__ = pulumi.runtime.invoke('scaleway:index/getLbBackends:getLbBackends', __args__, opts=opts, typ=GetLbBackendsResult).value
|
|
145
|
+
|
|
146
|
+
return AwaitableGetLbBackendsResult(
|
|
147
|
+
backends=pulumi.get(__ret__, 'backends'),
|
|
148
|
+
id=pulumi.get(__ret__, 'id'),
|
|
149
|
+
lb_id=pulumi.get(__ret__, 'lb_id'),
|
|
150
|
+
name=pulumi.get(__ret__, 'name'),
|
|
151
|
+
organization_id=pulumi.get(__ret__, 'organization_id'),
|
|
152
|
+
project_id=pulumi.get(__ret__, 'project_id'),
|
|
153
|
+
zone=pulumi.get(__ret__, 'zone'))
|
|
154
|
+
def get_lb_backends_output(lb_id: Optional[pulumi.Input[str]] = None,
|
|
155
|
+
name: Optional[pulumi.Input[Optional[str]]] = None,
|
|
156
|
+
project_id: Optional[pulumi.Input[Optional[str]]] = None,
|
|
157
|
+
zone: Optional[pulumi.Input[Optional[str]]] = None,
|
|
158
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetLbBackendsResult]:
|
|
159
|
+
"""
|
|
160
|
+
Gets information about multiple Load Balancer Backends.
|
|
161
|
+
|
|
162
|
+
For more information, see the [main documentation](https://www.scaleway.com/en/docs/network/load-balancer/reference-content/configuring-backends/) or [API documentation](https://www.scaleway.com/en/developers/api/load-balancer/zoned-api/#path-backends).
|
|
163
|
+
|
|
164
|
+
## Example Usage
|
|
165
|
+
|
|
166
|
+
```python
|
|
167
|
+
import pulumi
|
|
168
|
+
import pulumi_scaleway as scaleway
|
|
169
|
+
|
|
170
|
+
# Find backends that share the same LB ID
|
|
171
|
+
by_lbid = scaleway.get_lb_backends(lb_id=lb01["id"])
|
|
172
|
+
# Find backends by LB ID and name
|
|
173
|
+
by_lbid_and_name = scaleway.get_lb_backends(lb_id=lb01["id"],
|
|
174
|
+
name="tf-backend-datasource")
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
:param str lb_id: The Load Balancer ID this backend is attached to. Backends with a matching ID are listed.
|
|
179
|
+
:param str name: The backend name to filter for. Backends with a matching name are listed.
|
|
180
|
+
:param str zone: `zone`) The zone in which backends exist.
|
|
181
|
+
"""
|
|
182
|
+
__args__ = dict()
|
|
183
|
+
__args__['lbId'] = lb_id
|
|
184
|
+
__args__['name'] = name
|
|
185
|
+
__args__['projectId'] = project_id
|
|
186
|
+
__args__['zone'] = zone
|
|
187
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
188
|
+
__ret__ = pulumi.runtime.invoke_output('scaleway:index/getLbBackends:getLbBackends', __args__, opts=opts, typ=GetLbBackendsResult)
|
|
189
|
+
return __ret__.apply(lambda __response__: GetLbBackendsResult(
|
|
190
|
+
backends=pulumi.get(__response__, 'backends'),
|
|
191
|
+
id=pulumi.get(__response__, 'id'),
|
|
192
|
+
lb_id=pulumi.get(__response__, 'lb_id'),
|
|
193
|
+
name=pulumi.get(__response__, 'name'),
|
|
194
|
+
organization_id=pulumi.get(__response__, 'organization_id'),
|
|
195
|
+
project_id=pulumi.get(__response__, 'project_id'),
|
|
196
|
+
zone=pulumi.get(__response__, 'zone')))
|