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,268 @@
|
|
|
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
|
+
'GetInstanceSecurityGroupResult',
|
|
20
|
+
'AwaitableGetInstanceSecurityGroupResult',
|
|
21
|
+
'get_instance_security_group',
|
|
22
|
+
'get_instance_security_group_output',
|
|
23
|
+
]
|
|
24
|
+
|
|
25
|
+
@pulumi.output_type
|
|
26
|
+
class GetInstanceSecurityGroupResult:
|
|
27
|
+
"""
|
|
28
|
+
A collection of values returned by getInstanceSecurityGroup.
|
|
29
|
+
"""
|
|
30
|
+
def __init__(__self__, description=None, enable_default_security=None, external_rules=None, id=None, inbound_default_policy=None, inbound_rules=None, name=None, organization_id=None, outbound_default_policy=None, outbound_rules=None, project_id=None, security_group_id=None, stateful=None, tags=None, zone=None):
|
|
31
|
+
if description and not isinstance(description, str):
|
|
32
|
+
raise TypeError("Expected argument 'description' to be a str")
|
|
33
|
+
pulumi.set(__self__, "description", description)
|
|
34
|
+
if enable_default_security and not isinstance(enable_default_security, bool):
|
|
35
|
+
raise TypeError("Expected argument 'enable_default_security' to be a bool")
|
|
36
|
+
pulumi.set(__self__, "enable_default_security", enable_default_security)
|
|
37
|
+
if external_rules and not isinstance(external_rules, bool):
|
|
38
|
+
raise TypeError("Expected argument 'external_rules' to be a bool")
|
|
39
|
+
pulumi.set(__self__, "external_rules", external_rules)
|
|
40
|
+
if id and not isinstance(id, str):
|
|
41
|
+
raise TypeError("Expected argument 'id' to be a str")
|
|
42
|
+
pulumi.set(__self__, "id", id)
|
|
43
|
+
if inbound_default_policy and not isinstance(inbound_default_policy, str):
|
|
44
|
+
raise TypeError("Expected argument 'inbound_default_policy' to be a str")
|
|
45
|
+
pulumi.set(__self__, "inbound_default_policy", inbound_default_policy)
|
|
46
|
+
if inbound_rules and not isinstance(inbound_rules, list):
|
|
47
|
+
raise TypeError("Expected argument 'inbound_rules' to be a list")
|
|
48
|
+
pulumi.set(__self__, "inbound_rules", inbound_rules)
|
|
49
|
+
if name and not isinstance(name, str):
|
|
50
|
+
raise TypeError("Expected argument 'name' to be a str")
|
|
51
|
+
pulumi.set(__self__, "name", name)
|
|
52
|
+
if organization_id and not isinstance(organization_id, str):
|
|
53
|
+
raise TypeError("Expected argument 'organization_id' to be a str")
|
|
54
|
+
pulumi.set(__self__, "organization_id", organization_id)
|
|
55
|
+
if outbound_default_policy and not isinstance(outbound_default_policy, str):
|
|
56
|
+
raise TypeError("Expected argument 'outbound_default_policy' to be a str")
|
|
57
|
+
pulumi.set(__self__, "outbound_default_policy", outbound_default_policy)
|
|
58
|
+
if outbound_rules and not isinstance(outbound_rules, list):
|
|
59
|
+
raise TypeError("Expected argument 'outbound_rules' to be a list")
|
|
60
|
+
pulumi.set(__self__, "outbound_rules", outbound_rules)
|
|
61
|
+
if project_id and not isinstance(project_id, str):
|
|
62
|
+
raise TypeError("Expected argument 'project_id' to be a str")
|
|
63
|
+
pulumi.set(__self__, "project_id", project_id)
|
|
64
|
+
if security_group_id and not isinstance(security_group_id, str):
|
|
65
|
+
raise TypeError("Expected argument 'security_group_id' to be a str")
|
|
66
|
+
pulumi.set(__self__, "security_group_id", security_group_id)
|
|
67
|
+
if stateful and not isinstance(stateful, bool):
|
|
68
|
+
raise TypeError("Expected argument 'stateful' to be a bool")
|
|
69
|
+
pulumi.set(__self__, "stateful", stateful)
|
|
70
|
+
if tags and not isinstance(tags, list):
|
|
71
|
+
raise TypeError("Expected argument 'tags' to be a list")
|
|
72
|
+
pulumi.set(__self__, "tags", tags)
|
|
73
|
+
if zone and not isinstance(zone, str):
|
|
74
|
+
raise TypeError("Expected argument 'zone' to be a str")
|
|
75
|
+
pulumi.set(__self__, "zone", zone)
|
|
76
|
+
|
|
77
|
+
@property
|
|
78
|
+
@pulumi.getter
|
|
79
|
+
def description(self) -> str:
|
|
80
|
+
return pulumi.get(self, "description")
|
|
81
|
+
|
|
82
|
+
@property
|
|
83
|
+
@pulumi.getter(name="enableDefaultSecurity")
|
|
84
|
+
def enable_default_security(self) -> bool:
|
|
85
|
+
return pulumi.get(self, "enable_default_security")
|
|
86
|
+
|
|
87
|
+
@property
|
|
88
|
+
@pulumi.getter(name="externalRules")
|
|
89
|
+
def external_rules(self) -> bool:
|
|
90
|
+
return pulumi.get(self, "external_rules")
|
|
91
|
+
|
|
92
|
+
@property
|
|
93
|
+
@pulumi.getter
|
|
94
|
+
def id(self) -> str:
|
|
95
|
+
"""
|
|
96
|
+
The provider-assigned unique ID for this managed resource.
|
|
97
|
+
"""
|
|
98
|
+
return pulumi.get(self, "id")
|
|
99
|
+
|
|
100
|
+
@property
|
|
101
|
+
@pulumi.getter(name="inboundDefaultPolicy")
|
|
102
|
+
def inbound_default_policy(self) -> str:
|
|
103
|
+
"""
|
|
104
|
+
The default policy on incoming traffic. Possible values are: `accept` or `drop`.
|
|
105
|
+
"""
|
|
106
|
+
return pulumi.get(self, "inbound_default_policy")
|
|
107
|
+
|
|
108
|
+
@property
|
|
109
|
+
@pulumi.getter(name="inboundRules")
|
|
110
|
+
def inbound_rules(self) -> Sequence['outputs.GetInstanceSecurityGroupInboundRuleResult']:
|
|
111
|
+
"""
|
|
112
|
+
A list of inbound rule to add to the security group. (Structure is documented below.)
|
|
113
|
+
"""
|
|
114
|
+
return pulumi.get(self, "inbound_rules")
|
|
115
|
+
|
|
116
|
+
@property
|
|
117
|
+
@pulumi.getter
|
|
118
|
+
def name(self) -> Optional[str]:
|
|
119
|
+
return pulumi.get(self, "name")
|
|
120
|
+
|
|
121
|
+
@property
|
|
122
|
+
@pulumi.getter(name="organizationId")
|
|
123
|
+
def organization_id(self) -> str:
|
|
124
|
+
"""
|
|
125
|
+
The ID of the organization the security group is associated with.
|
|
126
|
+
"""
|
|
127
|
+
return pulumi.get(self, "organization_id")
|
|
128
|
+
|
|
129
|
+
@property
|
|
130
|
+
@pulumi.getter(name="outboundDefaultPolicy")
|
|
131
|
+
def outbound_default_policy(self) -> str:
|
|
132
|
+
"""
|
|
133
|
+
The default policy on outgoing traffic. Possible values are: `accept` or `drop`.
|
|
134
|
+
"""
|
|
135
|
+
return pulumi.get(self, "outbound_default_policy")
|
|
136
|
+
|
|
137
|
+
@property
|
|
138
|
+
@pulumi.getter(name="outboundRules")
|
|
139
|
+
def outbound_rules(self) -> Sequence['outputs.GetInstanceSecurityGroupOutboundRuleResult']:
|
|
140
|
+
"""
|
|
141
|
+
A list of outbound rule to add to the security group. (Structure is documented below.)
|
|
142
|
+
"""
|
|
143
|
+
return pulumi.get(self, "outbound_rules")
|
|
144
|
+
|
|
145
|
+
@property
|
|
146
|
+
@pulumi.getter(name="projectId")
|
|
147
|
+
def project_id(self) -> Optional[str]:
|
|
148
|
+
return pulumi.get(self, "project_id")
|
|
149
|
+
|
|
150
|
+
@property
|
|
151
|
+
@pulumi.getter(name="securityGroupId")
|
|
152
|
+
def security_group_id(self) -> Optional[str]:
|
|
153
|
+
return pulumi.get(self, "security_group_id")
|
|
154
|
+
|
|
155
|
+
@property
|
|
156
|
+
@pulumi.getter
|
|
157
|
+
def stateful(self) -> bool:
|
|
158
|
+
return pulumi.get(self, "stateful")
|
|
159
|
+
|
|
160
|
+
@property
|
|
161
|
+
@pulumi.getter
|
|
162
|
+
def tags(self) -> Sequence[str]:
|
|
163
|
+
return pulumi.get(self, "tags")
|
|
164
|
+
|
|
165
|
+
@property
|
|
166
|
+
@pulumi.getter
|
|
167
|
+
def zone(self) -> Optional[str]:
|
|
168
|
+
return pulumi.get(self, "zone")
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
class AwaitableGetInstanceSecurityGroupResult(GetInstanceSecurityGroupResult):
|
|
172
|
+
# pylint: disable=using-constant-test
|
|
173
|
+
def __await__(self):
|
|
174
|
+
if False:
|
|
175
|
+
yield self
|
|
176
|
+
return GetInstanceSecurityGroupResult(
|
|
177
|
+
description=self.description,
|
|
178
|
+
enable_default_security=self.enable_default_security,
|
|
179
|
+
external_rules=self.external_rules,
|
|
180
|
+
id=self.id,
|
|
181
|
+
inbound_default_policy=self.inbound_default_policy,
|
|
182
|
+
inbound_rules=self.inbound_rules,
|
|
183
|
+
name=self.name,
|
|
184
|
+
organization_id=self.organization_id,
|
|
185
|
+
outbound_default_policy=self.outbound_default_policy,
|
|
186
|
+
outbound_rules=self.outbound_rules,
|
|
187
|
+
project_id=self.project_id,
|
|
188
|
+
security_group_id=self.security_group_id,
|
|
189
|
+
stateful=self.stateful,
|
|
190
|
+
tags=self.tags,
|
|
191
|
+
zone=self.zone)
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
def get_instance_security_group(name: Optional[str] = None,
|
|
195
|
+
project_id: Optional[str] = None,
|
|
196
|
+
security_group_id: Optional[str] = None,
|
|
197
|
+
zone: Optional[str] = None,
|
|
198
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetInstanceSecurityGroupResult:
|
|
199
|
+
"""
|
|
200
|
+
Gets information about a Security Group.
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
:param str name: The security group name. Only one of `name` and `security_group_id` should be specified.
|
|
204
|
+
:param str project_id: The ID of the project the security group is associated with.
|
|
205
|
+
:param str security_group_id: The security group id. Only one of `name` and `security_group_id` should be specified.
|
|
206
|
+
:param str zone: `zone`) The zone in which the security group exists.
|
|
207
|
+
"""
|
|
208
|
+
__args__ = dict()
|
|
209
|
+
__args__['name'] = name
|
|
210
|
+
__args__['projectId'] = project_id
|
|
211
|
+
__args__['securityGroupId'] = security_group_id
|
|
212
|
+
__args__['zone'] = zone
|
|
213
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
214
|
+
__ret__ = pulumi.runtime.invoke('scaleway:index/getInstanceSecurityGroup:getInstanceSecurityGroup', __args__, opts=opts, typ=GetInstanceSecurityGroupResult).value
|
|
215
|
+
|
|
216
|
+
return AwaitableGetInstanceSecurityGroupResult(
|
|
217
|
+
description=pulumi.get(__ret__, 'description'),
|
|
218
|
+
enable_default_security=pulumi.get(__ret__, 'enable_default_security'),
|
|
219
|
+
external_rules=pulumi.get(__ret__, 'external_rules'),
|
|
220
|
+
id=pulumi.get(__ret__, 'id'),
|
|
221
|
+
inbound_default_policy=pulumi.get(__ret__, 'inbound_default_policy'),
|
|
222
|
+
inbound_rules=pulumi.get(__ret__, 'inbound_rules'),
|
|
223
|
+
name=pulumi.get(__ret__, 'name'),
|
|
224
|
+
organization_id=pulumi.get(__ret__, 'organization_id'),
|
|
225
|
+
outbound_default_policy=pulumi.get(__ret__, 'outbound_default_policy'),
|
|
226
|
+
outbound_rules=pulumi.get(__ret__, 'outbound_rules'),
|
|
227
|
+
project_id=pulumi.get(__ret__, 'project_id'),
|
|
228
|
+
security_group_id=pulumi.get(__ret__, 'security_group_id'),
|
|
229
|
+
stateful=pulumi.get(__ret__, 'stateful'),
|
|
230
|
+
tags=pulumi.get(__ret__, 'tags'),
|
|
231
|
+
zone=pulumi.get(__ret__, 'zone'))
|
|
232
|
+
def get_instance_security_group_output(name: Optional[pulumi.Input[Optional[str]]] = None,
|
|
233
|
+
project_id: Optional[pulumi.Input[Optional[str]]] = None,
|
|
234
|
+
security_group_id: Optional[pulumi.Input[Optional[str]]] = None,
|
|
235
|
+
zone: Optional[pulumi.Input[Optional[str]]] = None,
|
|
236
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetInstanceSecurityGroupResult]:
|
|
237
|
+
"""
|
|
238
|
+
Gets information about a Security Group.
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
:param str name: The security group name. Only one of `name` and `security_group_id` should be specified.
|
|
242
|
+
:param str project_id: The ID of the project the security group is associated with.
|
|
243
|
+
:param str security_group_id: The security group id. Only one of `name` and `security_group_id` should be specified.
|
|
244
|
+
:param str zone: `zone`) The zone in which the security group exists.
|
|
245
|
+
"""
|
|
246
|
+
__args__ = dict()
|
|
247
|
+
__args__['name'] = name
|
|
248
|
+
__args__['projectId'] = project_id
|
|
249
|
+
__args__['securityGroupId'] = security_group_id
|
|
250
|
+
__args__['zone'] = zone
|
|
251
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
252
|
+
__ret__ = pulumi.runtime.invoke_output('scaleway:index/getInstanceSecurityGroup:getInstanceSecurityGroup', __args__, opts=opts, typ=GetInstanceSecurityGroupResult)
|
|
253
|
+
return __ret__.apply(lambda __response__: GetInstanceSecurityGroupResult(
|
|
254
|
+
description=pulumi.get(__response__, 'description'),
|
|
255
|
+
enable_default_security=pulumi.get(__response__, 'enable_default_security'),
|
|
256
|
+
external_rules=pulumi.get(__response__, 'external_rules'),
|
|
257
|
+
id=pulumi.get(__response__, 'id'),
|
|
258
|
+
inbound_default_policy=pulumi.get(__response__, 'inbound_default_policy'),
|
|
259
|
+
inbound_rules=pulumi.get(__response__, 'inbound_rules'),
|
|
260
|
+
name=pulumi.get(__response__, 'name'),
|
|
261
|
+
organization_id=pulumi.get(__response__, 'organization_id'),
|
|
262
|
+
outbound_default_policy=pulumi.get(__response__, 'outbound_default_policy'),
|
|
263
|
+
outbound_rules=pulumi.get(__response__, 'outbound_rules'),
|
|
264
|
+
project_id=pulumi.get(__response__, 'project_id'),
|
|
265
|
+
security_group_id=pulumi.get(__response__, 'security_group_id'),
|
|
266
|
+
stateful=pulumi.get(__response__, 'stateful'),
|
|
267
|
+
tags=pulumi.get(__response__, 'tags'),
|
|
268
|
+
zone=pulumi.get(__response__, 'zone')))
|