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
pulumi_digitalocean/droplet.py
CHANGED
|
@@ -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,67 +22,67 @@ __all__ = ['DropletArgs', 'Droplet']
|
|
|
22
22
|
@pulumi.input_type
|
|
23
23
|
class DropletArgs:
|
|
24
24
|
def __init__(__self__, *,
|
|
25
|
-
image: pulumi.Input[str],
|
|
26
|
-
size: pulumi.Input[Union[str, 'DropletSlug']],
|
|
25
|
+
image: pulumi.Input[_builtins.str],
|
|
26
|
+
size: pulumi.Input[Union[_builtins.str, 'DropletSlug']],
|
|
27
27
|
backup_policy: Optional[pulumi.Input['DropletBackupPolicyArgs']] = None,
|
|
28
|
-
backups: Optional[pulumi.Input[bool]] = None,
|
|
29
|
-
droplet_agent: Optional[pulumi.Input[bool]] = None,
|
|
30
|
-
graceful_shutdown: Optional[pulumi.Input[bool]] = None,
|
|
31
|
-
ipv6: Optional[pulumi.Input[bool]] = None,
|
|
32
|
-
ipv6_address: Optional[pulumi.Input[str]] = None,
|
|
33
|
-
monitoring: Optional[pulumi.Input[bool]] = None,
|
|
34
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
35
|
-
private_networking: Optional[pulumi.Input[bool]] = None,
|
|
36
|
-
region: Optional[pulumi.Input[Union[str, 'Region']]] = None,
|
|
37
|
-
resize_disk: Optional[pulumi.Input[bool]] = None,
|
|
38
|
-
ssh_keys: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
39
|
-
tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
40
|
-
user_data: Optional[pulumi.Input[str]] = None,
|
|
41
|
-
volume_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
42
|
-
vpc_uuid: Optional[pulumi.Input[str]] = None):
|
|
28
|
+
backups: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
29
|
+
droplet_agent: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
30
|
+
graceful_shutdown: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
31
|
+
ipv6: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
32
|
+
ipv6_address: Optional[pulumi.Input[_builtins.str]] = None,
|
|
33
|
+
monitoring: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
34
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
35
|
+
private_networking: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
36
|
+
region: Optional[pulumi.Input[Union[_builtins.str, 'Region']]] = None,
|
|
37
|
+
resize_disk: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
38
|
+
ssh_keys: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
39
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
40
|
+
user_data: Optional[pulumi.Input[_builtins.str]] = None,
|
|
41
|
+
volume_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
42
|
+
vpc_uuid: Optional[pulumi.Input[_builtins.str]] = None):
|
|
43
43
|
"""
|
|
44
44
|
The set of arguments for constructing a Droplet resource.
|
|
45
|
-
:param pulumi.Input[str] image: The Droplet image ID or slug. This could be either image ID or droplet snapshot ID.
|
|
46
|
-
:param pulumi.Input[Union[str, 'DropletSlug']] size: The unique slug that identifies the type of Droplet. You
|
|
45
|
+
:param pulumi.Input[_builtins.str] image: The Droplet image ID or slug. This could be either image ID or droplet snapshot ID. You can find image IDs and slugs using the [DigitalOcean API](https://docs.digitalocean.com/reference/api/digitalocean/#tag/Images).
|
|
46
|
+
:param pulumi.Input[Union[_builtins.str, 'DropletSlug']] size: The unique slug that identifies the type of Droplet. You may list the available slugs using the [DigitalOcean API](https://docs.digitalocean.com/reference/api/digitalocean/#tag/Sizes).
|
|
47
47
|
:param pulumi.Input['DropletBackupPolicyArgs'] backup_policy: An object specifying the backup policy for the Droplet. If omitted and `backups` is `true`, the backup plan will default to daily.
|
|
48
|
-
:param pulumi.Input[bool] backups: Boolean controlling if backups are made. Defaults to
|
|
48
|
+
:param pulumi.Input[_builtins.bool] backups: Boolean controlling if backups are made. Defaults to
|
|
49
49
|
false.
|
|
50
|
-
:param pulumi.Input[bool] droplet_agent: A boolean indicating whether to install the
|
|
50
|
+
:param pulumi.Input[_builtins.bool] droplet_agent: A boolean indicating whether to install the
|
|
51
51
|
DigitalOcean agent used for providing access to the Droplet web console in
|
|
52
52
|
the control panel. By default, the agent is installed on new Droplets but
|
|
53
53
|
installation errors (i.e. OS not supported) are ignored. To prevent it from
|
|
54
54
|
being installed, set to `false`. To make installation errors fatal, explicitly
|
|
55
55
|
set it to `true`.
|
|
56
|
-
:param pulumi.Input[bool] graceful_shutdown: A boolean indicating whether the droplet
|
|
56
|
+
:param pulumi.Input[_builtins.bool] graceful_shutdown: A boolean indicating whether the droplet
|
|
57
57
|
should be gracefully shut down before it is deleted.
|
|
58
58
|
|
|
59
59
|
> **NOTE:** If you use `volume_ids` on a Droplet, this provider will assume management over the full set volumes for the instance, and treat additional volumes as a drift. For this reason, `volume_ids` must not be mixed with external `VolumeAttachment` resources for a given instance.
|
|
60
|
-
:param pulumi.Input[bool] ipv6: Boolean controlling if IPv6 is enabled. Defaults to false.
|
|
60
|
+
:param pulumi.Input[_builtins.bool] ipv6: Boolean controlling if IPv6 is enabled. Defaults to false.
|
|
61
61
|
Once enabled for a Droplet, IPv6 can not be disabled. When enabling IPv6 on
|
|
62
62
|
an existing Droplet, [additional OS-level configuration](https://docs.digitalocean.com/products/networking/ipv6/how-to/enable/#on-existing-droplets)
|
|
63
63
|
is required.
|
|
64
|
-
:param pulumi.Input[str] ipv6_address: The IPv6 address
|
|
65
|
-
:param pulumi.Input[bool] monitoring: Boolean controlling whether monitoring agent is installed.
|
|
64
|
+
:param pulumi.Input[_builtins.str] ipv6_address: The IPv6 address
|
|
65
|
+
:param pulumi.Input[_builtins.bool] monitoring: Boolean controlling whether monitoring agent is installed.
|
|
66
66
|
Defaults to false. If set to `true`, you can configure monitor alert policies
|
|
67
67
|
[monitor alert resource](https://www.terraform.io/providers/digitalocean/digitalocean/latest/docs/resources/monitor_alert)
|
|
68
|
-
:param pulumi.Input[str] name: The Droplet name.
|
|
69
|
-
:param pulumi.Input[bool] private_networking: **Deprecated** Boolean controlling if private networking
|
|
68
|
+
:param pulumi.Input[_builtins.str] name: The Droplet name.
|
|
69
|
+
:param pulumi.Input[_builtins.bool] private_networking: **Deprecated** Boolean controlling if private networking
|
|
70
70
|
is enabled. This parameter has been deprecated. Use `vpc_uuid` instead to specify a VPC network for the Droplet. If no `vpc_uuid` is provided, the Droplet will be placed in your account's default VPC for the region.
|
|
71
|
-
:param pulumi.Input[Union[str, 'Region']] region: The region where the Droplet will be created.
|
|
72
|
-
:param pulumi.Input[bool] resize_disk: Boolean controlling whether to increase the disk
|
|
71
|
+
:param pulumi.Input[Union[_builtins.str, 'Region']] region: The region where the Droplet will be created.
|
|
72
|
+
:param pulumi.Input[_builtins.bool] resize_disk: Boolean controlling whether to increase the disk
|
|
73
73
|
size when resizing a Droplet. It defaults to `true`. When set to `false`,
|
|
74
74
|
only the Droplet's RAM and CPU will be resized. **Increasing a Droplet's disk
|
|
75
75
|
size is a permanent change**. Increasing only RAM and CPU is reversible.
|
|
76
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] ssh_keys: A list of SSH key IDs or fingerprints to enable in
|
|
76
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] ssh_keys: A list of SSH key IDs or fingerprints to enable in
|
|
77
77
|
the format `[12345, 123456]`. To retrieve this info, use the
|
|
78
|
-
[DigitalOcean API](https://docs.digitalocean.com/reference/api/
|
|
78
|
+
[DigitalOcean API](https://docs.digitalocean.com/reference/api/digitalocean/#tag/SSH-Keys)
|
|
79
79
|
or CLI (`doctl compute ssh-key list`). Once a Droplet is created keys can not
|
|
80
80
|
be added or removed via this provider. Modifying this field will prompt you
|
|
81
81
|
to destroy and recreate the Droplet.
|
|
82
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] tags: A list of the tags to be applied to this Droplet.
|
|
83
|
-
:param pulumi.Input[str] user_data: A string of the desired User Data provided [during Droplet creation](https://docs.digitalocean.com/products/droplets/how-to/provide-user-data/). Changing this forces a new resource to be created.
|
|
84
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] volume_ids: A list of the IDs of each block storage volume to be attached to the Droplet.
|
|
85
|
-
:param pulumi.Input[str] vpc_uuid: The ID of the VPC where the Droplet will be located.
|
|
82
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] tags: A list of the tags to be applied to this Droplet.
|
|
83
|
+
:param pulumi.Input[_builtins.str] user_data: A string of the desired User Data provided [during Droplet creation](https://docs.digitalocean.com/products/droplets/how-to/provide-user-data/). Changing this forces a new resource to be created.
|
|
84
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] volume_ids: A list of the IDs of each block storage volume to be attached to the Droplet.
|
|
85
|
+
:param pulumi.Input[_builtins.str] vpc_uuid: The ID of the VPC where the Droplet will be located.
|
|
86
86
|
"""
|
|
87
87
|
pulumi.set(__self__, "image", image)
|
|
88
88
|
pulumi.set(__self__, "size", size)
|
|
@@ -122,31 +122,31 @@ class DropletArgs:
|
|
|
122
122
|
if vpc_uuid is not None:
|
|
123
123
|
pulumi.set(__self__, "vpc_uuid", vpc_uuid)
|
|
124
124
|
|
|
125
|
-
@property
|
|
125
|
+
@_builtins.property
|
|
126
126
|
@pulumi.getter
|
|
127
|
-
def image(self) -> pulumi.Input[str]:
|
|
127
|
+
def image(self) -> pulumi.Input[_builtins.str]:
|
|
128
128
|
"""
|
|
129
|
-
The Droplet image ID or slug. This could be either image ID or droplet snapshot ID.
|
|
129
|
+
The Droplet image ID or slug. This could be either image ID or droplet snapshot ID. You can find image IDs and slugs using the [DigitalOcean API](https://docs.digitalocean.com/reference/api/digitalocean/#tag/Images).
|
|
130
130
|
"""
|
|
131
131
|
return pulumi.get(self, "image")
|
|
132
132
|
|
|
133
133
|
@image.setter
|
|
134
|
-
def image(self, value: pulumi.Input[str]):
|
|
134
|
+
def image(self, value: pulumi.Input[_builtins.str]):
|
|
135
135
|
pulumi.set(self, "image", value)
|
|
136
136
|
|
|
137
|
-
@property
|
|
137
|
+
@_builtins.property
|
|
138
138
|
@pulumi.getter
|
|
139
|
-
def size(self) -> pulumi.Input[Union[str, 'DropletSlug']]:
|
|
139
|
+
def size(self) -> pulumi.Input[Union[_builtins.str, 'DropletSlug']]:
|
|
140
140
|
"""
|
|
141
|
-
The unique slug that identifies the type of Droplet. You
|
|
141
|
+
The unique slug that identifies the type of Droplet. You may list the available slugs using the [DigitalOcean API](https://docs.digitalocean.com/reference/api/digitalocean/#tag/Sizes).
|
|
142
142
|
"""
|
|
143
143
|
return pulumi.get(self, "size")
|
|
144
144
|
|
|
145
145
|
@size.setter
|
|
146
|
-
def size(self, value: pulumi.Input[Union[str, 'DropletSlug']]):
|
|
146
|
+
def size(self, value: pulumi.Input[Union[_builtins.str, 'DropletSlug']]):
|
|
147
147
|
pulumi.set(self, "size", value)
|
|
148
148
|
|
|
149
|
-
@property
|
|
149
|
+
@_builtins.property
|
|
150
150
|
@pulumi.getter(name="backupPolicy")
|
|
151
151
|
def backup_policy(self) -> Optional[pulumi.Input['DropletBackupPolicyArgs']]:
|
|
152
152
|
"""
|
|
@@ -158,9 +158,9 @@ class DropletArgs:
|
|
|
158
158
|
def backup_policy(self, value: Optional[pulumi.Input['DropletBackupPolicyArgs']]):
|
|
159
159
|
pulumi.set(self, "backup_policy", value)
|
|
160
160
|
|
|
161
|
-
@property
|
|
161
|
+
@_builtins.property
|
|
162
162
|
@pulumi.getter
|
|
163
|
-
def backups(self) -> Optional[pulumi.Input[bool]]:
|
|
163
|
+
def backups(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
164
164
|
"""
|
|
165
165
|
Boolean controlling if backups are made. Defaults to
|
|
166
166
|
false.
|
|
@@ -168,12 +168,12 @@ class DropletArgs:
|
|
|
168
168
|
return pulumi.get(self, "backups")
|
|
169
169
|
|
|
170
170
|
@backups.setter
|
|
171
|
-
def backups(self, value: Optional[pulumi.Input[bool]]):
|
|
171
|
+
def backups(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
172
172
|
pulumi.set(self, "backups", value)
|
|
173
173
|
|
|
174
|
-
@property
|
|
174
|
+
@_builtins.property
|
|
175
175
|
@pulumi.getter(name="dropletAgent")
|
|
176
|
-
def droplet_agent(self) -> Optional[pulumi.Input[bool]]:
|
|
176
|
+
def droplet_agent(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
177
177
|
"""
|
|
178
178
|
A boolean indicating whether to install the
|
|
179
179
|
DigitalOcean agent used for providing access to the Droplet web console in
|
|
@@ -185,12 +185,12 @@ class DropletArgs:
|
|
|
185
185
|
return pulumi.get(self, "droplet_agent")
|
|
186
186
|
|
|
187
187
|
@droplet_agent.setter
|
|
188
|
-
def droplet_agent(self, value: Optional[pulumi.Input[bool]]):
|
|
188
|
+
def droplet_agent(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
189
189
|
pulumi.set(self, "droplet_agent", value)
|
|
190
190
|
|
|
191
|
-
@property
|
|
191
|
+
@_builtins.property
|
|
192
192
|
@pulumi.getter(name="gracefulShutdown")
|
|
193
|
-
def graceful_shutdown(self) -> Optional[pulumi.Input[bool]]:
|
|
193
|
+
def graceful_shutdown(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
194
194
|
"""
|
|
195
195
|
A boolean indicating whether the droplet
|
|
196
196
|
should be gracefully shut down before it is deleted.
|
|
@@ -200,12 +200,12 @@ class DropletArgs:
|
|
|
200
200
|
return pulumi.get(self, "graceful_shutdown")
|
|
201
201
|
|
|
202
202
|
@graceful_shutdown.setter
|
|
203
|
-
def graceful_shutdown(self, value: Optional[pulumi.Input[bool]]):
|
|
203
|
+
def graceful_shutdown(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
204
204
|
pulumi.set(self, "graceful_shutdown", value)
|
|
205
205
|
|
|
206
|
-
@property
|
|
206
|
+
@_builtins.property
|
|
207
207
|
@pulumi.getter
|
|
208
|
-
def ipv6(self) -> Optional[pulumi.Input[bool]]:
|
|
208
|
+
def ipv6(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
209
209
|
"""
|
|
210
210
|
Boolean controlling if IPv6 is enabled. Defaults to false.
|
|
211
211
|
Once enabled for a Droplet, IPv6 can not be disabled. When enabling IPv6 on
|
|
@@ -215,24 +215,24 @@ class DropletArgs:
|
|
|
215
215
|
return pulumi.get(self, "ipv6")
|
|
216
216
|
|
|
217
217
|
@ipv6.setter
|
|
218
|
-
def ipv6(self, value: Optional[pulumi.Input[bool]]):
|
|
218
|
+
def ipv6(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
219
219
|
pulumi.set(self, "ipv6", value)
|
|
220
220
|
|
|
221
|
-
@property
|
|
221
|
+
@_builtins.property
|
|
222
222
|
@pulumi.getter(name="ipv6Address")
|
|
223
|
-
def ipv6_address(self) -> Optional[pulumi.Input[str]]:
|
|
223
|
+
def ipv6_address(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
224
224
|
"""
|
|
225
225
|
The IPv6 address
|
|
226
226
|
"""
|
|
227
227
|
return pulumi.get(self, "ipv6_address")
|
|
228
228
|
|
|
229
229
|
@ipv6_address.setter
|
|
230
|
-
def ipv6_address(self, value: Optional[pulumi.Input[str]]):
|
|
230
|
+
def ipv6_address(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
231
231
|
pulumi.set(self, "ipv6_address", value)
|
|
232
232
|
|
|
233
|
-
@property
|
|
233
|
+
@_builtins.property
|
|
234
234
|
@pulumi.getter
|
|
235
|
-
def monitoring(self) -> Optional[pulumi.Input[bool]]:
|
|
235
|
+
def monitoring(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
236
236
|
"""
|
|
237
237
|
Boolean controlling whether monitoring agent is installed.
|
|
238
238
|
Defaults to false. If set to `true`, you can configure monitor alert policies
|
|
@@ -241,25 +241,25 @@ class DropletArgs:
|
|
|
241
241
|
return pulumi.get(self, "monitoring")
|
|
242
242
|
|
|
243
243
|
@monitoring.setter
|
|
244
|
-
def monitoring(self, value: Optional[pulumi.Input[bool]]):
|
|
244
|
+
def monitoring(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
245
245
|
pulumi.set(self, "monitoring", value)
|
|
246
246
|
|
|
247
|
-
@property
|
|
247
|
+
@_builtins.property
|
|
248
248
|
@pulumi.getter
|
|
249
|
-
def name(self) -> Optional[pulumi.Input[str]]:
|
|
249
|
+
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
250
250
|
"""
|
|
251
251
|
The Droplet name.
|
|
252
252
|
"""
|
|
253
253
|
return pulumi.get(self, "name")
|
|
254
254
|
|
|
255
255
|
@name.setter
|
|
256
|
-
def name(self, value: Optional[pulumi.Input[str]]):
|
|
256
|
+
def name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
257
257
|
pulumi.set(self, "name", value)
|
|
258
258
|
|
|
259
|
-
@property
|
|
259
|
+
@_builtins.property
|
|
260
260
|
@pulumi.getter(name="privateNetworking")
|
|
261
261
|
@_utilities.deprecated("""This parameter has been deprecated. Use `vpc_uuid` instead to specify a VPC network for the Droplet. If no `vpc_uuid` is provided, the Droplet will be placed in your account's default VPC for the region.""")
|
|
262
|
-
def private_networking(self) -> Optional[pulumi.Input[bool]]:
|
|
262
|
+
def private_networking(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
263
263
|
"""
|
|
264
264
|
**Deprecated** Boolean controlling if private networking
|
|
265
265
|
is enabled. This parameter has been deprecated. Use `vpc_uuid` instead to specify a VPC network for the Droplet. If no `vpc_uuid` is provided, the Droplet will be placed in your account's default VPC for the region.
|
|
@@ -267,24 +267,24 @@ class DropletArgs:
|
|
|
267
267
|
return pulumi.get(self, "private_networking")
|
|
268
268
|
|
|
269
269
|
@private_networking.setter
|
|
270
|
-
def private_networking(self, value: Optional[pulumi.Input[bool]]):
|
|
270
|
+
def private_networking(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
271
271
|
pulumi.set(self, "private_networking", value)
|
|
272
272
|
|
|
273
|
-
@property
|
|
273
|
+
@_builtins.property
|
|
274
274
|
@pulumi.getter
|
|
275
|
-
def region(self) -> Optional[pulumi.Input[Union[str, 'Region']]]:
|
|
275
|
+
def region(self) -> Optional[pulumi.Input[Union[_builtins.str, 'Region']]]:
|
|
276
276
|
"""
|
|
277
277
|
The region where the Droplet will be created.
|
|
278
278
|
"""
|
|
279
279
|
return pulumi.get(self, "region")
|
|
280
280
|
|
|
281
281
|
@region.setter
|
|
282
|
-
def region(self, value: Optional[pulumi.Input[Union[str, 'Region']]]):
|
|
282
|
+
def region(self, value: Optional[pulumi.Input[Union[_builtins.str, 'Region']]]):
|
|
283
283
|
pulumi.set(self, "region", value)
|
|
284
284
|
|
|
285
|
-
@property
|
|
285
|
+
@_builtins.property
|
|
286
286
|
@pulumi.getter(name="resizeDisk")
|
|
287
|
-
def resize_disk(self) -> Optional[pulumi.Input[bool]]:
|
|
287
|
+
def resize_disk(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
288
288
|
"""
|
|
289
289
|
Boolean controlling whether to increase the disk
|
|
290
290
|
size when resizing a Droplet. It defaults to `true`. When set to `false`,
|
|
@@ -294,16 +294,16 @@ class DropletArgs:
|
|
|
294
294
|
return pulumi.get(self, "resize_disk")
|
|
295
295
|
|
|
296
296
|
@resize_disk.setter
|
|
297
|
-
def resize_disk(self, value: Optional[pulumi.Input[bool]]):
|
|
297
|
+
def resize_disk(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
298
298
|
pulumi.set(self, "resize_disk", value)
|
|
299
299
|
|
|
300
|
-
@property
|
|
300
|
+
@_builtins.property
|
|
301
301
|
@pulumi.getter(name="sshKeys")
|
|
302
|
-
def ssh_keys(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
302
|
+
def ssh_keys(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
|
|
303
303
|
"""
|
|
304
304
|
A list of SSH key IDs or fingerprints to enable in
|
|
305
305
|
the format `[12345, 123456]`. To retrieve this info, use the
|
|
306
|
-
[DigitalOcean API](https://docs.digitalocean.com/reference/api/
|
|
306
|
+
[DigitalOcean API](https://docs.digitalocean.com/reference/api/digitalocean/#tag/SSH-Keys)
|
|
307
307
|
or CLI (`doctl compute ssh-key list`). Once a Droplet is created keys can not
|
|
308
308
|
be added or removed via this provider. Modifying this field will prompt you
|
|
309
309
|
to destroy and recreate the Droplet.
|
|
@@ -311,55 +311,55 @@ class DropletArgs:
|
|
|
311
311
|
return pulumi.get(self, "ssh_keys")
|
|
312
312
|
|
|
313
313
|
@ssh_keys.setter
|
|
314
|
-
def ssh_keys(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
314
|
+
def ssh_keys(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
|
|
315
315
|
pulumi.set(self, "ssh_keys", value)
|
|
316
316
|
|
|
317
|
-
@property
|
|
317
|
+
@_builtins.property
|
|
318
318
|
@pulumi.getter
|
|
319
|
-
def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
319
|
+
def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
|
|
320
320
|
"""
|
|
321
321
|
A list of the tags to be applied to this Droplet.
|
|
322
322
|
"""
|
|
323
323
|
return pulumi.get(self, "tags")
|
|
324
324
|
|
|
325
325
|
@tags.setter
|
|
326
|
-
def tags(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
326
|
+
def tags(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
|
|
327
327
|
pulumi.set(self, "tags", value)
|
|
328
328
|
|
|
329
|
-
@property
|
|
329
|
+
@_builtins.property
|
|
330
330
|
@pulumi.getter(name="userData")
|
|
331
|
-
def user_data(self) -> Optional[pulumi.Input[str]]:
|
|
331
|
+
def user_data(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
332
332
|
"""
|
|
333
333
|
A string of the desired User Data provided [during Droplet creation](https://docs.digitalocean.com/products/droplets/how-to/provide-user-data/). Changing this forces a new resource to be created.
|
|
334
334
|
"""
|
|
335
335
|
return pulumi.get(self, "user_data")
|
|
336
336
|
|
|
337
337
|
@user_data.setter
|
|
338
|
-
def user_data(self, value: Optional[pulumi.Input[str]]):
|
|
338
|
+
def user_data(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
339
339
|
pulumi.set(self, "user_data", value)
|
|
340
340
|
|
|
341
|
-
@property
|
|
341
|
+
@_builtins.property
|
|
342
342
|
@pulumi.getter(name="volumeIds")
|
|
343
|
-
def volume_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
343
|
+
def volume_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
|
|
344
344
|
"""
|
|
345
345
|
A list of the IDs of each block storage volume to be attached to the Droplet.
|
|
346
346
|
"""
|
|
347
347
|
return pulumi.get(self, "volume_ids")
|
|
348
348
|
|
|
349
349
|
@volume_ids.setter
|
|
350
|
-
def volume_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
350
|
+
def volume_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
|
|
351
351
|
pulumi.set(self, "volume_ids", value)
|
|
352
352
|
|
|
353
|
-
@property
|
|
353
|
+
@_builtins.property
|
|
354
354
|
@pulumi.getter(name="vpcUuid")
|
|
355
|
-
def vpc_uuid(self) -> Optional[pulumi.Input[str]]:
|
|
355
|
+
def vpc_uuid(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
356
356
|
"""
|
|
357
357
|
The ID of the VPC where the Droplet will be located.
|
|
358
358
|
"""
|
|
359
359
|
return pulumi.get(self, "vpc_uuid")
|
|
360
360
|
|
|
361
361
|
@vpc_uuid.setter
|
|
362
|
-
def vpc_uuid(self, value: Optional[pulumi.Input[str]]):
|
|
362
|
+
def vpc_uuid(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
363
363
|
pulumi.set(self, "vpc_uuid", value)
|
|
364
364
|
|
|
365
365
|
|
|
@@ -367,86 +367,86 @@ class DropletArgs:
|
|
|
367
367
|
class _DropletState:
|
|
368
368
|
def __init__(__self__, *,
|
|
369
369
|
backup_policy: Optional[pulumi.Input['DropletBackupPolicyArgs']] = None,
|
|
370
|
-
backups: Optional[pulumi.Input[bool]] = None,
|
|
371
|
-
created_at: Optional[pulumi.Input[str]] = None,
|
|
372
|
-
disk: Optional[pulumi.Input[int]] = None,
|
|
373
|
-
droplet_agent: Optional[pulumi.Input[bool]] = None,
|
|
374
|
-
droplet_urn: Optional[pulumi.Input[str]] = None,
|
|
375
|
-
graceful_shutdown: Optional[pulumi.Input[bool]] = None,
|
|
376
|
-
image: Optional[pulumi.Input[str]] = None,
|
|
377
|
-
ipv4_address: Optional[pulumi.Input[str]] = None,
|
|
378
|
-
ipv4_address_private: Optional[pulumi.Input[str]] = None,
|
|
379
|
-
ipv6: Optional[pulumi.Input[bool]] = None,
|
|
380
|
-
ipv6_address: Optional[pulumi.Input[str]] = None,
|
|
381
|
-
locked: Optional[pulumi.Input[bool]] = None,
|
|
382
|
-
memory: Optional[pulumi.Input[int]] = None,
|
|
383
|
-
monitoring: Optional[pulumi.Input[bool]] = None,
|
|
384
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
385
|
-
price_hourly: Optional[pulumi.Input[float]] = None,
|
|
386
|
-
price_monthly: Optional[pulumi.Input[float]] = None,
|
|
387
|
-
private_networking: Optional[pulumi.Input[bool]] = None,
|
|
388
|
-
region: Optional[pulumi.Input[Union[str, 'Region']]] = None,
|
|
389
|
-
resize_disk: Optional[pulumi.Input[bool]] = None,
|
|
390
|
-
size: Optional[pulumi.Input[Union[str, 'DropletSlug']]] = None,
|
|
391
|
-
ssh_keys: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
392
|
-
status: Optional[pulumi.Input[str]] = None,
|
|
393
|
-
tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
394
|
-
user_data: Optional[pulumi.Input[str]] = None,
|
|
395
|
-
vcpus: Optional[pulumi.Input[int]] = None,
|
|
396
|
-
volume_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
397
|
-
vpc_uuid: Optional[pulumi.Input[str]] = None):
|
|
370
|
+
backups: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
371
|
+
created_at: Optional[pulumi.Input[_builtins.str]] = None,
|
|
372
|
+
disk: Optional[pulumi.Input[_builtins.int]] = None,
|
|
373
|
+
droplet_agent: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
374
|
+
droplet_urn: Optional[pulumi.Input[_builtins.str]] = None,
|
|
375
|
+
graceful_shutdown: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
376
|
+
image: Optional[pulumi.Input[_builtins.str]] = None,
|
|
377
|
+
ipv4_address: Optional[pulumi.Input[_builtins.str]] = None,
|
|
378
|
+
ipv4_address_private: Optional[pulumi.Input[_builtins.str]] = None,
|
|
379
|
+
ipv6: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
380
|
+
ipv6_address: Optional[pulumi.Input[_builtins.str]] = None,
|
|
381
|
+
locked: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
382
|
+
memory: Optional[pulumi.Input[_builtins.int]] = None,
|
|
383
|
+
monitoring: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
384
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
385
|
+
price_hourly: Optional[pulumi.Input[_builtins.float]] = None,
|
|
386
|
+
price_monthly: Optional[pulumi.Input[_builtins.float]] = None,
|
|
387
|
+
private_networking: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
388
|
+
region: Optional[pulumi.Input[Union[_builtins.str, 'Region']]] = None,
|
|
389
|
+
resize_disk: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
390
|
+
size: Optional[pulumi.Input[Union[_builtins.str, 'DropletSlug']]] = None,
|
|
391
|
+
ssh_keys: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
392
|
+
status: Optional[pulumi.Input[_builtins.str]] = None,
|
|
393
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
394
|
+
user_data: Optional[pulumi.Input[_builtins.str]] = None,
|
|
395
|
+
vcpus: Optional[pulumi.Input[_builtins.int]] = None,
|
|
396
|
+
volume_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
397
|
+
vpc_uuid: Optional[pulumi.Input[_builtins.str]] = None):
|
|
398
398
|
"""
|
|
399
399
|
Input properties used for looking up and filtering Droplet resources.
|
|
400
400
|
:param pulumi.Input['DropletBackupPolicyArgs'] backup_policy: An object specifying the backup policy for the Droplet. If omitted and `backups` is `true`, the backup plan will default to daily.
|
|
401
|
-
:param pulumi.Input[bool] backups: Boolean controlling if backups are made. Defaults to
|
|
401
|
+
:param pulumi.Input[_builtins.bool] backups: Boolean controlling if backups are made. Defaults to
|
|
402
402
|
false.
|
|
403
|
-
:param pulumi.Input[int] disk: The size of the instance's disk in GB
|
|
404
|
-
:param pulumi.Input[bool] droplet_agent: A boolean indicating whether to install the
|
|
403
|
+
:param pulumi.Input[_builtins.int] disk: The size of the instance's disk in GB
|
|
404
|
+
:param pulumi.Input[_builtins.bool] droplet_agent: A boolean indicating whether to install the
|
|
405
405
|
DigitalOcean agent used for providing access to the Droplet web console in
|
|
406
406
|
the control panel. By default, the agent is installed on new Droplets but
|
|
407
407
|
installation errors (i.e. OS not supported) are ignored. To prevent it from
|
|
408
408
|
being installed, set to `false`. To make installation errors fatal, explicitly
|
|
409
409
|
set it to `true`.
|
|
410
|
-
:param pulumi.Input[str] droplet_urn: The uniform resource name of the Droplet
|
|
411
|
-
:param pulumi.Input[bool] graceful_shutdown: A boolean indicating whether the droplet
|
|
410
|
+
:param pulumi.Input[_builtins.str] droplet_urn: The uniform resource name of the Droplet
|
|
411
|
+
:param pulumi.Input[_builtins.bool] graceful_shutdown: A boolean indicating whether the droplet
|
|
412
412
|
should be gracefully shut down before it is deleted.
|
|
413
413
|
|
|
414
414
|
> **NOTE:** If you use `volume_ids` on a Droplet, this provider will assume management over the full set volumes for the instance, and treat additional volumes as a drift. For this reason, `volume_ids` must not be mixed with external `VolumeAttachment` resources for a given instance.
|
|
415
|
-
:param pulumi.Input[str] image: The Droplet image ID or slug. This could be either image ID or droplet snapshot ID.
|
|
416
|
-
:param pulumi.Input[str] ipv4_address: The IPv4 address
|
|
417
|
-
:param pulumi.Input[str] ipv4_address_private: The private networking IPv4 address
|
|
418
|
-
:param pulumi.Input[bool] ipv6: Boolean controlling if IPv6 is enabled. Defaults to false.
|
|
415
|
+
:param pulumi.Input[_builtins.str] image: The Droplet image ID or slug. This could be either image ID or droplet snapshot ID. You can find image IDs and slugs using the [DigitalOcean API](https://docs.digitalocean.com/reference/api/digitalocean/#tag/Images).
|
|
416
|
+
:param pulumi.Input[_builtins.str] ipv4_address: The IPv4 address
|
|
417
|
+
:param pulumi.Input[_builtins.str] ipv4_address_private: The private networking IPv4 address
|
|
418
|
+
:param pulumi.Input[_builtins.bool] ipv6: Boolean controlling if IPv6 is enabled. Defaults to false.
|
|
419
419
|
Once enabled for a Droplet, IPv6 can not be disabled. When enabling IPv6 on
|
|
420
420
|
an existing Droplet, [additional OS-level configuration](https://docs.digitalocean.com/products/networking/ipv6/how-to/enable/#on-existing-droplets)
|
|
421
421
|
is required.
|
|
422
|
-
:param pulumi.Input[str] ipv6_address: The IPv6 address
|
|
423
|
-
:param pulumi.Input[bool] locked: Is the Droplet locked
|
|
424
|
-
:param pulumi.Input[bool] monitoring: Boolean controlling whether monitoring agent is installed.
|
|
422
|
+
:param pulumi.Input[_builtins.str] ipv6_address: The IPv6 address
|
|
423
|
+
:param pulumi.Input[_builtins.bool] locked: Is the Droplet locked
|
|
424
|
+
:param pulumi.Input[_builtins.bool] monitoring: Boolean controlling whether monitoring agent is installed.
|
|
425
425
|
Defaults to false. If set to `true`, you can configure monitor alert policies
|
|
426
426
|
[monitor alert resource](https://www.terraform.io/providers/digitalocean/digitalocean/latest/docs/resources/monitor_alert)
|
|
427
|
-
:param pulumi.Input[str] name: The Droplet name.
|
|
428
|
-
:param pulumi.Input[float] price_hourly: Droplet hourly price
|
|
429
|
-
:param pulumi.Input[float] price_monthly: Droplet monthly price
|
|
430
|
-
:param pulumi.Input[bool] private_networking: **Deprecated** Boolean controlling if private networking
|
|
427
|
+
:param pulumi.Input[_builtins.str] name: The Droplet name.
|
|
428
|
+
:param pulumi.Input[_builtins.float] price_hourly: Droplet hourly price
|
|
429
|
+
:param pulumi.Input[_builtins.float] price_monthly: Droplet monthly price
|
|
430
|
+
:param pulumi.Input[_builtins.bool] private_networking: **Deprecated** Boolean controlling if private networking
|
|
431
431
|
is enabled. This parameter has been deprecated. Use `vpc_uuid` instead to specify a VPC network for the Droplet. If no `vpc_uuid` is provided, the Droplet will be placed in your account's default VPC for the region.
|
|
432
|
-
:param pulumi.Input[Union[str, 'Region']] region: The region where the Droplet will be created.
|
|
433
|
-
:param pulumi.Input[bool] resize_disk: Boolean controlling whether to increase the disk
|
|
432
|
+
:param pulumi.Input[Union[_builtins.str, 'Region']] region: The region where the Droplet will be created.
|
|
433
|
+
:param pulumi.Input[_builtins.bool] resize_disk: Boolean controlling whether to increase the disk
|
|
434
434
|
size when resizing a Droplet. It defaults to `true`. When set to `false`,
|
|
435
435
|
only the Droplet's RAM and CPU will be resized. **Increasing a Droplet's disk
|
|
436
436
|
size is a permanent change**. Increasing only RAM and CPU is reversible.
|
|
437
|
-
:param pulumi.Input[Union[str, 'DropletSlug']] size: The unique slug that identifies the type of Droplet. You
|
|
438
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] ssh_keys: A list of SSH key IDs or fingerprints to enable in
|
|
437
|
+
:param pulumi.Input[Union[_builtins.str, 'DropletSlug']] size: The unique slug that identifies the type of Droplet. You may list the available slugs using the [DigitalOcean API](https://docs.digitalocean.com/reference/api/digitalocean/#tag/Sizes).
|
|
438
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] ssh_keys: A list of SSH key IDs or fingerprints to enable in
|
|
439
439
|
the format `[12345, 123456]`. To retrieve this info, use the
|
|
440
|
-
[DigitalOcean API](https://docs.digitalocean.com/reference/api/
|
|
440
|
+
[DigitalOcean API](https://docs.digitalocean.com/reference/api/digitalocean/#tag/SSH-Keys)
|
|
441
441
|
or CLI (`doctl compute ssh-key list`). Once a Droplet is created keys can not
|
|
442
442
|
be added or removed via this provider. Modifying this field will prompt you
|
|
443
443
|
to destroy and recreate the Droplet.
|
|
444
|
-
:param pulumi.Input[str] status: The status of the Droplet
|
|
445
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] tags: A list of the tags to be applied to this Droplet.
|
|
446
|
-
:param pulumi.Input[str] user_data: A string of the desired User Data provided [during Droplet creation](https://docs.digitalocean.com/products/droplets/how-to/provide-user-data/). Changing this forces a new resource to be created.
|
|
447
|
-
:param pulumi.Input[int] vcpus: The number of the instance's virtual CPUs
|
|
448
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] volume_ids: A list of the IDs of each block storage volume to be attached to the Droplet.
|
|
449
|
-
:param pulumi.Input[str] vpc_uuid: The ID of the VPC where the Droplet will be located.
|
|
444
|
+
:param pulumi.Input[_builtins.str] status: The status of the Droplet
|
|
445
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] tags: A list of the tags to be applied to this Droplet.
|
|
446
|
+
:param pulumi.Input[_builtins.str] user_data: A string of the desired User Data provided [during Droplet creation](https://docs.digitalocean.com/products/droplets/how-to/provide-user-data/). Changing this forces a new resource to be created.
|
|
447
|
+
:param pulumi.Input[_builtins.int] vcpus: The number of the instance's virtual CPUs
|
|
448
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] volume_ids: A list of the IDs of each block storage volume to be attached to the Droplet.
|
|
449
|
+
:param pulumi.Input[_builtins.str] vpc_uuid: The ID of the VPC where the Droplet will be located.
|
|
450
450
|
"""
|
|
451
451
|
if backup_policy is not None:
|
|
452
452
|
pulumi.set(__self__, "backup_policy", backup_policy)
|
|
@@ -510,7 +510,7 @@ class _DropletState:
|
|
|
510
510
|
if vpc_uuid is not None:
|
|
511
511
|
pulumi.set(__self__, "vpc_uuid", vpc_uuid)
|
|
512
512
|
|
|
513
|
-
@property
|
|
513
|
+
@_builtins.property
|
|
514
514
|
@pulumi.getter(name="backupPolicy")
|
|
515
515
|
def backup_policy(self) -> Optional[pulumi.Input['DropletBackupPolicyArgs']]:
|
|
516
516
|
"""
|
|
@@ -522,9 +522,9 @@ class _DropletState:
|
|
|
522
522
|
def backup_policy(self, value: Optional[pulumi.Input['DropletBackupPolicyArgs']]):
|
|
523
523
|
pulumi.set(self, "backup_policy", value)
|
|
524
524
|
|
|
525
|
-
@property
|
|
525
|
+
@_builtins.property
|
|
526
526
|
@pulumi.getter
|
|
527
|
-
def backups(self) -> Optional[pulumi.Input[bool]]:
|
|
527
|
+
def backups(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
528
528
|
"""
|
|
529
529
|
Boolean controlling if backups are made. Defaults to
|
|
530
530
|
false.
|
|
@@ -532,33 +532,33 @@ class _DropletState:
|
|
|
532
532
|
return pulumi.get(self, "backups")
|
|
533
533
|
|
|
534
534
|
@backups.setter
|
|
535
|
-
def backups(self, value: Optional[pulumi.Input[bool]]):
|
|
535
|
+
def backups(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
536
536
|
pulumi.set(self, "backups", value)
|
|
537
537
|
|
|
538
|
-
@property
|
|
538
|
+
@_builtins.property
|
|
539
539
|
@pulumi.getter(name="createdAt")
|
|
540
|
-
def created_at(self) -> Optional[pulumi.Input[str]]:
|
|
540
|
+
def created_at(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
541
541
|
return pulumi.get(self, "created_at")
|
|
542
542
|
|
|
543
543
|
@created_at.setter
|
|
544
|
-
def created_at(self, value: Optional[pulumi.Input[str]]):
|
|
544
|
+
def created_at(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
545
545
|
pulumi.set(self, "created_at", value)
|
|
546
546
|
|
|
547
|
-
@property
|
|
547
|
+
@_builtins.property
|
|
548
548
|
@pulumi.getter
|
|
549
|
-
def disk(self) -> Optional[pulumi.Input[int]]:
|
|
549
|
+
def disk(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
550
550
|
"""
|
|
551
551
|
The size of the instance's disk in GB
|
|
552
552
|
"""
|
|
553
553
|
return pulumi.get(self, "disk")
|
|
554
554
|
|
|
555
555
|
@disk.setter
|
|
556
|
-
def disk(self, value: Optional[pulumi.Input[int]]):
|
|
556
|
+
def disk(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
557
557
|
pulumi.set(self, "disk", value)
|
|
558
558
|
|
|
559
|
-
@property
|
|
559
|
+
@_builtins.property
|
|
560
560
|
@pulumi.getter(name="dropletAgent")
|
|
561
|
-
def droplet_agent(self) -> Optional[pulumi.Input[bool]]:
|
|
561
|
+
def droplet_agent(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
562
562
|
"""
|
|
563
563
|
A boolean indicating whether to install the
|
|
564
564
|
DigitalOcean agent used for providing access to the Droplet web console in
|
|
@@ -570,24 +570,24 @@ class _DropletState:
|
|
|
570
570
|
return pulumi.get(self, "droplet_agent")
|
|
571
571
|
|
|
572
572
|
@droplet_agent.setter
|
|
573
|
-
def droplet_agent(self, value: Optional[pulumi.Input[bool]]):
|
|
573
|
+
def droplet_agent(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
574
574
|
pulumi.set(self, "droplet_agent", value)
|
|
575
575
|
|
|
576
|
-
@property
|
|
576
|
+
@_builtins.property
|
|
577
577
|
@pulumi.getter(name="dropletUrn")
|
|
578
|
-
def droplet_urn(self) -> Optional[pulumi.Input[str]]:
|
|
578
|
+
def droplet_urn(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
579
579
|
"""
|
|
580
580
|
The uniform resource name of the Droplet
|
|
581
581
|
"""
|
|
582
582
|
return pulumi.get(self, "droplet_urn")
|
|
583
583
|
|
|
584
584
|
@droplet_urn.setter
|
|
585
|
-
def droplet_urn(self, value: Optional[pulumi.Input[str]]):
|
|
585
|
+
def droplet_urn(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
586
586
|
pulumi.set(self, "droplet_urn", value)
|
|
587
587
|
|
|
588
|
-
@property
|
|
588
|
+
@_builtins.property
|
|
589
589
|
@pulumi.getter(name="gracefulShutdown")
|
|
590
|
-
def graceful_shutdown(self) -> Optional[pulumi.Input[bool]]:
|
|
590
|
+
def graceful_shutdown(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
591
591
|
"""
|
|
592
592
|
A boolean indicating whether the droplet
|
|
593
593
|
should be gracefully shut down before it is deleted.
|
|
@@ -597,48 +597,48 @@ class _DropletState:
|
|
|
597
597
|
return pulumi.get(self, "graceful_shutdown")
|
|
598
598
|
|
|
599
599
|
@graceful_shutdown.setter
|
|
600
|
-
def graceful_shutdown(self, value: Optional[pulumi.Input[bool]]):
|
|
600
|
+
def graceful_shutdown(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
601
601
|
pulumi.set(self, "graceful_shutdown", value)
|
|
602
602
|
|
|
603
|
-
@property
|
|
603
|
+
@_builtins.property
|
|
604
604
|
@pulumi.getter
|
|
605
|
-
def image(self) -> Optional[pulumi.Input[str]]:
|
|
605
|
+
def image(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
606
606
|
"""
|
|
607
|
-
The Droplet image ID or slug. This could be either image ID or droplet snapshot ID.
|
|
607
|
+
The Droplet image ID or slug. This could be either image ID or droplet snapshot ID. You can find image IDs and slugs using the [DigitalOcean API](https://docs.digitalocean.com/reference/api/digitalocean/#tag/Images).
|
|
608
608
|
"""
|
|
609
609
|
return pulumi.get(self, "image")
|
|
610
610
|
|
|
611
611
|
@image.setter
|
|
612
|
-
def image(self, value: Optional[pulumi.Input[str]]):
|
|
612
|
+
def image(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
613
613
|
pulumi.set(self, "image", value)
|
|
614
614
|
|
|
615
|
-
@property
|
|
615
|
+
@_builtins.property
|
|
616
616
|
@pulumi.getter(name="ipv4Address")
|
|
617
|
-
def ipv4_address(self) -> Optional[pulumi.Input[str]]:
|
|
617
|
+
def ipv4_address(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
618
618
|
"""
|
|
619
619
|
The IPv4 address
|
|
620
620
|
"""
|
|
621
621
|
return pulumi.get(self, "ipv4_address")
|
|
622
622
|
|
|
623
623
|
@ipv4_address.setter
|
|
624
|
-
def ipv4_address(self, value: Optional[pulumi.Input[str]]):
|
|
624
|
+
def ipv4_address(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
625
625
|
pulumi.set(self, "ipv4_address", value)
|
|
626
626
|
|
|
627
|
-
@property
|
|
627
|
+
@_builtins.property
|
|
628
628
|
@pulumi.getter(name="ipv4AddressPrivate")
|
|
629
|
-
def ipv4_address_private(self) -> Optional[pulumi.Input[str]]:
|
|
629
|
+
def ipv4_address_private(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
630
630
|
"""
|
|
631
631
|
The private networking IPv4 address
|
|
632
632
|
"""
|
|
633
633
|
return pulumi.get(self, "ipv4_address_private")
|
|
634
634
|
|
|
635
635
|
@ipv4_address_private.setter
|
|
636
|
-
def ipv4_address_private(self, value: Optional[pulumi.Input[str]]):
|
|
636
|
+
def ipv4_address_private(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
637
637
|
pulumi.set(self, "ipv4_address_private", value)
|
|
638
638
|
|
|
639
|
-
@property
|
|
639
|
+
@_builtins.property
|
|
640
640
|
@pulumi.getter
|
|
641
|
-
def ipv6(self) -> Optional[pulumi.Input[bool]]:
|
|
641
|
+
def ipv6(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
642
642
|
"""
|
|
643
643
|
Boolean controlling if IPv6 is enabled. Defaults to false.
|
|
644
644
|
Once enabled for a Droplet, IPv6 can not be disabled. When enabling IPv6 on
|
|
@@ -648,45 +648,45 @@ class _DropletState:
|
|
|
648
648
|
return pulumi.get(self, "ipv6")
|
|
649
649
|
|
|
650
650
|
@ipv6.setter
|
|
651
|
-
def ipv6(self, value: Optional[pulumi.Input[bool]]):
|
|
651
|
+
def ipv6(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
652
652
|
pulumi.set(self, "ipv6", value)
|
|
653
653
|
|
|
654
|
-
@property
|
|
654
|
+
@_builtins.property
|
|
655
655
|
@pulumi.getter(name="ipv6Address")
|
|
656
|
-
def ipv6_address(self) -> Optional[pulumi.Input[str]]:
|
|
656
|
+
def ipv6_address(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
657
657
|
"""
|
|
658
658
|
The IPv6 address
|
|
659
659
|
"""
|
|
660
660
|
return pulumi.get(self, "ipv6_address")
|
|
661
661
|
|
|
662
662
|
@ipv6_address.setter
|
|
663
|
-
def ipv6_address(self, value: Optional[pulumi.Input[str]]):
|
|
663
|
+
def ipv6_address(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
664
664
|
pulumi.set(self, "ipv6_address", value)
|
|
665
665
|
|
|
666
|
-
@property
|
|
666
|
+
@_builtins.property
|
|
667
667
|
@pulumi.getter
|
|
668
|
-
def locked(self) -> Optional[pulumi.Input[bool]]:
|
|
668
|
+
def locked(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
669
669
|
"""
|
|
670
670
|
Is the Droplet locked
|
|
671
671
|
"""
|
|
672
672
|
return pulumi.get(self, "locked")
|
|
673
673
|
|
|
674
674
|
@locked.setter
|
|
675
|
-
def locked(self, value: Optional[pulumi.Input[bool]]):
|
|
675
|
+
def locked(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
676
676
|
pulumi.set(self, "locked", value)
|
|
677
677
|
|
|
678
|
-
@property
|
|
678
|
+
@_builtins.property
|
|
679
679
|
@pulumi.getter
|
|
680
|
-
def memory(self) -> Optional[pulumi.Input[int]]:
|
|
680
|
+
def memory(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
681
681
|
return pulumi.get(self, "memory")
|
|
682
682
|
|
|
683
683
|
@memory.setter
|
|
684
|
-
def memory(self, value: Optional[pulumi.Input[int]]):
|
|
684
|
+
def memory(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
685
685
|
pulumi.set(self, "memory", value)
|
|
686
686
|
|
|
687
|
-
@property
|
|
687
|
+
@_builtins.property
|
|
688
688
|
@pulumi.getter
|
|
689
|
-
def monitoring(self) -> Optional[pulumi.Input[bool]]:
|
|
689
|
+
def monitoring(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
690
690
|
"""
|
|
691
691
|
Boolean controlling whether monitoring agent is installed.
|
|
692
692
|
Defaults to false. If set to `true`, you can configure monitor alert policies
|
|
@@ -695,49 +695,49 @@ class _DropletState:
|
|
|
695
695
|
return pulumi.get(self, "monitoring")
|
|
696
696
|
|
|
697
697
|
@monitoring.setter
|
|
698
|
-
def monitoring(self, value: Optional[pulumi.Input[bool]]):
|
|
698
|
+
def monitoring(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
699
699
|
pulumi.set(self, "monitoring", value)
|
|
700
700
|
|
|
701
|
-
@property
|
|
701
|
+
@_builtins.property
|
|
702
702
|
@pulumi.getter
|
|
703
|
-
def name(self) -> Optional[pulumi.Input[str]]:
|
|
703
|
+
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
704
704
|
"""
|
|
705
705
|
The Droplet name.
|
|
706
706
|
"""
|
|
707
707
|
return pulumi.get(self, "name")
|
|
708
708
|
|
|
709
709
|
@name.setter
|
|
710
|
-
def name(self, value: Optional[pulumi.Input[str]]):
|
|
710
|
+
def name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
711
711
|
pulumi.set(self, "name", value)
|
|
712
712
|
|
|
713
|
-
@property
|
|
713
|
+
@_builtins.property
|
|
714
714
|
@pulumi.getter(name="priceHourly")
|
|
715
|
-
def price_hourly(self) -> Optional[pulumi.Input[float]]:
|
|
715
|
+
def price_hourly(self) -> Optional[pulumi.Input[_builtins.float]]:
|
|
716
716
|
"""
|
|
717
717
|
Droplet hourly price
|
|
718
718
|
"""
|
|
719
719
|
return pulumi.get(self, "price_hourly")
|
|
720
720
|
|
|
721
721
|
@price_hourly.setter
|
|
722
|
-
def price_hourly(self, value: Optional[pulumi.Input[float]]):
|
|
722
|
+
def price_hourly(self, value: Optional[pulumi.Input[_builtins.float]]):
|
|
723
723
|
pulumi.set(self, "price_hourly", value)
|
|
724
724
|
|
|
725
|
-
@property
|
|
725
|
+
@_builtins.property
|
|
726
726
|
@pulumi.getter(name="priceMonthly")
|
|
727
|
-
def price_monthly(self) -> Optional[pulumi.Input[float]]:
|
|
727
|
+
def price_monthly(self) -> Optional[pulumi.Input[_builtins.float]]:
|
|
728
728
|
"""
|
|
729
729
|
Droplet monthly price
|
|
730
730
|
"""
|
|
731
731
|
return pulumi.get(self, "price_monthly")
|
|
732
732
|
|
|
733
733
|
@price_monthly.setter
|
|
734
|
-
def price_monthly(self, value: Optional[pulumi.Input[float]]):
|
|
734
|
+
def price_monthly(self, value: Optional[pulumi.Input[_builtins.float]]):
|
|
735
735
|
pulumi.set(self, "price_monthly", value)
|
|
736
736
|
|
|
737
|
-
@property
|
|
737
|
+
@_builtins.property
|
|
738
738
|
@pulumi.getter(name="privateNetworking")
|
|
739
739
|
@_utilities.deprecated("""This parameter has been deprecated. Use `vpc_uuid` instead to specify a VPC network for the Droplet. If no `vpc_uuid` is provided, the Droplet will be placed in your account's default VPC for the region.""")
|
|
740
|
-
def private_networking(self) -> Optional[pulumi.Input[bool]]:
|
|
740
|
+
def private_networking(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
741
741
|
"""
|
|
742
742
|
**Deprecated** Boolean controlling if private networking
|
|
743
743
|
is enabled. This parameter has been deprecated. Use `vpc_uuid` instead to specify a VPC network for the Droplet. If no `vpc_uuid` is provided, the Droplet will be placed in your account's default VPC for the region.
|
|
@@ -745,24 +745,24 @@ class _DropletState:
|
|
|
745
745
|
return pulumi.get(self, "private_networking")
|
|
746
746
|
|
|
747
747
|
@private_networking.setter
|
|
748
|
-
def private_networking(self, value: Optional[pulumi.Input[bool]]):
|
|
748
|
+
def private_networking(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
749
749
|
pulumi.set(self, "private_networking", value)
|
|
750
750
|
|
|
751
|
-
@property
|
|
751
|
+
@_builtins.property
|
|
752
752
|
@pulumi.getter
|
|
753
|
-
def region(self) -> Optional[pulumi.Input[Union[str, 'Region']]]:
|
|
753
|
+
def region(self) -> Optional[pulumi.Input[Union[_builtins.str, 'Region']]]:
|
|
754
754
|
"""
|
|
755
755
|
The region where the Droplet will be created.
|
|
756
756
|
"""
|
|
757
757
|
return pulumi.get(self, "region")
|
|
758
758
|
|
|
759
759
|
@region.setter
|
|
760
|
-
def region(self, value: Optional[pulumi.Input[Union[str, 'Region']]]):
|
|
760
|
+
def region(self, value: Optional[pulumi.Input[Union[_builtins.str, 'Region']]]):
|
|
761
761
|
pulumi.set(self, "region", value)
|
|
762
762
|
|
|
763
|
-
@property
|
|
763
|
+
@_builtins.property
|
|
764
764
|
@pulumi.getter(name="resizeDisk")
|
|
765
|
-
def resize_disk(self) -> Optional[pulumi.Input[bool]]:
|
|
765
|
+
def resize_disk(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
766
766
|
"""
|
|
767
767
|
Boolean controlling whether to increase the disk
|
|
768
768
|
size when resizing a Droplet. It defaults to `true`. When set to `false`,
|
|
@@ -772,28 +772,28 @@ class _DropletState:
|
|
|
772
772
|
return pulumi.get(self, "resize_disk")
|
|
773
773
|
|
|
774
774
|
@resize_disk.setter
|
|
775
|
-
def resize_disk(self, value: Optional[pulumi.Input[bool]]):
|
|
775
|
+
def resize_disk(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
776
776
|
pulumi.set(self, "resize_disk", value)
|
|
777
777
|
|
|
778
|
-
@property
|
|
778
|
+
@_builtins.property
|
|
779
779
|
@pulumi.getter
|
|
780
|
-
def size(self) -> Optional[pulumi.Input[Union[str, 'DropletSlug']]]:
|
|
780
|
+
def size(self) -> Optional[pulumi.Input[Union[_builtins.str, 'DropletSlug']]]:
|
|
781
781
|
"""
|
|
782
|
-
The unique slug that identifies the type of Droplet. You
|
|
782
|
+
The unique slug that identifies the type of Droplet. You may list the available slugs using the [DigitalOcean API](https://docs.digitalocean.com/reference/api/digitalocean/#tag/Sizes).
|
|
783
783
|
"""
|
|
784
784
|
return pulumi.get(self, "size")
|
|
785
785
|
|
|
786
786
|
@size.setter
|
|
787
|
-
def size(self, value: Optional[pulumi.Input[Union[str, 'DropletSlug']]]):
|
|
787
|
+
def size(self, value: Optional[pulumi.Input[Union[_builtins.str, 'DropletSlug']]]):
|
|
788
788
|
pulumi.set(self, "size", value)
|
|
789
789
|
|
|
790
|
-
@property
|
|
790
|
+
@_builtins.property
|
|
791
791
|
@pulumi.getter(name="sshKeys")
|
|
792
|
-
def ssh_keys(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
792
|
+
def ssh_keys(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
|
|
793
793
|
"""
|
|
794
794
|
A list of SSH key IDs or fingerprints to enable in
|
|
795
795
|
the format `[12345, 123456]`. To retrieve this info, use the
|
|
796
|
-
[DigitalOcean API](https://docs.digitalocean.com/reference/api/
|
|
796
|
+
[DigitalOcean API](https://docs.digitalocean.com/reference/api/digitalocean/#tag/SSH-Keys)
|
|
797
797
|
or CLI (`doctl compute ssh-key list`). Once a Droplet is created keys can not
|
|
798
798
|
be added or removed via this provider. Modifying this field will prompt you
|
|
799
799
|
to destroy and recreate the Droplet.
|
|
@@ -801,105 +801,106 @@ class _DropletState:
|
|
|
801
801
|
return pulumi.get(self, "ssh_keys")
|
|
802
802
|
|
|
803
803
|
@ssh_keys.setter
|
|
804
|
-
def ssh_keys(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
804
|
+
def ssh_keys(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
|
|
805
805
|
pulumi.set(self, "ssh_keys", value)
|
|
806
806
|
|
|
807
|
-
@property
|
|
807
|
+
@_builtins.property
|
|
808
808
|
@pulumi.getter
|
|
809
|
-
def status(self) -> Optional[pulumi.Input[str]]:
|
|
809
|
+
def status(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
810
810
|
"""
|
|
811
811
|
The status of the Droplet
|
|
812
812
|
"""
|
|
813
813
|
return pulumi.get(self, "status")
|
|
814
814
|
|
|
815
815
|
@status.setter
|
|
816
|
-
def status(self, value: Optional[pulumi.Input[str]]):
|
|
816
|
+
def status(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
817
817
|
pulumi.set(self, "status", value)
|
|
818
818
|
|
|
819
|
-
@property
|
|
819
|
+
@_builtins.property
|
|
820
820
|
@pulumi.getter
|
|
821
|
-
def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
821
|
+
def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
|
|
822
822
|
"""
|
|
823
823
|
A list of the tags to be applied to this Droplet.
|
|
824
824
|
"""
|
|
825
825
|
return pulumi.get(self, "tags")
|
|
826
826
|
|
|
827
827
|
@tags.setter
|
|
828
|
-
def tags(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
828
|
+
def tags(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
|
|
829
829
|
pulumi.set(self, "tags", value)
|
|
830
830
|
|
|
831
|
-
@property
|
|
831
|
+
@_builtins.property
|
|
832
832
|
@pulumi.getter(name="userData")
|
|
833
|
-
def user_data(self) -> Optional[pulumi.Input[str]]:
|
|
833
|
+
def user_data(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
834
834
|
"""
|
|
835
835
|
A string of the desired User Data provided [during Droplet creation](https://docs.digitalocean.com/products/droplets/how-to/provide-user-data/). Changing this forces a new resource to be created.
|
|
836
836
|
"""
|
|
837
837
|
return pulumi.get(self, "user_data")
|
|
838
838
|
|
|
839
839
|
@user_data.setter
|
|
840
|
-
def user_data(self, value: Optional[pulumi.Input[str]]):
|
|
840
|
+
def user_data(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
841
841
|
pulumi.set(self, "user_data", value)
|
|
842
842
|
|
|
843
|
-
@property
|
|
843
|
+
@_builtins.property
|
|
844
844
|
@pulumi.getter
|
|
845
|
-
def vcpus(self) -> Optional[pulumi.Input[int]]:
|
|
845
|
+
def vcpus(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
846
846
|
"""
|
|
847
847
|
The number of the instance's virtual CPUs
|
|
848
848
|
"""
|
|
849
849
|
return pulumi.get(self, "vcpus")
|
|
850
850
|
|
|
851
851
|
@vcpus.setter
|
|
852
|
-
def vcpus(self, value: Optional[pulumi.Input[int]]):
|
|
852
|
+
def vcpus(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
853
853
|
pulumi.set(self, "vcpus", value)
|
|
854
854
|
|
|
855
|
-
@property
|
|
855
|
+
@_builtins.property
|
|
856
856
|
@pulumi.getter(name="volumeIds")
|
|
857
|
-
def volume_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
857
|
+
def volume_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
|
|
858
858
|
"""
|
|
859
859
|
A list of the IDs of each block storage volume to be attached to the Droplet.
|
|
860
860
|
"""
|
|
861
861
|
return pulumi.get(self, "volume_ids")
|
|
862
862
|
|
|
863
863
|
@volume_ids.setter
|
|
864
|
-
def volume_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
864
|
+
def volume_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
|
|
865
865
|
pulumi.set(self, "volume_ids", value)
|
|
866
866
|
|
|
867
|
-
@property
|
|
867
|
+
@_builtins.property
|
|
868
868
|
@pulumi.getter(name="vpcUuid")
|
|
869
|
-
def vpc_uuid(self) -> Optional[pulumi.Input[str]]:
|
|
869
|
+
def vpc_uuid(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
870
870
|
"""
|
|
871
871
|
The ID of the VPC where the Droplet will be located.
|
|
872
872
|
"""
|
|
873
873
|
return pulumi.get(self, "vpc_uuid")
|
|
874
874
|
|
|
875
875
|
@vpc_uuid.setter
|
|
876
|
-
def vpc_uuid(self, value: Optional[pulumi.Input[str]]):
|
|
876
|
+
def vpc_uuid(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
877
877
|
pulumi.set(self, "vpc_uuid", value)
|
|
878
878
|
|
|
879
879
|
|
|
880
|
+
@pulumi.type_token("digitalocean:index/droplet:Droplet")
|
|
880
881
|
class Droplet(pulumi.CustomResource):
|
|
881
882
|
@overload
|
|
882
883
|
def __init__(__self__,
|
|
883
884
|
resource_name: str,
|
|
884
885
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
885
886
|
backup_policy: Optional[pulumi.Input[Union['DropletBackupPolicyArgs', 'DropletBackupPolicyArgsDict']]] = None,
|
|
886
|
-
backups: Optional[pulumi.Input[bool]] = None,
|
|
887
|
-
droplet_agent: Optional[pulumi.Input[bool]] = None,
|
|
888
|
-
graceful_shutdown: Optional[pulumi.Input[bool]] = None,
|
|
889
|
-
image: Optional[pulumi.Input[str]] = None,
|
|
890
|
-
ipv6: Optional[pulumi.Input[bool]] = None,
|
|
891
|
-
ipv6_address: Optional[pulumi.Input[str]] = None,
|
|
892
|
-
monitoring: Optional[pulumi.Input[bool]] = None,
|
|
893
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
894
|
-
private_networking: Optional[pulumi.Input[bool]] = None,
|
|
895
|
-
region: Optional[pulumi.Input[Union[str, 'Region']]] = None,
|
|
896
|
-
resize_disk: Optional[pulumi.Input[bool]] = None,
|
|
897
|
-
size: Optional[pulumi.Input[Union[str, 'DropletSlug']]] = None,
|
|
898
|
-
ssh_keys: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
899
|
-
tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
900
|
-
user_data: Optional[pulumi.Input[str]] = None,
|
|
901
|
-
volume_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
902
|
-
vpc_uuid: Optional[pulumi.Input[str]] = None,
|
|
887
|
+
backups: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
888
|
+
droplet_agent: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
889
|
+
graceful_shutdown: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
890
|
+
image: Optional[pulumi.Input[_builtins.str]] = None,
|
|
891
|
+
ipv6: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
892
|
+
ipv6_address: Optional[pulumi.Input[_builtins.str]] = None,
|
|
893
|
+
monitoring: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
894
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
895
|
+
private_networking: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
896
|
+
region: Optional[pulumi.Input[Union[_builtins.str, 'Region']]] = None,
|
|
897
|
+
resize_disk: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
898
|
+
size: Optional[pulumi.Input[Union[_builtins.str, 'DropletSlug']]] = None,
|
|
899
|
+
ssh_keys: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
900
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
901
|
+
user_data: Optional[pulumi.Input[_builtins.str]] = None,
|
|
902
|
+
volume_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
903
|
+
vpc_uuid: Optional[pulumi.Input[_builtins.str]] = None,
|
|
903
904
|
__props__=None):
|
|
904
905
|
"""
|
|
905
906
|
Provides a DigitalOcean Droplet resource. This can be used to create,
|
|
@@ -936,46 +937,46 @@ class Droplet(pulumi.CustomResource):
|
|
|
936
937
|
:param str resource_name: The name of the resource.
|
|
937
938
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
938
939
|
:param pulumi.Input[Union['DropletBackupPolicyArgs', 'DropletBackupPolicyArgsDict']] backup_policy: An object specifying the backup policy for the Droplet. If omitted and `backups` is `true`, the backup plan will default to daily.
|
|
939
|
-
:param pulumi.Input[bool] backups: Boolean controlling if backups are made. Defaults to
|
|
940
|
+
:param pulumi.Input[_builtins.bool] backups: Boolean controlling if backups are made. Defaults to
|
|
940
941
|
false.
|
|
941
|
-
:param pulumi.Input[bool] droplet_agent: A boolean indicating whether to install the
|
|
942
|
+
:param pulumi.Input[_builtins.bool] droplet_agent: A boolean indicating whether to install the
|
|
942
943
|
DigitalOcean agent used for providing access to the Droplet web console in
|
|
943
944
|
the control panel. By default, the agent is installed on new Droplets but
|
|
944
945
|
installation errors (i.e. OS not supported) are ignored. To prevent it from
|
|
945
946
|
being installed, set to `false`. To make installation errors fatal, explicitly
|
|
946
947
|
set it to `true`.
|
|
947
|
-
:param pulumi.Input[bool] graceful_shutdown: A boolean indicating whether the droplet
|
|
948
|
+
:param pulumi.Input[_builtins.bool] graceful_shutdown: A boolean indicating whether the droplet
|
|
948
949
|
should be gracefully shut down before it is deleted.
|
|
949
950
|
|
|
950
951
|
> **NOTE:** If you use `volume_ids` on a Droplet, this provider will assume management over the full set volumes for the instance, and treat additional volumes as a drift. For this reason, `volume_ids` must not be mixed with external `VolumeAttachment` resources for a given instance.
|
|
951
|
-
:param pulumi.Input[str] image: The Droplet image ID or slug. This could be either image ID or droplet snapshot ID.
|
|
952
|
-
:param pulumi.Input[bool] ipv6: Boolean controlling if IPv6 is enabled. Defaults to false.
|
|
952
|
+
:param pulumi.Input[_builtins.str] image: The Droplet image ID or slug. This could be either image ID or droplet snapshot ID. You can find image IDs and slugs using the [DigitalOcean API](https://docs.digitalocean.com/reference/api/digitalocean/#tag/Images).
|
|
953
|
+
:param pulumi.Input[_builtins.bool] ipv6: Boolean controlling if IPv6 is enabled. Defaults to false.
|
|
953
954
|
Once enabled for a Droplet, IPv6 can not be disabled. When enabling IPv6 on
|
|
954
955
|
an existing Droplet, [additional OS-level configuration](https://docs.digitalocean.com/products/networking/ipv6/how-to/enable/#on-existing-droplets)
|
|
955
956
|
is required.
|
|
956
|
-
:param pulumi.Input[str] ipv6_address: The IPv6 address
|
|
957
|
-
:param pulumi.Input[bool] monitoring: Boolean controlling whether monitoring agent is installed.
|
|
957
|
+
:param pulumi.Input[_builtins.str] ipv6_address: The IPv6 address
|
|
958
|
+
:param pulumi.Input[_builtins.bool] monitoring: Boolean controlling whether monitoring agent is installed.
|
|
958
959
|
Defaults to false. If set to `true`, you can configure monitor alert policies
|
|
959
960
|
[monitor alert resource](https://www.terraform.io/providers/digitalocean/digitalocean/latest/docs/resources/monitor_alert)
|
|
960
|
-
:param pulumi.Input[str] name: The Droplet name.
|
|
961
|
-
:param pulumi.Input[bool] private_networking: **Deprecated** Boolean controlling if private networking
|
|
961
|
+
:param pulumi.Input[_builtins.str] name: The Droplet name.
|
|
962
|
+
:param pulumi.Input[_builtins.bool] private_networking: **Deprecated** Boolean controlling if private networking
|
|
962
963
|
is enabled. This parameter has been deprecated. Use `vpc_uuid` instead to specify a VPC network for the Droplet. If no `vpc_uuid` is provided, the Droplet will be placed in your account's default VPC for the region.
|
|
963
|
-
:param pulumi.Input[Union[str, 'Region']] region: The region where the Droplet will be created.
|
|
964
|
-
:param pulumi.Input[bool] resize_disk: Boolean controlling whether to increase the disk
|
|
964
|
+
:param pulumi.Input[Union[_builtins.str, 'Region']] region: The region where the Droplet will be created.
|
|
965
|
+
:param pulumi.Input[_builtins.bool] resize_disk: Boolean controlling whether to increase the disk
|
|
965
966
|
size when resizing a Droplet. It defaults to `true`. When set to `false`,
|
|
966
967
|
only the Droplet's RAM and CPU will be resized. **Increasing a Droplet's disk
|
|
967
968
|
size is a permanent change**. Increasing only RAM and CPU is reversible.
|
|
968
|
-
:param pulumi.Input[Union[str, 'DropletSlug']] size: The unique slug that identifies the type of Droplet. You
|
|
969
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] ssh_keys: A list of SSH key IDs or fingerprints to enable in
|
|
969
|
+
:param pulumi.Input[Union[_builtins.str, 'DropletSlug']] size: The unique slug that identifies the type of Droplet. You may list the available slugs using the [DigitalOcean API](https://docs.digitalocean.com/reference/api/digitalocean/#tag/Sizes).
|
|
970
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] ssh_keys: A list of SSH key IDs or fingerprints to enable in
|
|
970
971
|
the format `[12345, 123456]`. To retrieve this info, use the
|
|
971
|
-
[DigitalOcean API](https://docs.digitalocean.com/reference/api/
|
|
972
|
+
[DigitalOcean API](https://docs.digitalocean.com/reference/api/digitalocean/#tag/SSH-Keys)
|
|
972
973
|
or CLI (`doctl compute ssh-key list`). Once a Droplet is created keys can not
|
|
973
974
|
be added or removed via this provider. Modifying this field will prompt you
|
|
974
975
|
to destroy and recreate the Droplet.
|
|
975
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] tags: A list of the tags to be applied to this Droplet.
|
|
976
|
-
:param pulumi.Input[str] user_data: A string of the desired User Data provided [during Droplet creation](https://docs.digitalocean.com/products/droplets/how-to/provide-user-data/). Changing this forces a new resource to be created.
|
|
977
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] volume_ids: A list of the IDs of each block storage volume to be attached to the Droplet.
|
|
978
|
-
:param pulumi.Input[str] vpc_uuid: The ID of the VPC where the Droplet will be located.
|
|
976
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] tags: A list of the tags to be applied to this Droplet.
|
|
977
|
+
:param pulumi.Input[_builtins.str] user_data: A string of the desired User Data provided [during Droplet creation](https://docs.digitalocean.com/products/droplets/how-to/provide-user-data/). Changing this forces a new resource to be created.
|
|
978
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] volume_ids: A list of the IDs of each block storage volume to be attached to the Droplet.
|
|
979
|
+
:param pulumi.Input[_builtins.str] vpc_uuid: The ID of the VPC where the Droplet will be located.
|
|
979
980
|
"""
|
|
980
981
|
...
|
|
981
982
|
@overload
|
|
@@ -1031,23 +1032,23 @@ class Droplet(pulumi.CustomResource):
|
|
|
1031
1032
|
resource_name: str,
|
|
1032
1033
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
1033
1034
|
backup_policy: Optional[pulumi.Input[Union['DropletBackupPolicyArgs', 'DropletBackupPolicyArgsDict']]] = None,
|
|
1034
|
-
backups: Optional[pulumi.Input[bool]] = None,
|
|
1035
|
-
droplet_agent: Optional[pulumi.Input[bool]] = None,
|
|
1036
|
-
graceful_shutdown: Optional[pulumi.Input[bool]] = None,
|
|
1037
|
-
image: Optional[pulumi.Input[str]] = None,
|
|
1038
|
-
ipv6: Optional[pulumi.Input[bool]] = None,
|
|
1039
|
-
ipv6_address: Optional[pulumi.Input[str]] = None,
|
|
1040
|
-
monitoring: Optional[pulumi.Input[bool]] = None,
|
|
1041
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
1042
|
-
private_networking: Optional[pulumi.Input[bool]] = None,
|
|
1043
|
-
region: Optional[pulumi.Input[Union[str, 'Region']]] = None,
|
|
1044
|
-
resize_disk: Optional[pulumi.Input[bool]] = None,
|
|
1045
|
-
size: Optional[pulumi.Input[Union[str, 'DropletSlug']]] = None,
|
|
1046
|
-
ssh_keys: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
1047
|
-
tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
1048
|
-
user_data: Optional[pulumi.Input[str]] = None,
|
|
1049
|
-
volume_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
1050
|
-
vpc_uuid: Optional[pulumi.Input[str]] = None,
|
|
1035
|
+
backups: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
1036
|
+
droplet_agent: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
1037
|
+
graceful_shutdown: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
1038
|
+
image: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1039
|
+
ipv6: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
1040
|
+
ipv6_address: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1041
|
+
monitoring: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
1042
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1043
|
+
private_networking: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
1044
|
+
region: Optional[pulumi.Input[Union[_builtins.str, 'Region']]] = None,
|
|
1045
|
+
resize_disk: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
1046
|
+
size: Optional[pulumi.Input[Union[_builtins.str, 'DropletSlug']]] = None,
|
|
1047
|
+
ssh_keys: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
1048
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
1049
|
+
user_data: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1050
|
+
volume_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
1051
|
+
vpc_uuid: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1051
1052
|
__props__=None):
|
|
1052
1053
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
1053
1054
|
if not isinstance(opts, pulumi.ResourceOptions):
|
|
@@ -1101,34 +1102,34 @@ class Droplet(pulumi.CustomResource):
|
|
|
1101
1102
|
id: pulumi.Input[str],
|
|
1102
1103
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
1103
1104
|
backup_policy: Optional[pulumi.Input[Union['DropletBackupPolicyArgs', 'DropletBackupPolicyArgsDict']]] = None,
|
|
1104
|
-
backups: Optional[pulumi.Input[bool]] = None,
|
|
1105
|
-
created_at: Optional[pulumi.Input[str]] = None,
|
|
1106
|
-
disk: Optional[pulumi.Input[int]] = None,
|
|
1107
|
-
droplet_agent: Optional[pulumi.Input[bool]] = None,
|
|
1108
|
-
droplet_urn: Optional[pulumi.Input[str]] = None,
|
|
1109
|
-
graceful_shutdown: Optional[pulumi.Input[bool]] = None,
|
|
1110
|
-
image: Optional[pulumi.Input[str]] = None,
|
|
1111
|
-
ipv4_address: Optional[pulumi.Input[str]] = None,
|
|
1112
|
-
ipv4_address_private: Optional[pulumi.Input[str]] = None,
|
|
1113
|
-
ipv6: Optional[pulumi.Input[bool]] = None,
|
|
1114
|
-
ipv6_address: Optional[pulumi.Input[str]] = None,
|
|
1115
|
-
locked: Optional[pulumi.Input[bool]] = None,
|
|
1116
|
-
memory: Optional[pulumi.Input[int]] = None,
|
|
1117
|
-
monitoring: Optional[pulumi.Input[bool]] = None,
|
|
1118
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
1119
|
-
price_hourly: Optional[pulumi.Input[float]] = None,
|
|
1120
|
-
price_monthly: Optional[pulumi.Input[float]] = None,
|
|
1121
|
-
private_networking: Optional[pulumi.Input[bool]] = None,
|
|
1122
|
-
region: Optional[pulumi.Input[Union[str, 'Region']]] = None,
|
|
1123
|
-
resize_disk: Optional[pulumi.Input[bool]] = None,
|
|
1124
|
-
size: Optional[pulumi.Input[Union[str, 'DropletSlug']]] = None,
|
|
1125
|
-
ssh_keys: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
1126
|
-
status: Optional[pulumi.Input[str]] = None,
|
|
1127
|
-
tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
1128
|
-
user_data: Optional[pulumi.Input[str]] = None,
|
|
1129
|
-
vcpus: Optional[pulumi.Input[int]] = None,
|
|
1130
|
-
volume_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
1131
|
-
vpc_uuid: Optional[pulumi.Input[str]] = None) -> 'Droplet':
|
|
1105
|
+
backups: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
1106
|
+
created_at: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1107
|
+
disk: Optional[pulumi.Input[_builtins.int]] = None,
|
|
1108
|
+
droplet_agent: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
1109
|
+
droplet_urn: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1110
|
+
graceful_shutdown: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
1111
|
+
image: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1112
|
+
ipv4_address: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1113
|
+
ipv4_address_private: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1114
|
+
ipv6: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
1115
|
+
ipv6_address: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1116
|
+
locked: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
1117
|
+
memory: Optional[pulumi.Input[_builtins.int]] = None,
|
|
1118
|
+
monitoring: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
1119
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1120
|
+
price_hourly: Optional[pulumi.Input[_builtins.float]] = None,
|
|
1121
|
+
price_monthly: Optional[pulumi.Input[_builtins.float]] = None,
|
|
1122
|
+
private_networking: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
1123
|
+
region: Optional[pulumi.Input[Union[_builtins.str, 'Region']]] = None,
|
|
1124
|
+
resize_disk: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
1125
|
+
size: Optional[pulumi.Input[Union[_builtins.str, 'DropletSlug']]] = None,
|
|
1126
|
+
ssh_keys: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
1127
|
+
status: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1128
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
1129
|
+
user_data: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1130
|
+
vcpus: Optional[pulumi.Input[_builtins.int]] = None,
|
|
1131
|
+
volume_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
1132
|
+
vpc_uuid: Optional[pulumi.Input[_builtins.str]] = None) -> 'Droplet':
|
|
1132
1133
|
"""
|
|
1133
1134
|
Get an existing Droplet resource's state with the given name, id, and optional extra
|
|
1134
1135
|
properties used to qualify the lookup.
|
|
@@ -1137,55 +1138,55 @@ class Droplet(pulumi.CustomResource):
|
|
|
1137
1138
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
1138
1139
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
1139
1140
|
:param pulumi.Input[Union['DropletBackupPolicyArgs', 'DropletBackupPolicyArgsDict']] backup_policy: An object specifying the backup policy for the Droplet. If omitted and `backups` is `true`, the backup plan will default to daily.
|
|
1140
|
-
:param pulumi.Input[bool] backups: Boolean controlling if backups are made. Defaults to
|
|
1141
|
+
:param pulumi.Input[_builtins.bool] backups: Boolean controlling if backups are made. Defaults to
|
|
1141
1142
|
false.
|
|
1142
|
-
:param pulumi.Input[int] disk: The size of the instance's disk in GB
|
|
1143
|
-
:param pulumi.Input[bool] droplet_agent: A boolean indicating whether to install the
|
|
1143
|
+
:param pulumi.Input[_builtins.int] disk: The size of the instance's disk in GB
|
|
1144
|
+
:param pulumi.Input[_builtins.bool] droplet_agent: A boolean indicating whether to install the
|
|
1144
1145
|
DigitalOcean agent used for providing access to the Droplet web console in
|
|
1145
1146
|
the control panel. By default, the agent is installed on new Droplets but
|
|
1146
1147
|
installation errors (i.e. OS not supported) are ignored. To prevent it from
|
|
1147
1148
|
being installed, set to `false`. To make installation errors fatal, explicitly
|
|
1148
1149
|
set it to `true`.
|
|
1149
|
-
:param pulumi.Input[str] droplet_urn: The uniform resource name of the Droplet
|
|
1150
|
-
:param pulumi.Input[bool] graceful_shutdown: A boolean indicating whether the droplet
|
|
1150
|
+
:param pulumi.Input[_builtins.str] droplet_urn: The uniform resource name of the Droplet
|
|
1151
|
+
:param pulumi.Input[_builtins.bool] graceful_shutdown: A boolean indicating whether the droplet
|
|
1151
1152
|
should be gracefully shut down before it is deleted.
|
|
1152
1153
|
|
|
1153
1154
|
> **NOTE:** If you use `volume_ids` on a Droplet, this provider will assume management over the full set volumes for the instance, and treat additional volumes as a drift. For this reason, `volume_ids` must not be mixed with external `VolumeAttachment` resources for a given instance.
|
|
1154
|
-
:param pulumi.Input[str] image: The Droplet image ID or slug. This could be either image ID or droplet snapshot ID.
|
|
1155
|
-
:param pulumi.Input[str] ipv4_address: The IPv4 address
|
|
1156
|
-
:param pulumi.Input[str] ipv4_address_private: The private networking IPv4 address
|
|
1157
|
-
:param pulumi.Input[bool] ipv6: Boolean controlling if IPv6 is enabled. Defaults to false.
|
|
1155
|
+
:param pulumi.Input[_builtins.str] image: The Droplet image ID or slug. This could be either image ID or droplet snapshot ID. You can find image IDs and slugs using the [DigitalOcean API](https://docs.digitalocean.com/reference/api/digitalocean/#tag/Images).
|
|
1156
|
+
:param pulumi.Input[_builtins.str] ipv4_address: The IPv4 address
|
|
1157
|
+
:param pulumi.Input[_builtins.str] ipv4_address_private: The private networking IPv4 address
|
|
1158
|
+
:param pulumi.Input[_builtins.bool] ipv6: Boolean controlling if IPv6 is enabled. Defaults to false.
|
|
1158
1159
|
Once enabled for a Droplet, IPv6 can not be disabled. When enabling IPv6 on
|
|
1159
1160
|
an existing Droplet, [additional OS-level configuration](https://docs.digitalocean.com/products/networking/ipv6/how-to/enable/#on-existing-droplets)
|
|
1160
1161
|
is required.
|
|
1161
|
-
:param pulumi.Input[str] ipv6_address: The IPv6 address
|
|
1162
|
-
:param pulumi.Input[bool] locked: Is the Droplet locked
|
|
1163
|
-
:param pulumi.Input[bool] monitoring: Boolean controlling whether monitoring agent is installed.
|
|
1162
|
+
:param pulumi.Input[_builtins.str] ipv6_address: The IPv6 address
|
|
1163
|
+
:param pulumi.Input[_builtins.bool] locked: Is the Droplet locked
|
|
1164
|
+
:param pulumi.Input[_builtins.bool] monitoring: Boolean controlling whether monitoring agent is installed.
|
|
1164
1165
|
Defaults to false. If set to `true`, you can configure monitor alert policies
|
|
1165
1166
|
[monitor alert resource](https://www.terraform.io/providers/digitalocean/digitalocean/latest/docs/resources/monitor_alert)
|
|
1166
|
-
:param pulumi.Input[str] name: The Droplet name.
|
|
1167
|
-
:param pulumi.Input[float] price_hourly: Droplet hourly price
|
|
1168
|
-
:param pulumi.Input[float] price_monthly: Droplet monthly price
|
|
1169
|
-
:param pulumi.Input[bool] private_networking: **Deprecated** Boolean controlling if private networking
|
|
1167
|
+
:param pulumi.Input[_builtins.str] name: The Droplet name.
|
|
1168
|
+
:param pulumi.Input[_builtins.float] price_hourly: Droplet hourly price
|
|
1169
|
+
:param pulumi.Input[_builtins.float] price_monthly: Droplet monthly price
|
|
1170
|
+
:param pulumi.Input[_builtins.bool] private_networking: **Deprecated** Boolean controlling if private networking
|
|
1170
1171
|
is enabled. This parameter has been deprecated. Use `vpc_uuid` instead to specify a VPC network for the Droplet. If no `vpc_uuid` is provided, the Droplet will be placed in your account's default VPC for the region.
|
|
1171
|
-
:param pulumi.Input[Union[str, 'Region']] region: The region where the Droplet will be created.
|
|
1172
|
-
:param pulumi.Input[bool] resize_disk: Boolean controlling whether to increase the disk
|
|
1172
|
+
:param pulumi.Input[Union[_builtins.str, 'Region']] region: The region where the Droplet will be created.
|
|
1173
|
+
:param pulumi.Input[_builtins.bool] resize_disk: Boolean controlling whether to increase the disk
|
|
1173
1174
|
size when resizing a Droplet. It defaults to `true`. When set to `false`,
|
|
1174
1175
|
only the Droplet's RAM and CPU will be resized. **Increasing a Droplet's disk
|
|
1175
1176
|
size is a permanent change**. Increasing only RAM and CPU is reversible.
|
|
1176
|
-
:param pulumi.Input[Union[str, 'DropletSlug']] size: The unique slug that identifies the type of Droplet. You
|
|
1177
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] ssh_keys: A list of SSH key IDs or fingerprints to enable in
|
|
1177
|
+
:param pulumi.Input[Union[_builtins.str, 'DropletSlug']] size: The unique slug that identifies the type of Droplet. You may list the available slugs using the [DigitalOcean API](https://docs.digitalocean.com/reference/api/digitalocean/#tag/Sizes).
|
|
1178
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] ssh_keys: A list of SSH key IDs or fingerprints to enable in
|
|
1178
1179
|
the format `[12345, 123456]`. To retrieve this info, use the
|
|
1179
|
-
[DigitalOcean API](https://docs.digitalocean.com/reference/api/
|
|
1180
|
+
[DigitalOcean API](https://docs.digitalocean.com/reference/api/digitalocean/#tag/SSH-Keys)
|
|
1180
1181
|
or CLI (`doctl compute ssh-key list`). Once a Droplet is created keys can not
|
|
1181
1182
|
be added or removed via this provider. Modifying this field will prompt you
|
|
1182
1183
|
to destroy and recreate the Droplet.
|
|
1183
|
-
:param pulumi.Input[str] status: The status of the Droplet
|
|
1184
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] tags: A list of the tags to be applied to this Droplet.
|
|
1185
|
-
:param pulumi.Input[str] user_data: A string of the desired User Data provided [during Droplet creation](https://docs.digitalocean.com/products/droplets/how-to/provide-user-data/). Changing this forces a new resource to be created.
|
|
1186
|
-
:param pulumi.Input[int] vcpus: The number of the instance's virtual CPUs
|
|
1187
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] volume_ids: A list of the IDs of each block storage volume to be attached to the Droplet.
|
|
1188
|
-
:param pulumi.Input[str] vpc_uuid: The ID of the VPC where the Droplet will be located.
|
|
1184
|
+
:param pulumi.Input[_builtins.str] status: The status of the Droplet
|
|
1185
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] tags: A list of the tags to be applied to this Droplet.
|
|
1186
|
+
:param pulumi.Input[_builtins.str] user_data: A string of the desired User Data provided [during Droplet creation](https://docs.digitalocean.com/products/droplets/how-to/provide-user-data/). Changing this forces a new resource to be created.
|
|
1187
|
+
:param pulumi.Input[_builtins.int] vcpus: The number of the instance's virtual CPUs
|
|
1188
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] volume_ids: A list of the IDs of each block storage volume to be attached to the Droplet.
|
|
1189
|
+
:param pulumi.Input[_builtins.str] vpc_uuid: The ID of the VPC where the Droplet will be located.
|
|
1189
1190
|
"""
|
|
1190
1191
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
1191
1192
|
|
|
@@ -1222,7 +1223,7 @@ class Droplet(pulumi.CustomResource):
|
|
|
1222
1223
|
__props__.__dict__["vpc_uuid"] = vpc_uuid
|
|
1223
1224
|
return Droplet(resource_name, opts=opts, __props__=__props__)
|
|
1224
1225
|
|
|
1225
|
-
@property
|
|
1226
|
+
@_builtins.property
|
|
1226
1227
|
@pulumi.getter(name="backupPolicy")
|
|
1227
1228
|
def backup_policy(self) -> pulumi.Output[Optional['outputs.DropletBackupPolicy']]:
|
|
1228
1229
|
"""
|
|
@@ -1230,31 +1231,31 @@ class Droplet(pulumi.CustomResource):
|
|
|
1230
1231
|
"""
|
|
1231
1232
|
return pulumi.get(self, "backup_policy")
|
|
1232
1233
|
|
|
1233
|
-
@property
|
|
1234
|
+
@_builtins.property
|
|
1234
1235
|
@pulumi.getter
|
|
1235
|
-
def backups(self) -> pulumi.Output[Optional[bool]]:
|
|
1236
|
+
def backups(self) -> pulumi.Output[Optional[_builtins.bool]]:
|
|
1236
1237
|
"""
|
|
1237
1238
|
Boolean controlling if backups are made. Defaults to
|
|
1238
1239
|
false.
|
|
1239
1240
|
"""
|
|
1240
1241
|
return pulumi.get(self, "backups")
|
|
1241
1242
|
|
|
1242
|
-
@property
|
|
1243
|
+
@_builtins.property
|
|
1243
1244
|
@pulumi.getter(name="createdAt")
|
|
1244
|
-
def created_at(self) -> pulumi.Output[str]:
|
|
1245
|
+
def created_at(self) -> pulumi.Output[_builtins.str]:
|
|
1245
1246
|
return pulumi.get(self, "created_at")
|
|
1246
1247
|
|
|
1247
|
-
@property
|
|
1248
|
+
@_builtins.property
|
|
1248
1249
|
@pulumi.getter
|
|
1249
|
-
def disk(self) -> pulumi.Output[int]:
|
|
1250
|
+
def disk(self) -> pulumi.Output[_builtins.int]:
|
|
1250
1251
|
"""
|
|
1251
1252
|
The size of the instance's disk in GB
|
|
1252
1253
|
"""
|
|
1253
1254
|
return pulumi.get(self, "disk")
|
|
1254
1255
|
|
|
1255
|
-
@property
|
|
1256
|
+
@_builtins.property
|
|
1256
1257
|
@pulumi.getter(name="dropletAgent")
|
|
1257
|
-
def droplet_agent(self) -> pulumi.Output[Optional[bool]]:
|
|
1258
|
+
def droplet_agent(self) -> pulumi.Output[Optional[_builtins.bool]]:
|
|
1258
1259
|
"""
|
|
1259
1260
|
A boolean indicating whether to install the
|
|
1260
1261
|
DigitalOcean agent used for providing access to the Droplet web console in
|
|
@@ -1265,17 +1266,17 @@ class Droplet(pulumi.CustomResource):
|
|
|
1265
1266
|
"""
|
|
1266
1267
|
return pulumi.get(self, "droplet_agent")
|
|
1267
1268
|
|
|
1268
|
-
@property
|
|
1269
|
+
@_builtins.property
|
|
1269
1270
|
@pulumi.getter(name="dropletUrn")
|
|
1270
|
-
def droplet_urn(self) -> pulumi.Output[str]:
|
|
1271
|
+
def droplet_urn(self) -> pulumi.Output[_builtins.str]:
|
|
1271
1272
|
"""
|
|
1272
1273
|
The uniform resource name of the Droplet
|
|
1273
1274
|
"""
|
|
1274
1275
|
return pulumi.get(self, "droplet_urn")
|
|
1275
1276
|
|
|
1276
|
-
@property
|
|
1277
|
+
@_builtins.property
|
|
1277
1278
|
@pulumi.getter(name="gracefulShutdown")
|
|
1278
|
-
def graceful_shutdown(self) -> pulumi.Output[Optional[bool]]:
|
|
1279
|
+
def graceful_shutdown(self) -> pulumi.Output[Optional[_builtins.bool]]:
|
|
1279
1280
|
"""
|
|
1280
1281
|
A boolean indicating whether the droplet
|
|
1281
1282
|
should be gracefully shut down before it is deleted.
|
|
@@ -1284,33 +1285,33 @@ class Droplet(pulumi.CustomResource):
|
|
|
1284
1285
|
"""
|
|
1285
1286
|
return pulumi.get(self, "graceful_shutdown")
|
|
1286
1287
|
|
|
1287
|
-
@property
|
|
1288
|
+
@_builtins.property
|
|
1288
1289
|
@pulumi.getter
|
|
1289
|
-
def image(self) -> pulumi.Output[str]:
|
|
1290
|
+
def image(self) -> pulumi.Output[_builtins.str]:
|
|
1290
1291
|
"""
|
|
1291
|
-
The Droplet image ID or slug. This could be either image ID or droplet snapshot ID.
|
|
1292
|
+
The Droplet image ID or slug. This could be either image ID or droplet snapshot ID. You can find image IDs and slugs using the [DigitalOcean API](https://docs.digitalocean.com/reference/api/digitalocean/#tag/Images).
|
|
1292
1293
|
"""
|
|
1293
1294
|
return pulumi.get(self, "image")
|
|
1294
1295
|
|
|
1295
|
-
@property
|
|
1296
|
+
@_builtins.property
|
|
1296
1297
|
@pulumi.getter(name="ipv4Address")
|
|
1297
|
-
def ipv4_address(self) -> pulumi.Output[str]:
|
|
1298
|
+
def ipv4_address(self) -> pulumi.Output[_builtins.str]:
|
|
1298
1299
|
"""
|
|
1299
1300
|
The IPv4 address
|
|
1300
1301
|
"""
|
|
1301
1302
|
return pulumi.get(self, "ipv4_address")
|
|
1302
1303
|
|
|
1303
|
-
@property
|
|
1304
|
+
@_builtins.property
|
|
1304
1305
|
@pulumi.getter(name="ipv4AddressPrivate")
|
|
1305
|
-
def ipv4_address_private(self) -> pulumi.Output[str]:
|
|
1306
|
+
def ipv4_address_private(self) -> pulumi.Output[_builtins.str]:
|
|
1306
1307
|
"""
|
|
1307
1308
|
The private networking IPv4 address
|
|
1308
1309
|
"""
|
|
1309
1310
|
return pulumi.get(self, "ipv4_address_private")
|
|
1310
1311
|
|
|
1311
|
-
@property
|
|
1312
|
+
@_builtins.property
|
|
1312
1313
|
@pulumi.getter
|
|
1313
|
-
def ipv6(self) -> pulumi.Output[Optional[bool]]:
|
|
1314
|
+
def ipv6(self) -> pulumi.Output[Optional[_builtins.bool]]:
|
|
1314
1315
|
"""
|
|
1315
1316
|
Boolean controlling if IPv6 is enabled. Defaults to false.
|
|
1316
1317
|
Once enabled for a Droplet, IPv6 can not be disabled. When enabling IPv6 on
|
|
@@ -1319,30 +1320,30 @@ class Droplet(pulumi.CustomResource):
|
|
|
1319
1320
|
"""
|
|
1320
1321
|
return pulumi.get(self, "ipv6")
|
|
1321
1322
|
|
|
1322
|
-
@property
|
|
1323
|
+
@_builtins.property
|
|
1323
1324
|
@pulumi.getter(name="ipv6Address")
|
|
1324
|
-
def ipv6_address(self) -> pulumi.Output[str]:
|
|
1325
|
+
def ipv6_address(self) -> pulumi.Output[_builtins.str]:
|
|
1325
1326
|
"""
|
|
1326
1327
|
The IPv6 address
|
|
1327
1328
|
"""
|
|
1328
1329
|
return pulumi.get(self, "ipv6_address")
|
|
1329
1330
|
|
|
1330
|
-
@property
|
|
1331
|
+
@_builtins.property
|
|
1331
1332
|
@pulumi.getter
|
|
1332
|
-
def locked(self) -> pulumi.Output[bool]:
|
|
1333
|
+
def locked(self) -> pulumi.Output[_builtins.bool]:
|
|
1333
1334
|
"""
|
|
1334
1335
|
Is the Droplet locked
|
|
1335
1336
|
"""
|
|
1336
1337
|
return pulumi.get(self, "locked")
|
|
1337
1338
|
|
|
1338
|
-
@property
|
|
1339
|
+
@_builtins.property
|
|
1339
1340
|
@pulumi.getter
|
|
1340
|
-
def memory(self) -> pulumi.Output[int]:
|
|
1341
|
+
def memory(self) -> pulumi.Output[_builtins.int]:
|
|
1341
1342
|
return pulumi.get(self, "memory")
|
|
1342
1343
|
|
|
1343
|
-
@property
|
|
1344
|
+
@_builtins.property
|
|
1344
1345
|
@pulumi.getter
|
|
1345
|
-
def monitoring(self) -> pulumi.Output[Optional[bool]]:
|
|
1346
|
+
def monitoring(self) -> pulumi.Output[Optional[_builtins.bool]]:
|
|
1346
1347
|
"""
|
|
1347
1348
|
Boolean controlling whether monitoring agent is installed.
|
|
1348
1349
|
Defaults to false. If set to `true`, you can configure monitor alert policies
|
|
@@ -1350,51 +1351,51 @@ class Droplet(pulumi.CustomResource):
|
|
|
1350
1351
|
"""
|
|
1351
1352
|
return pulumi.get(self, "monitoring")
|
|
1352
1353
|
|
|
1353
|
-
@property
|
|
1354
|
+
@_builtins.property
|
|
1354
1355
|
@pulumi.getter
|
|
1355
|
-
def name(self) -> pulumi.Output[str]:
|
|
1356
|
+
def name(self) -> pulumi.Output[_builtins.str]:
|
|
1356
1357
|
"""
|
|
1357
1358
|
The Droplet name.
|
|
1358
1359
|
"""
|
|
1359
1360
|
return pulumi.get(self, "name")
|
|
1360
1361
|
|
|
1361
|
-
@property
|
|
1362
|
+
@_builtins.property
|
|
1362
1363
|
@pulumi.getter(name="priceHourly")
|
|
1363
|
-
def price_hourly(self) -> pulumi.Output[float]:
|
|
1364
|
+
def price_hourly(self) -> pulumi.Output[_builtins.float]:
|
|
1364
1365
|
"""
|
|
1365
1366
|
Droplet hourly price
|
|
1366
1367
|
"""
|
|
1367
1368
|
return pulumi.get(self, "price_hourly")
|
|
1368
1369
|
|
|
1369
|
-
@property
|
|
1370
|
+
@_builtins.property
|
|
1370
1371
|
@pulumi.getter(name="priceMonthly")
|
|
1371
|
-
def price_monthly(self) -> pulumi.Output[float]:
|
|
1372
|
+
def price_monthly(self) -> pulumi.Output[_builtins.float]:
|
|
1372
1373
|
"""
|
|
1373
1374
|
Droplet monthly price
|
|
1374
1375
|
"""
|
|
1375
1376
|
return pulumi.get(self, "price_monthly")
|
|
1376
1377
|
|
|
1377
|
-
@property
|
|
1378
|
+
@_builtins.property
|
|
1378
1379
|
@pulumi.getter(name="privateNetworking")
|
|
1379
1380
|
@_utilities.deprecated("""This parameter has been deprecated. Use `vpc_uuid` instead to specify a VPC network for the Droplet. If no `vpc_uuid` is provided, the Droplet will be placed in your account's default VPC for the region.""")
|
|
1380
|
-
def private_networking(self) -> pulumi.Output[bool]:
|
|
1381
|
+
def private_networking(self) -> pulumi.Output[_builtins.bool]:
|
|
1381
1382
|
"""
|
|
1382
1383
|
**Deprecated** Boolean controlling if private networking
|
|
1383
1384
|
is enabled. This parameter has been deprecated. Use `vpc_uuid` instead to specify a VPC network for the Droplet. If no `vpc_uuid` is provided, the Droplet will be placed in your account's default VPC for the region.
|
|
1384
1385
|
"""
|
|
1385
1386
|
return pulumi.get(self, "private_networking")
|
|
1386
1387
|
|
|
1387
|
-
@property
|
|
1388
|
+
@_builtins.property
|
|
1388
1389
|
@pulumi.getter
|
|
1389
|
-
def region(self) -> pulumi.Output[str]:
|
|
1390
|
+
def region(self) -> pulumi.Output[_builtins.str]:
|
|
1390
1391
|
"""
|
|
1391
1392
|
The region where the Droplet will be created.
|
|
1392
1393
|
"""
|
|
1393
1394
|
return pulumi.get(self, "region")
|
|
1394
1395
|
|
|
1395
|
-
@property
|
|
1396
|
+
@_builtins.property
|
|
1396
1397
|
@pulumi.getter(name="resizeDisk")
|
|
1397
|
-
def resize_disk(self) -> pulumi.Output[Optional[bool]]:
|
|
1398
|
+
def resize_disk(self) -> pulumi.Output[Optional[_builtins.bool]]:
|
|
1398
1399
|
"""
|
|
1399
1400
|
Boolean controlling whether to increase the disk
|
|
1400
1401
|
size when resizing a Droplet. It defaults to `true`. When set to `false`,
|
|
@@ -1403,70 +1404,70 @@ class Droplet(pulumi.CustomResource):
|
|
|
1403
1404
|
"""
|
|
1404
1405
|
return pulumi.get(self, "resize_disk")
|
|
1405
1406
|
|
|
1406
|
-
@property
|
|
1407
|
+
@_builtins.property
|
|
1407
1408
|
@pulumi.getter
|
|
1408
|
-
def size(self) -> pulumi.Output[str]:
|
|
1409
|
+
def size(self) -> pulumi.Output[_builtins.str]:
|
|
1409
1410
|
"""
|
|
1410
|
-
The unique slug that identifies the type of Droplet. You
|
|
1411
|
+
The unique slug that identifies the type of Droplet. You may list the available slugs using the [DigitalOcean API](https://docs.digitalocean.com/reference/api/digitalocean/#tag/Sizes).
|
|
1411
1412
|
"""
|
|
1412
1413
|
return pulumi.get(self, "size")
|
|
1413
1414
|
|
|
1414
|
-
@property
|
|
1415
|
+
@_builtins.property
|
|
1415
1416
|
@pulumi.getter(name="sshKeys")
|
|
1416
|
-
def ssh_keys(self) -> pulumi.Output[Optional[Sequence[str]]]:
|
|
1417
|
+
def ssh_keys(self) -> pulumi.Output[Optional[Sequence[_builtins.str]]]:
|
|
1417
1418
|
"""
|
|
1418
1419
|
A list of SSH key IDs or fingerprints to enable in
|
|
1419
1420
|
the format `[12345, 123456]`. To retrieve this info, use the
|
|
1420
|
-
[DigitalOcean API](https://docs.digitalocean.com/reference/api/
|
|
1421
|
+
[DigitalOcean API](https://docs.digitalocean.com/reference/api/digitalocean/#tag/SSH-Keys)
|
|
1421
1422
|
or CLI (`doctl compute ssh-key list`). Once a Droplet is created keys can not
|
|
1422
1423
|
be added or removed via this provider. Modifying this field will prompt you
|
|
1423
1424
|
to destroy and recreate the Droplet.
|
|
1424
1425
|
"""
|
|
1425
1426
|
return pulumi.get(self, "ssh_keys")
|
|
1426
1427
|
|
|
1427
|
-
@property
|
|
1428
|
+
@_builtins.property
|
|
1428
1429
|
@pulumi.getter
|
|
1429
|
-
def status(self) -> pulumi.Output[str]:
|
|
1430
|
+
def status(self) -> pulumi.Output[_builtins.str]:
|
|
1430
1431
|
"""
|
|
1431
1432
|
The status of the Droplet
|
|
1432
1433
|
"""
|
|
1433
1434
|
return pulumi.get(self, "status")
|
|
1434
1435
|
|
|
1435
|
-
@property
|
|
1436
|
+
@_builtins.property
|
|
1436
1437
|
@pulumi.getter
|
|
1437
|
-
def tags(self) -> pulumi.Output[Optional[Sequence[str]]]:
|
|
1438
|
+
def tags(self) -> pulumi.Output[Optional[Sequence[_builtins.str]]]:
|
|
1438
1439
|
"""
|
|
1439
1440
|
A list of the tags to be applied to this Droplet.
|
|
1440
1441
|
"""
|
|
1441
1442
|
return pulumi.get(self, "tags")
|
|
1442
1443
|
|
|
1443
|
-
@property
|
|
1444
|
+
@_builtins.property
|
|
1444
1445
|
@pulumi.getter(name="userData")
|
|
1445
|
-
def user_data(self) -> pulumi.Output[Optional[str]]:
|
|
1446
|
+
def user_data(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
1446
1447
|
"""
|
|
1447
1448
|
A string of the desired User Data provided [during Droplet creation](https://docs.digitalocean.com/products/droplets/how-to/provide-user-data/). Changing this forces a new resource to be created.
|
|
1448
1449
|
"""
|
|
1449
1450
|
return pulumi.get(self, "user_data")
|
|
1450
1451
|
|
|
1451
|
-
@property
|
|
1452
|
+
@_builtins.property
|
|
1452
1453
|
@pulumi.getter
|
|
1453
|
-
def vcpus(self) -> pulumi.Output[int]:
|
|
1454
|
+
def vcpus(self) -> pulumi.Output[_builtins.int]:
|
|
1454
1455
|
"""
|
|
1455
1456
|
The number of the instance's virtual CPUs
|
|
1456
1457
|
"""
|
|
1457
1458
|
return pulumi.get(self, "vcpus")
|
|
1458
1459
|
|
|
1459
|
-
@property
|
|
1460
|
+
@_builtins.property
|
|
1460
1461
|
@pulumi.getter(name="volumeIds")
|
|
1461
|
-
def volume_ids(self) -> pulumi.Output[Sequence[str]]:
|
|
1462
|
+
def volume_ids(self) -> pulumi.Output[Sequence[_builtins.str]]:
|
|
1462
1463
|
"""
|
|
1463
1464
|
A list of the IDs of each block storage volume to be attached to the Droplet.
|
|
1464
1465
|
"""
|
|
1465
1466
|
return pulumi.get(self, "volume_ids")
|
|
1466
1467
|
|
|
1467
|
-
@property
|
|
1468
|
+
@_builtins.property
|
|
1468
1469
|
@pulumi.getter(name="vpcUuid")
|
|
1469
|
-
def vpc_uuid(self) -> pulumi.Output[str]:
|
|
1470
|
+
def vpc_uuid(self) -> pulumi.Output[_builtins.str]:
|
|
1470
1471
|
"""
|
|
1471
1472
|
The ID of the VPC where the Droplet will be located.
|
|
1472
1473
|
"""
|