pulumiverse-scaleway 1.27.0a1744869119__py3-none-any.whl → 1.39.0a1764841480__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.
- pulumiverse_scaleway/__init__.py +109 -2
- pulumiverse_scaleway/_inputs.py +3936 -2603
- pulumiverse_scaleway/_utilities.py +1 -1
- pulumiverse_scaleway/account/__init__.py +4 -1
- pulumiverse_scaleway/account/get_availability_zones.py +12 -12
- pulumiverse_scaleway/account/get_project.py +28 -28
- pulumiverse_scaleway/account/get_projects.py +241 -0
- pulumiverse_scaleway/account/get_ssh_key.py +34 -34
- pulumiverse_scaleway/account/outputs.py +95 -0
- pulumiverse_scaleway/account/project.py +72 -71
- pulumiverse_scaleway/account/ssh_key.py +107 -106
- pulumiverse_scaleway/account_project.py +72 -71
- pulumiverse_scaleway/account_ssh_key.py +107 -106
- pulumiverse_scaleway/apple_silicon_server.py +334 -201
- pulumiverse_scaleway/applesilicon/__init__.py +2 -1
- pulumiverse_scaleway/applesilicon/_inputs.py +105 -51
- pulumiverse_scaleway/applesilicon/outputs.py +65 -33
- pulumiverse_scaleway/applesilicon/server.py +334 -201
- pulumiverse_scaleway/audittrail/__init__.py +10 -0
- pulumiverse_scaleway/audittrail/get_event.py +410 -0
- pulumiverse_scaleway/audittrail/outputs.py +234 -0
- pulumiverse_scaleway/autoscaling/__init__.py +13 -0
- pulumiverse_scaleway/autoscaling/_inputs.py +558 -0
- pulumiverse_scaleway/autoscaling/instance_group.py +807 -0
- pulumiverse_scaleway/autoscaling/instance_policy.py +634 -0
- pulumiverse_scaleway/autoscaling/instance_template.py +878 -0
- pulumiverse_scaleway/autoscaling/outputs.py +438 -0
- pulumiverse_scaleway/baremetal_server.py +622 -524
- pulumiverse_scaleway/billing/__init__.py +2 -1
- pulumiverse_scaleway/billing/get_consumptions.py +19 -15
- pulumiverse_scaleway/billing/get_invoices.py +25 -25
- pulumiverse_scaleway/billing/outputs.py +96 -96
- pulumiverse_scaleway/block/__init__.py +4 -1
- pulumiverse_scaleway/block/_inputs.py +125 -0
- pulumiverse_scaleway/block/get_snapshot.py +60 -37
- pulumiverse_scaleway/block/get_volume.py +38 -38
- pulumiverse_scaleway/block/outputs.py +139 -0
- pulumiverse_scaleway/block/snapshot.py +272 -98
- pulumiverse_scaleway/block/volume.py +145 -144
- pulumiverse_scaleway/block_snapshot.py +272 -98
- pulumiverse_scaleway/block_volume.py +145 -144
- pulumiverse_scaleway/cockpit.py +71 -49
- pulumiverse_scaleway/cockpit_alert_manager.py +66 -65
- pulumiverse_scaleway/cockpit_grafana_user.py +72 -113
- pulumiverse_scaleway/cockpit_source.py +142 -141
- pulumiverse_scaleway/cockpit_token.py +84 -83
- pulumiverse_scaleway/config/__init__.py +2 -1
- pulumiverse_scaleway/config/__init__.pyi +2 -2
- pulumiverse_scaleway/config/vars.py +11 -11
- pulumiverse_scaleway/container.py +653 -424
- pulumiverse_scaleway/container_cron.py +97 -96
- pulumiverse_scaleway/container_domain.py +63 -62
- pulumiverse_scaleway/container_namespace.py +251 -172
- pulumiverse_scaleway/container_token.py +97 -96
- pulumiverse_scaleway/container_trigger.py +77 -76
- pulumiverse_scaleway/containers/__init__.py +2 -1
- pulumiverse_scaleway/containers/_inputs.py +87 -87
- pulumiverse_scaleway/containers/container.py +653 -424
- pulumiverse_scaleway/containers/cron.py +97 -96
- pulumiverse_scaleway/containers/domain.py +63 -62
- pulumiverse_scaleway/containers/get_container.py +117 -73
- pulumiverse_scaleway/containers/get_namespace.py +56 -45
- pulumiverse_scaleway/containers/namespace.py +251 -172
- pulumiverse_scaleway/containers/outputs.py +84 -84
- pulumiverse_scaleway/containers/token.py +97 -96
- pulumiverse_scaleway/containers/trigger.py +77 -76
- pulumiverse_scaleway/database.py +81 -80
- pulumiverse_scaleway/database_acl.py +148 -39
- pulumiverse_scaleway/database_backup.py +124 -123
- pulumiverse_scaleway/database_instance.py +531 -436
- pulumiverse_scaleway/database_privilege.py +88 -87
- pulumiverse_scaleway/database_read_replica.py +60 -59
- pulumiverse_scaleway/database_user.py +171 -98
- pulumiverse_scaleway/databases/__init__.py +2 -1
- pulumiverse_scaleway/databases/_inputs.py +364 -216
- pulumiverse_scaleway/databases/acl.py +148 -39
- pulumiverse_scaleway/databases/database.py +81 -80
- pulumiverse_scaleway/databases/database_backup.py +124 -123
- pulumiverse_scaleway/databases/get_acl.py +17 -17
- pulumiverse_scaleway/databases/get_database.py +26 -26
- pulumiverse_scaleway/databases/get_database_backup.py +46 -46
- pulumiverse_scaleway/databases/get_instance.py +95 -73
- pulumiverse_scaleway/databases/get_privilege.py +30 -30
- pulumiverse_scaleway/databases/instance.py +531 -436
- pulumiverse_scaleway/databases/outputs.py +419 -232
- pulumiverse_scaleway/databases/privilege.py +88 -87
- pulumiverse_scaleway/databases/read_replica.py +60 -59
- pulumiverse_scaleway/databases/serverless_database.py +97 -96
- pulumiverse_scaleway/databases/snapshot.py +127 -126
- pulumiverse_scaleway/databases/user.py +171 -98
- pulumiverse_scaleway/datawarehouse/__init__.py +13 -0
- pulumiverse_scaleway/datawarehouse/_inputs.py +149 -0
- pulumiverse_scaleway/datawarehouse/database.py +338 -0
- pulumiverse_scaleway/datawarehouse/deployment.py +821 -0
- pulumiverse_scaleway/datawarehouse/outputs.py +113 -0
- pulumiverse_scaleway/datawarehouse/user.py +451 -0
- pulumiverse_scaleway/domain/__init__.py +2 -1
- pulumiverse_scaleway/domain/_inputs.py +661 -661
- pulumiverse_scaleway/domain/get_record.py +53 -64
- pulumiverse_scaleway/domain/get_zone.py +36 -30
- pulumiverse_scaleway/domain/outputs.py +501 -501
- pulumiverse_scaleway/domain/record.py +156 -202
- pulumiverse_scaleway/domain/registration.py +123 -122
- pulumiverse_scaleway/domain/zone.py +108 -107
- pulumiverse_scaleway/domain_record.py +156 -202
- pulumiverse_scaleway/domain_zone.py +108 -107
- pulumiverse_scaleway/edge_services_backend_stage.py +61 -60
- pulumiverse_scaleway/edge_services_cache_stage.py +283 -111
- pulumiverse_scaleway/edge_services_dns_stage.py +169 -140
- pulumiverse_scaleway/edge_services_head_stage.py +37 -36
- pulumiverse_scaleway/edge_services_pipeline.py +125 -82
- pulumiverse_scaleway/edge_services_plan.py +37 -36
- pulumiverse_scaleway/edge_services_route_stage.py +75 -74
- pulumiverse_scaleway/edge_services_tls_stage.py +219 -124
- pulumiverse_scaleway/edge_services_waf_stage.py +106 -105
- pulumiverse_scaleway/elasticmetal/__init__.py +3 -1
- pulumiverse_scaleway/elasticmetal/_inputs.py +203 -129
- pulumiverse_scaleway/elasticmetal/get_ip.py +70 -54
- pulumiverse_scaleway/elasticmetal/get_ips.py +31 -31
- pulumiverse_scaleway/elasticmetal/get_offer.py +43 -41
- pulumiverse_scaleway/elasticmetal/get_option.py +24 -24
- pulumiverse_scaleway/elasticmetal/get_os.py +28 -28
- pulumiverse_scaleway/elasticmetal/get_partition_schema.py +215 -0
- pulumiverse_scaleway/elasticmetal/get_server.py +101 -68
- pulumiverse_scaleway/elasticmetal/ip.py +170 -169
- pulumiverse_scaleway/elasticmetal/ip_mac_address.py +107 -106
- pulumiverse_scaleway/elasticmetal/outputs.py +379 -287
- pulumiverse_scaleway/elasticmetal/server.py +622 -524
- pulumiverse_scaleway/file_filesystem.py +555 -0
- pulumiverse_scaleway/flexible_ip.py +170 -169
- pulumiverse_scaleway/flexible_ip_mac_address.py +107 -106
- pulumiverse_scaleway/function.py +457 -348
- pulumiverse_scaleway/function_cron.py +97 -96
- pulumiverse_scaleway/function_domain.py +63 -62
- pulumiverse_scaleway/function_namespace.py +234 -155
- pulumiverse_scaleway/function_token.py +97 -96
- pulumiverse_scaleway/function_trigger.py +77 -76
- pulumiverse_scaleway/functions/__init__.py +2 -1
- pulumiverse_scaleway/functions/_inputs.py +50 -50
- pulumiverse_scaleway/functions/cron.py +97 -96
- pulumiverse_scaleway/functions/domain.py +63 -62
- pulumiverse_scaleway/functions/function.py +457 -348
- pulumiverse_scaleway/functions/get_function.py +93 -71
- pulumiverse_scaleway/functions/get_namespace.py +54 -43
- pulumiverse_scaleway/functions/namespace.py +234 -155
- pulumiverse_scaleway/functions/outputs.py +34 -34
- pulumiverse_scaleway/functions/token.py +97 -96
- pulumiverse_scaleway/functions/trigger.py +77 -76
- pulumiverse_scaleway/get_account_project.py +28 -28
- pulumiverse_scaleway/get_account_ssh_key.py +34 -34
- pulumiverse_scaleway/get_availability_zones.py +12 -12
- pulumiverse_scaleway/get_baremetal_offer.py +43 -41
- pulumiverse_scaleway/get_baremetal_option.py +24 -24
- pulumiverse_scaleway/get_baremetal_os.py +28 -28
- pulumiverse_scaleway/get_baremetal_server.py +101 -68
- pulumiverse_scaleway/get_billing_consumptions.py +19 -15
- pulumiverse_scaleway/get_billing_invoices.py +25 -25
- pulumiverse_scaleway/get_block_snapshot.py +60 -37
- pulumiverse_scaleway/get_block_volume.py +38 -38
- pulumiverse_scaleway/get_cockpit.py +16 -16
- pulumiverse_scaleway/get_cockpit_source.py +88 -45
- pulumiverse_scaleway/get_config.py +24 -24
- pulumiverse_scaleway/get_container.py +117 -73
- pulumiverse_scaleway/get_container_namespace.py +56 -45
- pulumiverse_scaleway/get_database.py +26 -26
- pulumiverse_scaleway/get_database_acl.py +17 -17
- pulumiverse_scaleway/get_database_backup.py +46 -46
- pulumiverse_scaleway/get_database_instance.py +95 -73
- pulumiverse_scaleway/get_database_privilege.py +30 -30
- pulumiverse_scaleway/get_domain_record.py +53 -64
- pulumiverse_scaleway/get_domain_zone.py +36 -30
- pulumiverse_scaleway/get_flexible_ip.py +70 -54
- pulumiverse_scaleway/get_flexible_ips.py +31 -31
- pulumiverse_scaleway/get_function.py +93 -71
- pulumiverse_scaleway/get_function_namespace.py +54 -43
- pulumiverse_scaleway/get_iam_api_key.py +28 -28
- pulumiverse_scaleway/get_iam_application.py +32 -32
- pulumiverse_scaleway/get_iam_group.py +36 -36
- pulumiverse_scaleway/get_iam_ssh_key.py +34 -34
- pulumiverse_scaleway/get_iam_user.py +30 -30
- pulumiverse_scaleway/get_instance_image.py +58 -58
- pulumiverse_scaleway/get_instance_ip.py +42 -30
- pulumiverse_scaleway/get_instance_placement_group.py +38 -38
- pulumiverse_scaleway/get_instance_private_nic.py +53 -41
- pulumiverse_scaleway/get_instance_security_group.py +46 -46
- pulumiverse_scaleway/get_instance_server.py +108 -145
- pulumiverse_scaleway/get_instance_servers.py +31 -31
- pulumiverse_scaleway/get_instance_snapshot.py +41 -41
- pulumiverse_scaleway/get_instance_volume.py +42 -42
- pulumiverse_scaleway/get_iot_device.py +46 -46
- pulumiverse_scaleway/get_iot_hub.py +60 -60
- pulumiverse_scaleway/get_ipam_ip.py +65 -65
- pulumiverse_scaleway/get_ipam_ips.py +56 -56
- pulumiverse_scaleway/get_k8s_version.py +34 -23
- pulumiverse_scaleway/get_kubernetes_cluster.py +98 -65
- pulumiverse_scaleway/get_kubernetes_node_pool.py +86 -75
- pulumiverse_scaleway/get_lb_acls.py +29 -29
- pulumiverse_scaleway/get_lb_backend.py +75 -75
- pulumiverse_scaleway/get_lb_backends.py +29 -29
- pulumiverse_scaleway/get_lb_frontend.py +76 -43
- pulumiverse_scaleway/get_lb_frontends.py +29 -29
- pulumiverse_scaleway/get_lb_ips.py +37 -37
- pulumiverse_scaleway/get_lb_route.py +36 -25
- pulumiverse_scaleway/get_lb_routes.py +23 -23
- pulumiverse_scaleway/get_lbs.py +31 -31
- pulumiverse_scaleway/get_loadbalancer.py +78 -56
- pulumiverse_scaleway/get_loadbalancer_certificate.py +96 -36
- pulumiverse_scaleway/get_loadbalancer_ip.py +40 -40
- pulumiverse_scaleway/get_marketplace_image.py +28 -28
- pulumiverse_scaleway/get_mnq_sns.py +18 -18
- pulumiverse_scaleway/get_mnq_sqs.py +18 -18
- pulumiverse_scaleway/get_mongo_db_instance.py +110 -55
- pulumiverse_scaleway/get_object_bucket.py +35 -35
- pulumiverse_scaleway/get_object_bucket_policy.py +22 -22
- pulumiverse_scaleway/get_redis_cluster.py +65 -54
- pulumiverse_scaleway/get_registry_image.py +48 -48
- pulumiverse_scaleway/get_registry_image_tag.py +44 -44
- pulumiverse_scaleway/get_registry_namespace.py +36 -36
- pulumiverse_scaleway/get_secret.py +58 -58
- pulumiverse_scaleway/get_secret_version.py +46 -46
- pulumiverse_scaleway/get_tem_domain.py +103 -70
- pulumiverse_scaleway/get_vpc.py +58 -47
- pulumiverse_scaleway/get_vpc_gateway_network.py +55 -44
- pulumiverse_scaleway/get_vpc_private_network.py +58 -47
- pulumiverse_scaleway/get_vpc_public_gateway.py +56 -56
- pulumiverse_scaleway/get_vpc_public_gateway_dhcp.py +44 -44
- pulumiverse_scaleway/get_vpc_public_gateway_dhcp_reservation.py +44 -44
- pulumiverse_scaleway/get_vpc_public_gateway_ip.py +24 -24
- pulumiverse_scaleway/get_vpc_public_pat_rule.py +32 -32
- pulumiverse_scaleway/get_vpc_routes.py +47 -47
- pulumiverse_scaleway/get_vpcs.py +31 -31
- pulumiverse_scaleway/get_web_host_offer.py +34 -34
- pulumiverse_scaleway/get_webhosting.py +58 -58
- pulumiverse_scaleway/hosting/__init__.py +2 -1
- pulumiverse_scaleway/hosting/_inputs.py +117 -75
- pulumiverse_scaleway/hosting/get_hosting.py +58 -58
- pulumiverse_scaleway/hosting/get_offer.py +34 -34
- pulumiverse_scaleway/hosting/hosting.py +213 -212
- pulumiverse_scaleway/hosting/outputs.py +276 -192
- pulumiverse_scaleway/iam/__init__.py +3 -1
- pulumiverse_scaleway/iam/_inputs.py +26 -26
- pulumiverse_scaleway/iam/api_key.py +142 -141
- pulumiverse_scaleway/iam/application.py +98 -97
- pulumiverse_scaleway/iam/get_api_key.py +28 -28
- pulumiverse_scaleway/iam/get_application.py +32 -32
- pulumiverse_scaleway/iam/get_group.py +36 -36
- pulumiverse_scaleway/iam/get_policy.py +293 -0
- pulumiverse_scaleway/iam/get_ssh_key.py +34 -34
- pulumiverse_scaleway/iam/get_user.py +30 -30
- pulumiverse_scaleway/iam/group.py +140 -139
- pulumiverse_scaleway/iam/group_membership.py +54 -53
- pulumiverse_scaleway/iam/outputs.py +70 -18
- pulumiverse_scaleway/iam/policy.py +169 -168
- pulumiverse_scaleway/iam/ssh_key.py +107 -106
- pulumiverse_scaleway/iam/user.py +598 -134
- pulumiverse_scaleway/iam_api_key.py +142 -141
- pulumiverse_scaleway/iam_application.py +98 -97
- pulumiverse_scaleway/iam_group.py +140 -139
- pulumiverse_scaleway/iam_group_membership.py +54 -53
- pulumiverse_scaleway/iam_policy.py +169 -168
- pulumiverse_scaleway/iam_ssh_key.py +107 -106
- pulumiverse_scaleway/iam_user.py +598 -134
- pulumiverse_scaleway/inference/__init__.py +4 -1
- pulumiverse_scaleway/inference/_inputs.py +232 -50
- pulumiverse_scaleway/inference/deployment.py +319 -220
- pulumiverse_scaleway/inference/get_model.py +299 -0
- pulumiverse_scaleway/inference/model.py +684 -0
- pulumiverse_scaleway/inference/outputs.py +250 -34
- pulumiverse_scaleway/inference_deployment.py +319 -220
- pulumiverse_scaleway/instance/__init__.py +3 -1
- pulumiverse_scaleway/instance/_inputs.py +650 -437
- pulumiverse_scaleway/instance/get_image.py +58 -58
- pulumiverse_scaleway/instance/get_ip.py +42 -30
- pulumiverse_scaleway/instance/get_placement_group.py +38 -38
- pulumiverse_scaleway/instance/get_private_nic.py +53 -41
- pulumiverse_scaleway/instance/get_security_group.py +46 -46
- pulumiverse_scaleway/instance/get_server.py +108 -145
- pulumiverse_scaleway/instance/get_server_type.py +271 -0
- pulumiverse_scaleway/instance/get_servers.py +31 -31
- pulumiverse_scaleway/instance/get_snapshot.py +41 -41
- pulumiverse_scaleway/instance/get_volume.py +42 -42
- pulumiverse_scaleway/instance/image.py +260 -205
- pulumiverse_scaleway/instance/ip.py +116 -115
- pulumiverse_scaleway/instance/ip_reverse_dns.py +54 -53
- pulumiverse_scaleway/instance/outputs.py +981 -548
- pulumiverse_scaleway/instance/placement_group.py +123 -122
- pulumiverse_scaleway/instance/private_nic.py +163 -113
- pulumiverse_scaleway/instance/security_group.py +188 -187
- pulumiverse_scaleway/instance/security_group_rules.py +42 -41
- pulumiverse_scaleway/instance/server.py +590 -562
- pulumiverse_scaleway/instance/snapshot.py +150 -157
- pulumiverse_scaleway/instance/user_data.py +75 -74
- pulumiverse_scaleway/instance/volume.py +174 -159
- pulumiverse_scaleway/instance_image.py +260 -205
- pulumiverse_scaleway/instance_ip.py +116 -115
- pulumiverse_scaleway/instance_ip_reverse_dns.py +54 -53
- pulumiverse_scaleway/instance_placement_group.py +123 -122
- pulumiverse_scaleway/instance_private_nic.py +163 -113
- pulumiverse_scaleway/instance_security_group.py +188 -187
- pulumiverse_scaleway/instance_security_group_rules.py +42 -41
- pulumiverse_scaleway/instance_server.py +590 -562
- pulumiverse_scaleway/instance_snapshot.py +150 -157
- pulumiverse_scaleway/instance_user_data.py +75 -74
- pulumiverse_scaleway/instance_volume.py +174 -159
- pulumiverse_scaleway/iot/__init__.py +2 -1
- pulumiverse_scaleway/iot/_inputs.py +119 -119
- pulumiverse_scaleway/iot/device.py +156 -193
- pulumiverse_scaleway/iot/get_device.py +46 -46
- pulumiverse_scaleway/iot/get_hub.py +60 -60
- pulumiverse_scaleway/iot/hub.py +259 -258
- pulumiverse_scaleway/iot/network.py +115 -114
- pulumiverse_scaleway/iot/outputs.py +107 -107
- pulumiverse_scaleway/iot/route.py +109 -108
- pulumiverse_scaleway/iot_device.py +156 -193
- pulumiverse_scaleway/iot_hub.py +259 -258
- pulumiverse_scaleway/iot_network.py +115 -114
- pulumiverse_scaleway/iot_route.py +109 -108
- pulumiverse_scaleway/ipam/__init__.py +2 -1
- pulumiverse_scaleway/ipam/_inputs.py +108 -108
- pulumiverse_scaleway/ipam/get_ip.py +65 -65
- pulumiverse_scaleway/ipam/get_ips.py +56 -56
- pulumiverse_scaleway/ipam/ip.py +160 -131
- pulumiverse_scaleway/ipam/ip_reverse_dns.py +141 -70
- pulumiverse_scaleway/ipam/outputs.py +122 -122
- pulumiverse_scaleway/ipam_ip.py +160 -131
- pulumiverse_scaleway/ipam_ip_reverse_dns.py +141 -70
- pulumiverse_scaleway/job/__init__.py +2 -1
- pulumiverse_scaleway/job/_inputs.py +127 -14
- pulumiverse_scaleway/job/definition.py +283 -175
- pulumiverse_scaleway/job/outputs.py +98 -10
- pulumiverse_scaleway/job_definition.py +283 -175
- pulumiverse_scaleway/key_manager_key.py +939 -0
- pulumiverse_scaleway/kubernetes/__init__.py +3 -1
- pulumiverse_scaleway/kubernetes/_inputs.py +388 -185
- pulumiverse_scaleway/kubernetes/acl.py +447 -0
- pulumiverse_scaleway/kubernetes/cluster.py +594 -307
- pulumiverse_scaleway/kubernetes/get_cluster.py +98 -65
- pulumiverse_scaleway/kubernetes/get_pool.py +86 -75
- pulumiverse_scaleway/kubernetes/get_version.py +34 -23
- pulumiverse_scaleway/kubernetes/outputs.py +444 -250
- pulumiverse_scaleway/kubernetes/pool.py +427 -365
- pulumiverse_scaleway/kubernetes_cluster.py +594 -307
- pulumiverse_scaleway/kubernetes_node_pool.py +427 -365
- pulumiverse_scaleway/loadbalancer.py +329 -246
- pulumiverse_scaleway/loadbalancer_acl.py +102 -101
- pulumiverse_scaleway/loadbalancer_backend.py +534 -487
- pulumiverse_scaleway/loadbalancer_certificate.py +97 -96
- pulumiverse_scaleway/loadbalancer_frontend.py +271 -167
- pulumiverse_scaleway/loadbalancer_ip.py +124 -123
- pulumiverse_scaleway/loadbalancer_route.py +244 -119
- pulumiverse_scaleway/loadbalancers/__init__.py +3 -1
- pulumiverse_scaleway/loadbalancers/_inputs.py +367 -273
- pulumiverse_scaleway/loadbalancers/acl.py +102 -101
- pulumiverse_scaleway/loadbalancers/backend.py +534 -487
- pulumiverse_scaleway/loadbalancers/certificate.py +97 -96
- pulumiverse_scaleway/loadbalancers/frontend.py +271 -167
- pulumiverse_scaleway/loadbalancers/get_acls.py +29 -29
- pulumiverse_scaleway/loadbalancers/get_backend.py +75 -75
- pulumiverse_scaleway/loadbalancers/get_backends.py +29 -29
- pulumiverse_scaleway/loadbalancers/get_certificate.py +96 -36
- pulumiverse_scaleway/loadbalancers/get_frontend.py +76 -43
- pulumiverse_scaleway/loadbalancers/get_frontends.py +29 -29
- pulumiverse_scaleway/loadbalancers/get_ip.py +40 -40
- pulumiverse_scaleway/loadbalancers/get_ips.py +37 -37
- pulumiverse_scaleway/loadbalancers/get_load_balancer.py +78 -56
- pulumiverse_scaleway/loadbalancers/get_load_balancers.py +31 -31
- pulumiverse_scaleway/loadbalancers/get_route.py +36 -25
- pulumiverse_scaleway/loadbalancers/get_routes.py +23 -23
- pulumiverse_scaleway/loadbalancers/ip.py +124 -123
- pulumiverse_scaleway/loadbalancers/load_balancer.py +329 -246
- pulumiverse_scaleway/loadbalancers/outputs.py +870 -716
- pulumiverse_scaleway/loadbalancers/private_network.py +505 -0
- pulumiverse_scaleway/loadbalancers/route.py +244 -119
- pulumiverse_scaleway/mnq/__init__.py +2 -1
- pulumiverse_scaleway/mnq/_inputs.py +90 -38
- pulumiverse_scaleway/mnq/get_sns.py +18 -18
- pulumiverse_scaleway/mnq/get_sqs.py +18 -18
- pulumiverse_scaleway/mnq/nats_account.py +63 -62
- pulumiverse_scaleway/mnq/nats_credentials.py +63 -62
- pulumiverse_scaleway/mnq/outputs.py +73 -26
- pulumiverse_scaleway/mnq/sns.py +46 -45
- pulumiverse_scaleway/mnq/sns_credentials.py +82 -81
- pulumiverse_scaleway/mnq/sns_topic.py +174 -173
- pulumiverse_scaleway/mnq/sns_topic_subscription.py +182 -181
- pulumiverse_scaleway/mnq/sqs.py +46 -45
- pulumiverse_scaleway/mnq/sqs_credentials.py +82 -81
- pulumiverse_scaleway/mnq/sqs_queue.py +392 -232
- pulumiverse_scaleway/mnq_nats_account.py +63 -62
- pulumiverse_scaleway/mnq_nats_credentials.py +63 -62
- pulumiverse_scaleway/mnq_sns.py +46 -45
- pulumiverse_scaleway/mnq_sns_credentials.py +82 -81
- pulumiverse_scaleway/mnq_sns_topic.py +174 -173
- pulumiverse_scaleway/mnq_sns_topic_subscription.py +182 -181
- pulumiverse_scaleway/mnq_sqs.py +46 -45
- pulumiverse_scaleway/mnq_sqs_credentials.py +82 -81
- pulumiverse_scaleway/mnq_sqs_queue.py +392 -232
- pulumiverse_scaleway/mongo_db_instance.py +569 -268
- pulumiverse_scaleway/mongo_db_snapshot.py +127 -126
- pulumiverse_scaleway/mongodb/__init__.py +3 -1
- pulumiverse_scaleway/mongodb/_inputs.py +178 -51
- pulumiverse_scaleway/mongodb/get_instance.py +110 -55
- pulumiverse_scaleway/mongodb/instance.py +569 -268
- pulumiverse_scaleway/mongodb/outputs.py +192 -68
- pulumiverse_scaleway/mongodb/snapshot.py +127 -126
- pulumiverse_scaleway/mongodb/user.py +507 -0
- pulumiverse_scaleway/network/__init__.py +2 -1
- pulumiverse_scaleway/network/_inputs.py +209 -155
- pulumiverse_scaleway/network/acl.py +100 -101
- pulumiverse_scaleway/network/gateway_network.py +228 -180
- pulumiverse_scaleway/network/get_gateway_network.py +55 -44
- pulumiverse_scaleway/network/get_private_network.py +58 -47
- pulumiverse_scaleway/network/get_public_gateway.py +56 -56
- pulumiverse_scaleway/network/get_public_gateway_dhcp.py +44 -44
- pulumiverse_scaleway/network/get_public_gateway_dhcp_reservation.py +44 -44
- pulumiverse_scaleway/network/get_public_gateway_ip.py +24 -24
- pulumiverse_scaleway/network/get_public_gateway_pat_rule.py +32 -32
- pulumiverse_scaleway/network/get_routes.py +47 -47
- pulumiverse_scaleway/network/get_vpc.py +58 -47
- pulumiverse_scaleway/network/get_vpcs.py +31 -31
- pulumiverse_scaleway/network/outputs.py +338 -270
- pulumiverse_scaleway/network/private_network.py +203 -155
- pulumiverse_scaleway/network/public_gateway.py +261 -260
- pulumiverse_scaleway/network/public_gateway_dhcp.py +285 -284
- pulumiverse_scaleway/network/public_gateway_dhcp_reservation.py +107 -106
- pulumiverse_scaleway/network/public_gateway_ip.py +107 -106
- pulumiverse_scaleway/network/public_gateway_ip_reverse_dns.py +54 -53
- pulumiverse_scaleway/network/public_gateway_pat_rule.py +132 -131
- pulumiverse_scaleway/network/route.py +230 -141
- pulumiverse_scaleway/network/vpc.py +172 -124
- pulumiverse_scaleway/object/__init__.py +3 -1
- pulumiverse_scaleway/object/_inputs.py +202 -166
- pulumiverse_scaleway/object/bucket.py +162 -148
- pulumiverse_scaleway/object/bucket_acl.py +97 -94
- pulumiverse_scaleway/object/bucket_lock_configuration.py +57 -56
- pulumiverse_scaleway/object/bucket_policy.py +71 -134
- pulumiverse_scaleway/object/bucket_website_configuration.py +104 -85
- pulumiverse_scaleway/object/get.py +290 -0
- pulumiverse_scaleway/object/get_bucket.py +35 -35
- pulumiverse_scaleway/object/get_bucket_policy.py +22 -22
- pulumiverse_scaleway/object/item.py +301 -223
- pulumiverse_scaleway/object/outputs.py +210 -166
- pulumiverse_scaleway/object_bucket.py +162 -148
- pulumiverse_scaleway/object_bucket_acl.py +97 -94
- pulumiverse_scaleway/object_bucket_lock_configuration.py +57 -56
- pulumiverse_scaleway/object_bucket_policy.py +71 -134
- pulumiverse_scaleway/object_bucket_website_configuration.py +104 -85
- pulumiverse_scaleway/object_item.py +301 -223
- pulumiverse_scaleway/observability/__init__.py +4 -2
- pulumiverse_scaleway/observability/_inputs.py +106 -106
- pulumiverse_scaleway/observability/alert_manager.py +66 -65
- pulumiverse_scaleway/observability/cockpit.py +71 -49
- pulumiverse_scaleway/observability/get_grafana.py +103 -0
- pulumiverse_scaleway/observability/get_instance.py +16 -16
- pulumiverse_scaleway/observability/get_source.py +88 -45
- pulumiverse_scaleway/observability/get_sources.py +375 -0
- pulumiverse_scaleway/observability/grafana_user.py +72 -113
- pulumiverse_scaleway/observability/outputs.py +241 -101
- pulumiverse_scaleway/observability/source.py +142 -141
- pulumiverse_scaleway/observability/token.py +84 -83
- pulumiverse_scaleway/outputs.py +5235 -3665
- pulumiverse_scaleway/provider.py +107 -82
- pulumiverse_scaleway/pulumi-plugin.json +1 -1
- pulumiverse_scaleway/rdb_snapshot.py +127 -126
- pulumiverse_scaleway/redis/__init__.py +2 -1
- pulumiverse_scaleway/redis/_inputs.py +163 -69
- pulumiverse_scaleway/redis/cluster.py +273 -225
- pulumiverse_scaleway/redis/get_cluster.py +65 -54
- pulumiverse_scaleway/redis/outputs.py +199 -87
- pulumiverse_scaleway/redis_cluster.py +273 -225
- pulumiverse_scaleway/registry/__init__.py +2 -1
- pulumiverse_scaleway/registry/get_image.py +48 -48
- pulumiverse_scaleway/registry/get_image_tag.py +44 -44
- pulumiverse_scaleway/registry/get_namespace.py +36 -36
- pulumiverse_scaleway/registry/namespace.py +106 -105
- pulumiverse_scaleway/registry_namespace.py +106 -105
- pulumiverse_scaleway/sdb_database.py +97 -96
- pulumiverse_scaleway/secret.py +188 -179
- pulumiverse_scaleway/secret_version.py +107 -106
- pulumiverse_scaleway/secrets/__init__.py +2 -1
- pulumiverse_scaleway/secrets/_inputs.py +63 -63
- pulumiverse_scaleway/secrets/get_secret.py +58 -58
- pulumiverse_scaleway/secrets/get_version.py +46 -46
- pulumiverse_scaleway/secrets/outputs.py +84 -84
- pulumiverse_scaleway/secrets/secret.py +188 -179
- pulumiverse_scaleway/secrets/version.py +107 -106
- pulumiverse_scaleway/tem/__init__.py +2 -1
- pulumiverse_scaleway/tem/_inputs.py +33 -33
- pulumiverse_scaleway/tem/blocked_list.py +105 -104
- pulumiverse_scaleway/tem/domain.py +384 -257
- pulumiverse_scaleway/tem/domain_validation.py +63 -62
- pulumiverse_scaleway/tem/get_domain.py +103 -70
- pulumiverse_scaleway/tem/get_offer_subscription.py +34 -34
- pulumiverse_scaleway/tem/outputs.py +44 -44
- pulumiverse_scaleway/tem/webhook.py +132 -131
- pulumiverse_scaleway/tem_domain.py +384 -257
- pulumiverse_scaleway/tem_domain_validation.py +63 -62
- pulumiverse_scaleway/tem_webhook.py +132 -131
- pulumiverse_scaleway/vpc.py +172 -124
- pulumiverse_scaleway/vpc_gateway_network.py +228 -180
- pulumiverse_scaleway/vpc_private_network.py +203 -155
- pulumiverse_scaleway/vpc_public_gateway.py +261 -260
- pulumiverse_scaleway/vpc_public_gateway_dhcp.py +285 -284
- pulumiverse_scaleway/vpc_public_gateway_dhcp_reservation.py +107 -106
- pulumiverse_scaleway/vpc_public_gateway_ip.py +107 -106
- pulumiverse_scaleway/vpc_public_gateway_ip_reverse_dns.py +54 -53
- pulumiverse_scaleway/vpc_public_gateway_pat_rule.py +132 -131
- pulumiverse_scaleway/vpc_route.py +230 -141
- pulumiverse_scaleway/webhosting.py +213 -212
- {pulumiverse_scaleway-1.27.0a1744869119.dist-info → pulumiverse_scaleway-1.39.0a1764841480.dist-info}/METADATA +2 -2
- pulumiverse_scaleway-1.39.0a1764841480.dist-info/RECORD +513 -0
- {pulumiverse_scaleway-1.27.0a1744869119.dist-info → pulumiverse_scaleway-1.39.0a1764841480.dist-info}/WHEEL +1 -1
- pulumiverse_scaleway/get_cockpit_plan.py +0 -129
- pulumiverse_scaleway/observability/get_plan.py +0 -125
- pulumiverse_scaleway-1.27.0a1744869119.dist-info/RECORD +0 -483
- {pulumiverse_scaleway-1.27.0a1744869119.dist-info → pulumiverse_scaleway-1.39.0a1764841480.dist-info}/top_level.txt +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
|
|
5
|
-
import
|
|
5
|
+
import builtins as _builtins
|
|
6
6
|
import warnings
|
|
7
7
|
import sys
|
|
8
8
|
import pulumi
|
|
@@ -21,62 +21,76 @@ __all__ = ['ContainerArgs', 'Container']
|
|
|
21
21
|
@pulumi.input_type
|
|
22
22
|
class ContainerArgs:
|
|
23
23
|
def __init__(__self__, *,
|
|
24
|
-
namespace_id: pulumi.Input[str],
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
24
|
+
namespace_id: pulumi.Input[_builtins.str],
|
|
25
|
+
args: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
26
|
+
commands: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
27
|
+
cpu_limit: Optional[pulumi.Input[_builtins.int]] = None,
|
|
28
|
+
deploy: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
29
|
+
description: Optional[pulumi.Input[_builtins.str]] = None,
|
|
30
|
+
environment_variables: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
|
29
31
|
health_checks: Optional[pulumi.Input[Sequence[pulumi.Input['ContainerHealthCheckArgs']]]] = None,
|
|
30
|
-
http_option: Optional[pulumi.Input[str]] = None,
|
|
31
|
-
local_storage_limit: Optional[pulumi.Input[int]] = None,
|
|
32
|
-
max_concurrency: Optional[pulumi.Input[int]] = None,
|
|
33
|
-
max_scale: Optional[pulumi.Input[int]] = None,
|
|
34
|
-
memory_limit: Optional[pulumi.Input[int]] = None,
|
|
35
|
-
min_scale: Optional[pulumi.Input[int]] = None,
|
|
36
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
37
|
-
port: Optional[pulumi.Input[int]] = None,
|
|
38
|
-
privacy: Optional[pulumi.Input[str]] = None,
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
32
|
+
http_option: Optional[pulumi.Input[_builtins.str]] = None,
|
|
33
|
+
local_storage_limit: Optional[pulumi.Input[_builtins.int]] = None,
|
|
34
|
+
max_concurrency: Optional[pulumi.Input[_builtins.int]] = None,
|
|
35
|
+
max_scale: Optional[pulumi.Input[_builtins.int]] = None,
|
|
36
|
+
memory_limit: Optional[pulumi.Input[_builtins.int]] = None,
|
|
37
|
+
min_scale: Optional[pulumi.Input[_builtins.int]] = None,
|
|
38
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
39
|
+
port: Optional[pulumi.Input[_builtins.int]] = None,
|
|
40
|
+
privacy: Optional[pulumi.Input[_builtins.str]] = None,
|
|
41
|
+
private_network_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
42
|
+
protocol: Optional[pulumi.Input[_builtins.str]] = None,
|
|
43
|
+
region: Optional[pulumi.Input[_builtins.str]] = None,
|
|
44
|
+
registry_image: Optional[pulumi.Input[_builtins.str]] = None,
|
|
45
|
+
registry_sha256: Optional[pulumi.Input[_builtins.str]] = None,
|
|
46
|
+
sandbox: Optional[pulumi.Input[_builtins.str]] = None,
|
|
44
47
|
scaling_options: Optional[pulumi.Input[Sequence[pulumi.Input['ContainerScalingOptionArgs']]]] = None,
|
|
45
|
-
secret_environment_variables: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
46
|
-
status: Optional[pulumi.Input[str]] = None,
|
|
47
|
-
|
|
48
|
+
secret_environment_variables: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
|
49
|
+
status: Optional[pulumi.Input[_builtins.str]] = None,
|
|
50
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
51
|
+
timeout: Optional[pulumi.Input[_builtins.int]] = None):
|
|
48
52
|
"""
|
|
49
53
|
The set of arguments for constructing a Container resource.
|
|
50
|
-
:param pulumi.Input[str] namespace_id: The Containers namespace ID of the container.
|
|
54
|
+
:param pulumi.Input[_builtins.str] namespace_id: The Containers namespace ID of the container.
|
|
51
55
|
|
|
52
56
|
> **Important** Updating the `name` argument will recreate the container.
|
|
53
|
-
:param pulumi.Input[
|
|
54
|
-
:param pulumi.Input[
|
|
55
|
-
:param pulumi.Input[
|
|
56
|
-
:param pulumi.Input[
|
|
57
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] args: Arguments passed to the command specified in the "command" field. These override the default arguments from the container image, and behave like command-line parameters.
|
|
58
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] commands: Command executed when the container starts. This overrides the default command defined in the container image. This is usually the main executable, or entry point script to run.
|
|
59
|
+
:param pulumi.Input[_builtins.int] cpu_limit: The amount of vCPU computing resources to allocate to each container.
|
|
60
|
+
:param pulumi.Input[_builtins.bool] deploy: Boolean indicating whether the container is in a production environment.
|
|
61
|
+
:param pulumi.Input[_builtins.str] description: The description of the container.
|
|
62
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] environment_variables: The [environment variables](https://www.scaleway.com/en/docs/serverless-containers/concepts/#environment-variables) of the container.
|
|
57
63
|
:param pulumi.Input[Sequence[pulumi.Input['ContainerHealthCheckArgs']]] health_checks: Health check configuration block of the container.
|
|
58
|
-
:param pulumi.Input[str] http_option: Allows both HTTP and HTTPS (`enabled`) or redirect HTTP to HTTPS (`redirected`). Defaults to `enabled`.
|
|
59
|
-
:param pulumi.Input[int] local_storage_limit: Local storage limit of the container (in MB)
|
|
64
|
+
:param pulumi.Input[_builtins.str] http_option: Allows both HTTP and HTTPS (`enabled`) or redirect HTTP to HTTPS (`redirected`). Defaults to `enabled`.
|
|
65
|
+
:param pulumi.Input[_builtins.int] local_storage_limit: Local storage limit of the container (in MB)
|
|
66
|
+
:param pulumi.Input[_builtins.int] max_concurrency: The maximum number of simultaneous requests your container can handle at the same time. Use `scaling_option.concurrent_requests_threshold` instead.
|
|
67
|
+
:param pulumi.Input[_builtins.int] max_scale: The maximum number of instances this container can scale to.
|
|
68
|
+
:param pulumi.Input[_builtins.int] memory_limit: The memory resources in MB to allocate to each container.
|
|
69
|
+
:param pulumi.Input[_builtins.int] min_scale: The minimum number of container instances running continuously.
|
|
70
|
+
:param pulumi.Input[_builtins.str] name: The unique name of the container name.
|
|
71
|
+
:param pulumi.Input[_builtins.int] port: The port to expose the container.
|
|
72
|
+
:param pulumi.Input[_builtins.str] privacy: The privacy type defines the way to authenticate to your container. Please check our dedicated [section](https://www.scaleway.com/en/developers/api/serverless-containers/#protocol-9dd4c8).
|
|
73
|
+
:param pulumi.Input[_builtins.str] private_network_id: The ID of the Private Network the container is connected to.
|
|
74
|
+
|
|
75
|
+
> **Important** This feature is currently in beta and requires a namespace with VPC integration activated by setting the `activate_vpc_integration` attribute to `true`.
|
|
60
76
|
|
|
61
77
|
Note that if you want to use your own configuration, you must consult our configuration [restrictions](https://www.scaleway.com/en/docs/serverless-containers/reference-content/containers-limitations/#configuration-restrictions) section.
|
|
62
|
-
:param pulumi.Input[
|
|
63
|
-
:param pulumi.Input[
|
|
64
|
-
:param pulumi.Input[
|
|
65
|
-
:param pulumi.Input[
|
|
66
|
-
:param pulumi.Input[str]
|
|
67
|
-
:param pulumi.Input[int] port: The port to expose the container.
|
|
68
|
-
:param pulumi.Input[str] privacy: The privacy type defines the way to authenticate to your container. Please check our dedicated [section](https://www.scaleway.com/en/developers/api/serverless-containers/#protocol-9dd4c8).
|
|
69
|
-
:param pulumi.Input[str] protocol: The communication [protocol](https://www.scaleway.com/en/developers/api/serverless-containers/#path-containers-update-an-existing-container) `http1` or `h2c`. Defaults to `http1`.
|
|
70
|
-
:param pulumi.Input[str] region: (Defaults to provider `region`) The region in which the container was created.
|
|
71
|
-
:param pulumi.Input[str] registry_image: The registry image address (e.g., `rg.fr-par.scw.cloud/$NAMESPACE/$IMAGE`)
|
|
72
|
-
:param pulumi.Input[str] registry_sha256: The sha256 of your source registry image, changing it will re-apply the deployment. Can be any string.
|
|
73
|
-
:param pulumi.Input[str] sandbox: Execution environment of the container.
|
|
78
|
+
:param pulumi.Input[_builtins.str] protocol: The communication [protocol](https://www.scaleway.com/en/developers/api/serverless-containers/#path-containers-update-an-existing-container) `http1` or `h2c`. Defaults to `http1`.
|
|
79
|
+
:param pulumi.Input[_builtins.str] region: (Defaults to provider `region`) The region in which the container was created.
|
|
80
|
+
:param pulumi.Input[_builtins.str] registry_image: The registry image address (e.g., `rg.fr-par.scw.cloud/$NAMESPACE/$IMAGE`)
|
|
81
|
+
:param pulumi.Input[_builtins.str] registry_sha256: The sha256 of your source registry image, changing it will re-apply the deployment. Can be any string.
|
|
82
|
+
:param pulumi.Input[_builtins.str] sandbox: Execution environment of the container.
|
|
74
83
|
:param pulumi.Input[Sequence[pulumi.Input['ContainerScalingOptionArgs']]] scaling_options: Configuration block used to decide when to scale up or down. Possible values:
|
|
75
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] secret_environment_variables: The [secret environment variables](https://www.scaleway.com/en/docs/serverless-containers/concepts/#secrets) of the container.
|
|
76
|
-
:param pulumi.Input[str] status: The container status.
|
|
77
|
-
:param pulumi.Input[
|
|
84
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] secret_environment_variables: The [secret environment variables](https://www.scaleway.com/en/docs/serverless-containers/concepts/#secrets) of the container.
|
|
85
|
+
:param pulumi.Input[_builtins.str] status: The container status.
|
|
86
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] tags: The list of tags associated with the container.
|
|
87
|
+
:param pulumi.Input[_builtins.int] timeout: The maximum amount of time in seconds your container can spend processing a request before being stopped. Default to `300` seconds.
|
|
78
88
|
"""
|
|
79
89
|
pulumi.set(__self__, "namespace_id", namespace_id)
|
|
90
|
+
if args is not None:
|
|
91
|
+
pulumi.set(__self__, "args", args)
|
|
92
|
+
if commands is not None:
|
|
93
|
+
pulumi.set(__self__, "commands", commands)
|
|
80
94
|
if cpu_limit is not None:
|
|
81
95
|
pulumi.set(__self__, "cpu_limit", cpu_limit)
|
|
82
96
|
if deploy is not None:
|
|
@@ -108,6 +122,8 @@ class ContainerArgs:
|
|
|
108
122
|
pulumi.set(__self__, "port", port)
|
|
109
123
|
if privacy is not None:
|
|
110
124
|
pulumi.set(__self__, "privacy", privacy)
|
|
125
|
+
if private_network_id is not None:
|
|
126
|
+
pulumi.set(__self__, "private_network_id", private_network_id)
|
|
111
127
|
if protocol is not None:
|
|
112
128
|
pulumi.set(__self__, "protocol", protocol)
|
|
113
129
|
if region is not None:
|
|
@@ -124,12 +140,14 @@ class ContainerArgs:
|
|
|
124
140
|
pulumi.set(__self__, "secret_environment_variables", secret_environment_variables)
|
|
125
141
|
if status is not None:
|
|
126
142
|
pulumi.set(__self__, "status", status)
|
|
143
|
+
if tags is not None:
|
|
144
|
+
pulumi.set(__self__, "tags", tags)
|
|
127
145
|
if timeout is not None:
|
|
128
146
|
pulumi.set(__self__, "timeout", timeout)
|
|
129
147
|
|
|
130
|
-
@property
|
|
148
|
+
@_builtins.property
|
|
131
149
|
@pulumi.getter(name="namespaceId")
|
|
132
|
-
def namespace_id(self) -> pulumi.Input[str]:
|
|
150
|
+
def namespace_id(self) -> pulumi.Input[_builtins.str]:
|
|
133
151
|
"""
|
|
134
152
|
The Containers namespace ID of the container.
|
|
135
153
|
|
|
@@ -138,58 +156,82 @@ class ContainerArgs:
|
|
|
138
156
|
return pulumi.get(self, "namespace_id")
|
|
139
157
|
|
|
140
158
|
@namespace_id.setter
|
|
141
|
-
def namespace_id(self, value: pulumi.Input[str]):
|
|
159
|
+
def namespace_id(self, value: pulumi.Input[_builtins.str]):
|
|
142
160
|
pulumi.set(self, "namespace_id", value)
|
|
143
161
|
|
|
144
|
-
@property
|
|
162
|
+
@_builtins.property
|
|
163
|
+
@pulumi.getter
|
|
164
|
+
def args(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
|
|
165
|
+
"""
|
|
166
|
+
Arguments passed to the command specified in the "command" field. These override the default arguments from the container image, and behave like command-line parameters.
|
|
167
|
+
"""
|
|
168
|
+
return pulumi.get(self, "args")
|
|
169
|
+
|
|
170
|
+
@args.setter
|
|
171
|
+
def args(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
|
|
172
|
+
pulumi.set(self, "args", value)
|
|
173
|
+
|
|
174
|
+
@_builtins.property
|
|
175
|
+
@pulumi.getter
|
|
176
|
+
def commands(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
|
|
177
|
+
"""
|
|
178
|
+
Command executed when the container starts. This overrides the default command defined in the container image. This is usually the main executable, or entry point script to run.
|
|
179
|
+
"""
|
|
180
|
+
return pulumi.get(self, "commands")
|
|
181
|
+
|
|
182
|
+
@commands.setter
|
|
183
|
+
def commands(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
|
|
184
|
+
pulumi.set(self, "commands", value)
|
|
185
|
+
|
|
186
|
+
@_builtins.property
|
|
145
187
|
@pulumi.getter(name="cpuLimit")
|
|
146
|
-
def cpu_limit(self) -> Optional[pulumi.Input[int]]:
|
|
188
|
+
def cpu_limit(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
147
189
|
"""
|
|
148
190
|
The amount of vCPU computing resources to allocate to each container.
|
|
149
191
|
"""
|
|
150
192
|
return pulumi.get(self, "cpu_limit")
|
|
151
193
|
|
|
152
194
|
@cpu_limit.setter
|
|
153
|
-
def cpu_limit(self, value: Optional[pulumi.Input[int]]):
|
|
195
|
+
def cpu_limit(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
154
196
|
pulumi.set(self, "cpu_limit", value)
|
|
155
197
|
|
|
156
|
-
@property
|
|
198
|
+
@_builtins.property
|
|
157
199
|
@pulumi.getter
|
|
158
|
-
def deploy(self) -> Optional[pulumi.Input[bool]]:
|
|
200
|
+
def deploy(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
159
201
|
"""
|
|
160
202
|
Boolean indicating whether the container is in a production environment.
|
|
161
203
|
"""
|
|
162
204
|
return pulumi.get(self, "deploy")
|
|
163
205
|
|
|
164
206
|
@deploy.setter
|
|
165
|
-
def deploy(self, value: Optional[pulumi.Input[bool]]):
|
|
207
|
+
def deploy(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
166
208
|
pulumi.set(self, "deploy", value)
|
|
167
209
|
|
|
168
|
-
@property
|
|
210
|
+
@_builtins.property
|
|
169
211
|
@pulumi.getter
|
|
170
|
-
def description(self) -> Optional[pulumi.Input[str]]:
|
|
212
|
+
def description(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
171
213
|
"""
|
|
172
214
|
The description of the container.
|
|
173
215
|
"""
|
|
174
216
|
return pulumi.get(self, "description")
|
|
175
217
|
|
|
176
218
|
@description.setter
|
|
177
|
-
def description(self, value: Optional[pulumi.Input[str]]):
|
|
219
|
+
def description(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
178
220
|
pulumi.set(self, "description", value)
|
|
179
221
|
|
|
180
|
-
@property
|
|
222
|
+
@_builtins.property
|
|
181
223
|
@pulumi.getter(name="environmentVariables")
|
|
182
|
-
def environment_variables(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
|
224
|
+
def environment_variables(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]:
|
|
183
225
|
"""
|
|
184
226
|
The [environment variables](https://www.scaleway.com/en/docs/serverless-containers/concepts/#environment-variables) of the container.
|
|
185
227
|
"""
|
|
186
228
|
return pulumi.get(self, "environment_variables")
|
|
187
229
|
|
|
188
230
|
@environment_variables.setter
|
|
189
|
-
def environment_variables(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
|
|
231
|
+
def environment_variables(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]):
|
|
190
232
|
pulumi.set(self, "environment_variables", value)
|
|
191
233
|
|
|
192
|
-
@property
|
|
234
|
+
@_builtins.property
|
|
193
235
|
@pulumi.getter(name="healthChecks")
|
|
194
236
|
def health_checks(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ContainerHealthCheckArgs']]]]:
|
|
195
237
|
"""
|
|
@@ -201,178 +243,192 @@ class ContainerArgs:
|
|
|
201
243
|
def health_checks(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ContainerHealthCheckArgs']]]]):
|
|
202
244
|
pulumi.set(self, "health_checks", value)
|
|
203
245
|
|
|
204
|
-
@property
|
|
246
|
+
@_builtins.property
|
|
205
247
|
@pulumi.getter(name="httpOption")
|
|
206
|
-
def http_option(self) -> Optional[pulumi.Input[str]]:
|
|
248
|
+
def http_option(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
207
249
|
"""
|
|
208
250
|
Allows both HTTP and HTTPS (`enabled`) or redirect HTTP to HTTPS (`redirected`). Defaults to `enabled`.
|
|
209
251
|
"""
|
|
210
252
|
return pulumi.get(self, "http_option")
|
|
211
253
|
|
|
212
254
|
@http_option.setter
|
|
213
|
-
def http_option(self, value: Optional[pulumi.Input[str]]):
|
|
255
|
+
def http_option(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
214
256
|
pulumi.set(self, "http_option", value)
|
|
215
257
|
|
|
216
|
-
@property
|
|
258
|
+
@_builtins.property
|
|
217
259
|
@pulumi.getter(name="localStorageLimit")
|
|
218
|
-
def local_storage_limit(self) -> Optional[pulumi.Input[int]]:
|
|
260
|
+
def local_storage_limit(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
219
261
|
"""
|
|
220
262
|
Local storage limit of the container (in MB)
|
|
221
|
-
|
|
222
|
-
Note that if you want to use your own configuration, you must consult our configuration [restrictions](https://www.scaleway.com/en/docs/serverless-containers/reference-content/containers-limitations/#configuration-restrictions) section.
|
|
223
263
|
"""
|
|
224
264
|
return pulumi.get(self, "local_storage_limit")
|
|
225
265
|
|
|
226
266
|
@local_storage_limit.setter
|
|
227
|
-
def local_storage_limit(self, value: Optional[pulumi.Input[int]]):
|
|
267
|
+
def local_storage_limit(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
228
268
|
pulumi.set(self, "local_storage_limit", value)
|
|
229
269
|
|
|
230
|
-
@property
|
|
270
|
+
@_builtins.property
|
|
231
271
|
@pulumi.getter(name="maxConcurrency")
|
|
232
272
|
@_utilities.deprecated("""Use scaling_option.concurrent_requests_threshold instead. This attribute will be removed.""")
|
|
233
|
-
def max_concurrency(self) -> Optional[pulumi.Input[int]]:
|
|
273
|
+
def max_concurrency(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
234
274
|
"""
|
|
235
275
|
The maximum number of simultaneous requests your container can handle at the same time. Use `scaling_option.concurrent_requests_threshold` instead.
|
|
236
276
|
"""
|
|
237
277
|
return pulumi.get(self, "max_concurrency")
|
|
238
278
|
|
|
239
279
|
@max_concurrency.setter
|
|
240
|
-
def max_concurrency(self, value: Optional[pulumi.Input[int]]):
|
|
280
|
+
def max_concurrency(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
241
281
|
pulumi.set(self, "max_concurrency", value)
|
|
242
282
|
|
|
243
|
-
@property
|
|
283
|
+
@_builtins.property
|
|
244
284
|
@pulumi.getter(name="maxScale")
|
|
245
|
-
def max_scale(self) -> Optional[pulumi.Input[int]]:
|
|
285
|
+
def max_scale(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
246
286
|
"""
|
|
247
287
|
The maximum number of instances this container can scale to.
|
|
248
288
|
"""
|
|
249
289
|
return pulumi.get(self, "max_scale")
|
|
250
290
|
|
|
251
291
|
@max_scale.setter
|
|
252
|
-
def max_scale(self, value: Optional[pulumi.Input[int]]):
|
|
292
|
+
def max_scale(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
253
293
|
pulumi.set(self, "max_scale", value)
|
|
254
294
|
|
|
255
|
-
@property
|
|
295
|
+
@_builtins.property
|
|
256
296
|
@pulumi.getter(name="memoryLimit")
|
|
257
|
-
def memory_limit(self) -> Optional[pulumi.Input[int]]:
|
|
297
|
+
def memory_limit(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
258
298
|
"""
|
|
259
299
|
The memory resources in MB to allocate to each container.
|
|
260
300
|
"""
|
|
261
301
|
return pulumi.get(self, "memory_limit")
|
|
262
302
|
|
|
263
303
|
@memory_limit.setter
|
|
264
|
-
def memory_limit(self, value: Optional[pulumi.Input[int]]):
|
|
304
|
+
def memory_limit(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
265
305
|
pulumi.set(self, "memory_limit", value)
|
|
266
306
|
|
|
267
|
-
@property
|
|
307
|
+
@_builtins.property
|
|
268
308
|
@pulumi.getter(name="minScale")
|
|
269
|
-
def min_scale(self) -> Optional[pulumi.Input[int]]:
|
|
309
|
+
def min_scale(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
270
310
|
"""
|
|
271
311
|
The minimum number of container instances running continuously.
|
|
272
312
|
"""
|
|
273
313
|
return pulumi.get(self, "min_scale")
|
|
274
314
|
|
|
275
315
|
@min_scale.setter
|
|
276
|
-
def min_scale(self, value: Optional[pulumi.Input[int]]):
|
|
316
|
+
def min_scale(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
277
317
|
pulumi.set(self, "min_scale", value)
|
|
278
318
|
|
|
279
|
-
@property
|
|
319
|
+
@_builtins.property
|
|
280
320
|
@pulumi.getter
|
|
281
|
-
def name(self) -> Optional[pulumi.Input[str]]:
|
|
321
|
+
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
282
322
|
"""
|
|
283
323
|
The unique name of the container name.
|
|
284
324
|
"""
|
|
285
325
|
return pulumi.get(self, "name")
|
|
286
326
|
|
|
287
327
|
@name.setter
|
|
288
|
-
def name(self, value: Optional[pulumi.Input[str]]):
|
|
328
|
+
def name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
289
329
|
pulumi.set(self, "name", value)
|
|
290
330
|
|
|
291
|
-
@property
|
|
331
|
+
@_builtins.property
|
|
292
332
|
@pulumi.getter
|
|
293
|
-
def port(self) -> Optional[pulumi.Input[int]]:
|
|
333
|
+
def port(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
294
334
|
"""
|
|
295
335
|
The port to expose the container.
|
|
296
336
|
"""
|
|
297
337
|
return pulumi.get(self, "port")
|
|
298
338
|
|
|
299
339
|
@port.setter
|
|
300
|
-
def port(self, value: Optional[pulumi.Input[int]]):
|
|
340
|
+
def port(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
301
341
|
pulumi.set(self, "port", value)
|
|
302
342
|
|
|
303
|
-
@property
|
|
343
|
+
@_builtins.property
|
|
304
344
|
@pulumi.getter
|
|
305
|
-
def privacy(self) -> Optional[pulumi.Input[str]]:
|
|
345
|
+
def privacy(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
306
346
|
"""
|
|
307
347
|
The privacy type defines the way to authenticate to your container. Please check our dedicated [section](https://www.scaleway.com/en/developers/api/serverless-containers/#protocol-9dd4c8).
|
|
308
348
|
"""
|
|
309
349
|
return pulumi.get(self, "privacy")
|
|
310
350
|
|
|
311
351
|
@privacy.setter
|
|
312
|
-
def privacy(self, value: Optional[pulumi.Input[str]]):
|
|
352
|
+
def privacy(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
313
353
|
pulumi.set(self, "privacy", value)
|
|
314
354
|
|
|
315
|
-
@property
|
|
355
|
+
@_builtins.property
|
|
356
|
+
@pulumi.getter(name="privateNetworkId")
|
|
357
|
+
def private_network_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
358
|
+
"""
|
|
359
|
+
The ID of the Private Network the container is connected to.
|
|
360
|
+
|
|
361
|
+
> **Important** This feature is currently in beta and requires a namespace with VPC integration activated by setting the `activate_vpc_integration` attribute to `true`.
|
|
362
|
+
|
|
363
|
+
Note that if you want to use your own configuration, you must consult our configuration [restrictions](https://www.scaleway.com/en/docs/serverless-containers/reference-content/containers-limitations/#configuration-restrictions) section.
|
|
364
|
+
"""
|
|
365
|
+
return pulumi.get(self, "private_network_id")
|
|
366
|
+
|
|
367
|
+
@private_network_id.setter
|
|
368
|
+
def private_network_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
369
|
+
pulumi.set(self, "private_network_id", value)
|
|
370
|
+
|
|
371
|
+
@_builtins.property
|
|
316
372
|
@pulumi.getter
|
|
317
|
-
def protocol(self) -> Optional[pulumi.Input[str]]:
|
|
373
|
+
def protocol(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
318
374
|
"""
|
|
319
375
|
The communication [protocol](https://www.scaleway.com/en/developers/api/serverless-containers/#path-containers-update-an-existing-container) `http1` or `h2c`. Defaults to `http1`.
|
|
320
376
|
"""
|
|
321
377
|
return pulumi.get(self, "protocol")
|
|
322
378
|
|
|
323
379
|
@protocol.setter
|
|
324
|
-
def protocol(self, value: Optional[pulumi.Input[str]]):
|
|
380
|
+
def protocol(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
325
381
|
pulumi.set(self, "protocol", value)
|
|
326
382
|
|
|
327
|
-
@property
|
|
383
|
+
@_builtins.property
|
|
328
384
|
@pulumi.getter
|
|
329
|
-
def region(self) -> Optional[pulumi.Input[str]]:
|
|
385
|
+
def region(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
330
386
|
"""
|
|
331
387
|
(Defaults to provider `region`) The region in which the container was created.
|
|
332
388
|
"""
|
|
333
389
|
return pulumi.get(self, "region")
|
|
334
390
|
|
|
335
391
|
@region.setter
|
|
336
|
-
def region(self, value: Optional[pulumi.Input[str]]):
|
|
392
|
+
def region(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
337
393
|
pulumi.set(self, "region", value)
|
|
338
394
|
|
|
339
|
-
@property
|
|
395
|
+
@_builtins.property
|
|
340
396
|
@pulumi.getter(name="registryImage")
|
|
341
|
-
def registry_image(self) -> Optional[pulumi.Input[str]]:
|
|
397
|
+
def registry_image(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
342
398
|
"""
|
|
343
399
|
The registry image address (e.g., `rg.fr-par.scw.cloud/$NAMESPACE/$IMAGE`)
|
|
344
400
|
"""
|
|
345
401
|
return pulumi.get(self, "registry_image")
|
|
346
402
|
|
|
347
403
|
@registry_image.setter
|
|
348
|
-
def registry_image(self, value: Optional[pulumi.Input[str]]):
|
|
404
|
+
def registry_image(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
349
405
|
pulumi.set(self, "registry_image", value)
|
|
350
406
|
|
|
351
|
-
@property
|
|
407
|
+
@_builtins.property
|
|
352
408
|
@pulumi.getter(name="registrySha256")
|
|
353
|
-
def registry_sha256(self) -> Optional[pulumi.Input[str]]:
|
|
409
|
+
def registry_sha256(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
354
410
|
"""
|
|
355
411
|
The sha256 of your source registry image, changing it will re-apply the deployment. Can be any string.
|
|
356
412
|
"""
|
|
357
413
|
return pulumi.get(self, "registry_sha256")
|
|
358
414
|
|
|
359
415
|
@registry_sha256.setter
|
|
360
|
-
def registry_sha256(self, value: Optional[pulumi.Input[str]]):
|
|
416
|
+
def registry_sha256(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
361
417
|
pulumi.set(self, "registry_sha256", value)
|
|
362
418
|
|
|
363
|
-
@property
|
|
419
|
+
@_builtins.property
|
|
364
420
|
@pulumi.getter
|
|
365
|
-
def sandbox(self) -> Optional[pulumi.Input[str]]:
|
|
421
|
+
def sandbox(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
366
422
|
"""
|
|
367
423
|
Execution environment of the container.
|
|
368
424
|
"""
|
|
369
425
|
return pulumi.get(self, "sandbox")
|
|
370
426
|
|
|
371
427
|
@sandbox.setter
|
|
372
|
-
def sandbox(self, value: Optional[pulumi.Input[str]]):
|
|
428
|
+
def sandbox(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
373
429
|
pulumi.set(self, "sandbox", value)
|
|
374
430
|
|
|
375
|
-
@property
|
|
431
|
+
@_builtins.property
|
|
376
432
|
@pulumi.getter(name="scalingOptions")
|
|
377
433
|
def scaling_options(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ContainerScalingOptionArgs']]]]:
|
|
378
434
|
"""
|
|
@@ -384,107 +440,133 @@ class ContainerArgs:
|
|
|
384
440
|
def scaling_options(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ContainerScalingOptionArgs']]]]):
|
|
385
441
|
pulumi.set(self, "scaling_options", value)
|
|
386
442
|
|
|
387
|
-
@property
|
|
443
|
+
@_builtins.property
|
|
388
444
|
@pulumi.getter(name="secretEnvironmentVariables")
|
|
389
|
-
def secret_environment_variables(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
|
445
|
+
def secret_environment_variables(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]:
|
|
390
446
|
"""
|
|
391
447
|
The [secret environment variables](https://www.scaleway.com/en/docs/serverless-containers/concepts/#secrets) of the container.
|
|
392
448
|
"""
|
|
393
449
|
return pulumi.get(self, "secret_environment_variables")
|
|
394
450
|
|
|
395
451
|
@secret_environment_variables.setter
|
|
396
|
-
def secret_environment_variables(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
|
|
452
|
+
def secret_environment_variables(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]):
|
|
397
453
|
pulumi.set(self, "secret_environment_variables", value)
|
|
398
454
|
|
|
399
|
-
@property
|
|
455
|
+
@_builtins.property
|
|
400
456
|
@pulumi.getter
|
|
401
|
-
def status(self) -> Optional[pulumi.Input[str]]:
|
|
457
|
+
def status(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
402
458
|
"""
|
|
403
459
|
The container status.
|
|
404
460
|
"""
|
|
405
461
|
return pulumi.get(self, "status")
|
|
406
462
|
|
|
407
463
|
@status.setter
|
|
408
|
-
def status(self, value: Optional[pulumi.Input[str]]):
|
|
464
|
+
def status(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
409
465
|
pulumi.set(self, "status", value)
|
|
410
466
|
|
|
411
|
-
@property
|
|
467
|
+
@_builtins.property
|
|
412
468
|
@pulumi.getter
|
|
413
|
-
def
|
|
469
|
+
def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
|
|
470
|
+
"""
|
|
471
|
+
The list of tags associated with the container.
|
|
472
|
+
"""
|
|
473
|
+
return pulumi.get(self, "tags")
|
|
474
|
+
|
|
475
|
+
@tags.setter
|
|
476
|
+
def tags(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
|
|
477
|
+
pulumi.set(self, "tags", value)
|
|
478
|
+
|
|
479
|
+
@_builtins.property
|
|
480
|
+
@pulumi.getter
|
|
481
|
+
def timeout(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
414
482
|
"""
|
|
415
483
|
The maximum amount of time in seconds your container can spend processing a request before being stopped. Default to `300` seconds.
|
|
416
484
|
"""
|
|
417
485
|
return pulumi.get(self, "timeout")
|
|
418
486
|
|
|
419
487
|
@timeout.setter
|
|
420
|
-
def timeout(self, value: Optional[pulumi.Input[int]]):
|
|
488
|
+
def timeout(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
421
489
|
pulumi.set(self, "timeout", value)
|
|
422
490
|
|
|
423
491
|
|
|
424
492
|
@pulumi.input_type
|
|
425
493
|
class _ContainerState:
|
|
426
494
|
def __init__(__self__, *,
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
495
|
+
args: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
496
|
+
commands: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
497
|
+
cpu_limit: Optional[pulumi.Input[_builtins.int]] = None,
|
|
498
|
+
cron_status: Optional[pulumi.Input[_builtins.str]] = None,
|
|
499
|
+
deploy: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
500
|
+
description: Optional[pulumi.Input[_builtins.str]] = None,
|
|
501
|
+
domain_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
502
|
+
environment_variables: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
|
503
|
+
error_message: Optional[pulumi.Input[_builtins.str]] = None,
|
|
434
504
|
health_checks: Optional[pulumi.Input[Sequence[pulumi.Input['ContainerHealthCheckArgs']]]] = None,
|
|
435
|
-
http_option: Optional[pulumi.Input[str]] = None,
|
|
436
|
-
local_storage_limit: Optional[pulumi.Input[int]] = None,
|
|
437
|
-
max_concurrency: Optional[pulumi.Input[int]] = None,
|
|
438
|
-
max_scale: Optional[pulumi.Input[int]] = None,
|
|
439
|
-
memory_limit: Optional[pulumi.Input[int]] = None,
|
|
440
|
-
min_scale: Optional[pulumi.Input[int]] = None,
|
|
441
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
442
|
-
namespace_id: Optional[pulumi.Input[str]] = None,
|
|
443
|
-
port: Optional[pulumi.Input[int]] = None,
|
|
444
|
-
privacy: Optional[pulumi.Input[str]] = None,
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
505
|
+
http_option: Optional[pulumi.Input[_builtins.str]] = None,
|
|
506
|
+
local_storage_limit: Optional[pulumi.Input[_builtins.int]] = None,
|
|
507
|
+
max_concurrency: Optional[pulumi.Input[_builtins.int]] = None,
|
|
508
|
+
max_scale: Optional[pulumi.Input[_builtins.int]] = None,
|
|
509
|
+
memory_limit: Optional[pulumi.Input[_builtins.int]] = None,
|
|
510
|
+
min_scale: Optional[pulumi.Input[_builtins.int]] = None,
|
|
511
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
512
|
+
namespace_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
513
|
+
port: Optional[pulumi.Input[_builtins.int]] = None,
|
|
514
|
+
privacy: Optional[pulumi.Input[_builtins.str]] = None,
|
|
515
|
+
private_network_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
516
|
+
protocol: Optional[pulumi.Input[_builtins.str]] = None,
|
|
517
|
+
region: Optional[pulumi.Input[_builtins.str]] = None,
|
|
518
|
+
registry_image: Optional[pulumi.Input[_builtins.str]] = None,
|
|
519
|
+
registry_sha256: Optional[pulumi.Input[_builtins.str]] = None,
|
|
520
|
+
sandbox: Optional[pulumi.Input[_builtins.str]] = None,
|
|
450
521
|
scaling_options: Optional[pulumi.Input[Sequence[pulumi.Input['ContainerScalingOptionArgs']]]] = None,
|
|
451
|
-
secret_environment_variables: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
452
|
-
status: Optional[pulumi.Input[str]] = None,
|
|
453
|
-
|
|
522
|
+
secret_environment_variables: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
|
523
|
+
status: Optional[pulumi.Input[_builtins.str]] = None,
|
|
524
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
525
|
+
timeout: Optional[pulumi.Input[_builtins.int]] = None):
|
|
454
526
|
"""
|
|
455
527
|
Input properties used for looking up and filtering Container resources.
|
|
456
|
-
:param pulumi.Input[
|
|
457
|
-
:param pulumi.Input[str]
|
|
458
|
-
:param pulumi.Input[
|
|
459
|
-
:param pulumi.Input[str]
|
|
460
|
-
:param pulumi.Input[
|
|
461
|
-
:param pulumi.Input[
|
|
462
|
-
:param pulumi.Input[str]
|
|
528
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] args: Arguments passed to the command specified in the "command" field. These override the default arguments from the container image, and behave like command-line parameters.
|
|
529
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] commands: Command executed when the container starts. This overrides the default command defined in the container image. This is usually the main executable, or entry point script to run.
|
|
530
|
+
:param pulumi.Input[_builtins.int] cpu_limit: The amount of vCPU computing resources to allocate to each container.
|
|
531
|
+
:param pulumi.Input[_builtins.str] cron_status: The cron status of the container.
|
|
532
|
+
:param pulumi.Input[_builtins.bool] deploy: Boolean indicating whether the container is in a production environment.
|
|
533
|
+
:param pulumi.Input[_builtins.str] description: The description of the container.
|
|
534
|
+
:param pulumi.Input[_builtins.str] domain_name: The native domain name of the container
|
|
535
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] environment_variables: The [environment variables](https://www.scaleway.com/en/docs/serverless-containers/concepts/#environment-variables) of the container.
|
|
536
|
+
:param pulumi.Input[_builtins.str] error_message: The error message of the container.
|
|
463
537
|
:param pulumi.Input[Sequence[pulumi.Input['ContainerHealthCheckArgs']]] health_checks: Health check configuration block of the container.
|
|
464
|
-
:param pulumi.Input[str] http_option: Allows both HTTP and HTTPS (`enabled`) or redirect HTTP to HTTPS (`redirected`). Defaults to `enabled`.
|
|
465
|
-
:param pulumi.Input[int] local_storage_limit: Local storage limit of the container (in MB)
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
:param pulumi.Input[int]
|
|
469
|
-
:param pulumi.Input[int]
|
|
470
|
-
:param pulumi.Input[
|
|
471
|
-
:param pulumi.Input[
|
|
472
|
-
:param pulumi.Input[str] name: The unique name of the container name.
|
|
473
|
-
:param pulumi.Input[str] namespace_id: The Containers namespace ID of the container.
|
|
538
|
+
:param pulumi.Input[_builtins.str] http_option: Allows both HTTP and HTTPS (`enabled`) or redirect HTTP to HTTPS (`redirected`). Defaults to `enabled`.
|
|
539
|
+
:param pulumi.Input[_builtins.int] local_storage_limit: Local storage limit of the container (in MB)
|
|
540
|
+
:param pulumi.Input[_builtins.int] max_concurrency: The maximum number of simultaneous requests your container can handle at the same time. Use `scaling_option.concurrent_requests_threshold` instead.
|
|
541
|
+
:param pulumi.Input[_builtins.int] max_scale: The maximum number of instances this container can scale to.
|
|
542
|
+
:param pulumi.Input[_builtins.int] memory_limit: The memory resources in MB to allocate to each container.
|
|
543
|
+
:param pulumi.Input[_builtins.int] min_scale: The minimum number of container instances running continuously.
|
|
544
|
+
:param pulumi.Input[_builtins.str] name: The unique name of the container name.
|
|
545
|
+
:param pulumi.Input[_builtins.str] namespace_id: The Containers namespace ID of the container.
|
|
474
546
|
|
|
475
547
|
> **Important** Updating the `name` argument will recreate the container.
|
|
476
|
-
:param pulumi.Input[int] port: The port to expose the container.
|
|
477
|
-
:param pulumi.Input[str] privacy: The privacy type defines the way to authenticate to your container. Please check our dedicated [section](https://www.scaleway.com/en/developers/api/serverless-containers/#protocol-9dd4c8).
|
|
478
|
-
:param pulumi.Input[str]
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
548
|
+
:param pulumi.Input[_builtins.int] port: The port to expose the container.
|
|
549
|
+
:param pulumi.Input[_builtins.str] privacy: The privacy type defines the way to authenticate to your container. Please check our dedicated [section](https://www.scaleway.com/en/developers/api/serverless-containers/#protocol-9dd4c8).
|
|
550
|
+
:param pulumi.Input[_builtins.str] private_network_id: The ID of the Private Network the container is connected to.
|
|
551
|
+
|
|
552
|
+
> **Important** This feature is currently in beta and requires a namespace with VPC integration activated by setting the `activate_vpc_integration` attribute to `true`.
|
|
553
|
+
|
|
554
|
+
Note that if you want to use your own configuration, you must consult our configuration [restrictions](https://www.scaleway.com/en/docs/serverless-containers/reference-content/containers-limitations/#configuration-restrictions) section.
|
|
555
|
+
:param pulumi.Input[_builtins.str] protocol: The communication [protocol](https://www.scaleway.com/en/developers/api/serverless-containers/#path-containers-update-an-existing-container) `http1` or `h2c`. Defaults to `http1`.
|
|
556
|
+
:param pulumi.Input[_builtins.str] region: (Defaults to provider `region`) The region in which the container was created.
|
|
557
|
+
:param pulumi.Input[_builtins.str] registry_image: The registry image address (e.g., `rg.fr-par.scw.cloud/$NAMESPACE/$IMAGE`)
|
|
558
|
+
:param pulumi.Input[_builtins.str] registry_sha256: The sha256 of your source registry image, changing it will re-apply the deployment. Can be any string.
|
|
559
|
+
:param pulumi.Input[_builtins.str] sandbox: Execution environment of the container.
|
|
483
560
|
:param pulumi.Input[Sequence[pulumi.Input['ContainerScalingOptionArgs']]] scaling_options: Configuration block used to decide when to scale up or down. Possible values:
|
|
484
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] secret_environment_variables: The [secret environment variables](https://www.scaleway.com/en/docs/serverless-containers/concepts/#secrets) of the container.
|
|
485
|
-
:param pulumi.Input[str] status: The container status.
|
|
486
|
-
:param pulumi.Input[
|
|
487
|
-
|
|
561
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] secret_environment_variables: The [secret environment variables](https://www.scaleway.com/en/docs/serverless-containers/concepts/#secrets) of the container.
|
|
562
|
+
:param pulumi.Input[_builtins.str] status: The container status.
|
|
563
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] tags: The list of tags associated with the container.
|
|
564
|
+
:param pulumi.Input[_builtins.int] timeout: The maximum amount of time in seconds your container can spend processing a request before being stopped. Default to `300` seconds.
|
|
565
|
+
"""
|
|
566
|
+
if args is not None:
|
|
567
|
+
pulumi.set(__self__, "args", args)
|
|
568
|
+
if commands is not None:
|
|
569
|
+
pulumi.set(__self__, "commands", commands)
|
|
488
570
|
if cpu_limit is not None:
|
|
489
571
|
pulumi.set(__self__, "cpu_limit", cpu_limit)
|
|
490
572
|
if cron_status is not None:
|
|
@@ -524,6 +606,8 @@ class _ContainerState:
|
|
|
524
606
|
pulumi.set(__self__, "port", port)
|
|
525
607
|
if privacy is not None:
|
|
526
608
|
pulumi.set(__self__, "privacy", privacy)
|
|
609
|
+
if private_network_id is not None:
|
|
610
|
+
pulumi.set(__self__, "private_network_id", private_network_id)
|
|
527
611
|
if protocol is not None:
|
|
528
612
|
pulumi.set(__self__, "protocol", protocol)
|
|
529
613
|
if region is not None:
|
|
@@ -540,94 +624,120 @@ class _ContainerState:
|
|
|
540
624
|
pulumi.set(__self__, "secret_environment_variables", secret_environment_variables)
|
|
541
625
|
if status is not None:
|
|
542
626
|
pulumi.set(__self__, "status", status)
|
|
627
|
+
if tags is not None:
|
|
628
|
+
pulumi.set(__self__, "tags", tags)
|
|
543
629
|
if timeout is not None:
|
|
544
630
|
pulumi.set(__self__, "timeout", timeout)
|
|
545
631
|
|
|
546
|
-
@property
|
|
632
|
+
@_builtins.property
|
|
633
|
+
@pulumi.getter
|
|
634
|
+
def args(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
|
|
635
|
+
"""
|
|
636
|
+
Arguments passed to the command specified in the "command" field. These override the default arguments from the container image, and behave like command-line parameters.
|
|
637
|
+
"""
|
|
638
|
+
return pulumi.get(self, "args")
|
|
639
|
+
|
|
640
|
+
@args.setter
|
|
641
|
+
def args(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
|
|
642
|
+
pulumi.set(self, "args", value)
|
|
643
|
+
|
|
644
|
+
@_builtins.property
|
|
645
|
+
@pulumi.getter
|
|
646
|
+
def commands(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
|
|
647
|
+
"""
|
|
648
|
+
Command executed when the container starts. This overrides the default command defined in the container image. This is usually the main executable, or entry point script to run.
|
|
649
|
+
"""
|
|
650
|
+
return pulumi.get(self, "commands")
|
|
651
|
+
|
|
652
|
+
@commands.setter
|
|
653
|
+
def commands(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
|
|
654
|
+
pulumi.set(self, "commands", value)
|
|
655
|
+
|
|
656
|
+
@_builtins.property
|
|
547
657
|
@pulumi.getter(name="cpuLimit")
|
|
548
|
-
def cpu_limit(self) -> Optional[pulumi.Input[int]]:
|
|
658
|
+
def cpu_limit(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
549
659
|
"""
|
|
550
660
|
The amount of vCPU computing resources to allocate to each container.
|
|
551
661
|
"""
|
|
552
662
|
return pulumi.get(self, "cpu_limit")
|
|
553
663
|
|
|
554
664
|
@cpu_limit.setter
|
|
555
|
-
def cpu_limit(self, value: Optional[pulumi.Input[int]]):
|
|
665
|
+
def cpu_limit(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
556
666
|
pulumi.set(self, "cpu_limit", value)
|
|
557
667
|
|
|
558
|
-
@property
|
|
668
|
+
@_builtins.property
|
|
559
669
|
@pulumi.getter(name="cronStatus")
|
|
560
|
-
def cron_status(self) -> Optional[pulumi.Input[str]]:
|
|
670
|
+
def cron_status(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
561
671
|
"""
|
|
562
672
|
The cron status of the container.
|
|
563
673
|
"""
|
|
564
674
|
return pulumi.get(self, "cron_status")
|
|
565
675
|
|
|
566
676
|
@cron_status.setter
|
|
567
|
-
def cron_status(self, value: Optional[pulumi.Input[str]]):
|
|
677
|
+
def cron_status(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
568
678
|
pulumi.set(self, "cron_status", value)
|
|
569
679
|
|
|
570
|
-
@property
|
|
680
|
+
@_builtins.property
|
|
571
681
|
@pulumi.getter
|
|
572
|
-
def deploy(self) -> Optional[pulumi.Input[bool]]:
|
|
682
|
+
def deploy(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
573
683
|
"""
|
|
574
684
|
Boolean indicating whether the container is in a production environment.
|
|
575
685
|
"""
|
|
576
686
|
return pulumi.get(self, "deploy")
|
|
577
687
|
|
|
578
688
|
@deploy.setter
|
|
579
|
-
def deploy(self, value: Optional[pulumi.Input[bool]]):
|
|
689
|
+
def deploy(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
580
690
|
pulumi.set(self, "deploy", value)
|
|
581
691
|
|
|
582
|
-
@property
|
|
692
|
+
@_builtins.property
|
|
583
693
|
@pulumi.getter
|
|
584
|
-
def description(self) -> Optional[pulumi.Input[str]]:
|
|
694
|
+
def description(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
585
695
|
"""
|
|
586
696
|
The description of the container.
|
|
587
697
|
"""
|
|
588
698
|
return pulumi.get(self, "description")
|
|
589
699
|
|
|
590
700
|
@description.setter
|
|
591
|
-
def description(self, value: Optional[pulumi.Input[str]]):
|
|
701
|
+
def description(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
592
702
|
pulumi.set(self, "description", value)
|
|
593
703
|
|
|
594
|
-
@property
|
|
704
|
+
@_builtins.property
|
|
595
705
|
@pulumi.getter(name="domainName")
|
|
596
|
-
def domain_name(self) -> Optional[pulumi.Input[str]]:
|
|
706
|
+
def domain_name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
597
707
|
"""
|
|
598
708
|
The native domain name of the container
|
|
599
709
|
"""
|
|
600
710
|
return pulumi.get(self, "domain_name")
|
|
601
711
|
|
|
602
712
|
@domain_name.setter
|
|
603
|
-
def domain_name(self, value: Optional[pulumi.Input[str]]):
|
|
713
|
+
def domain_name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
604
714
|
pulumi.set(self, "domain_name", value)
|
|
605
715
|
|
|
606
|
-
@property
|
|
716
|
+
@_builtins.property
|
|
607
717
|
@pulumi.getter(name="environmentVariables")
|
|
608
|
-
def environment_variables(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
|
718
|
+
def environment_variables(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]:
|
|
609
719
|
"""
|
|
610
720
|
The [environment variables](https://www.scaleway.com/en/docs/serverless-containers/concepts/#environment-variables) of the container.
|
|
611
721
|
"""
|
|
612
722
|
return pulumi.get(self, "environment_variables")
|
|
613
723
|
|
|
614
724
|
@environment_variables.setter
|
|
615
|
-
def environment_variables(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
|
|
725
|
+
def environment_variables(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]):
|
|
616
726
|
pulumi.set(self, "environment_variables", value)
|
|
617
727
|
|
|
618
|
-
@property
|
|
728
|
+
@_builtins.property
|
|
619
729
|
@pulumi.getter(name="errorMessage")
|
|
620
|
-
def error_message(self) -> Optional[pulumi.Input[str]]:
|
|
730
|
+
def error_message(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
621
731
|
"""
|
|
622
732
|
The error message of the container.
|
|
623
733
|
"""
|
|
624
734
|
return pulumi.get(self, "error_message")
|
|
625
735
|
|
|
626
736
|
@error_message.setter
|
|
627
|
-
def error_message(self, value: Optional[pulumi.Input[str]]):
|
|
737
|
+
def error_message(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
628
738
|
pulumi.set(self, "error_message", value)
|
|
629
739
|
|
|
630
|
-
@property
|
|
740
|
+
@_builtins.property
|
|
631
741
|
@pulumi.getter(name="healthChecks")
|
|
632
742
|
def health_checks(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ContainerHealthCheckArgs']]]]:
|
|
633
743
|
"""
|
|
@@ -639,96 +749,94 @@ class _ContainerState:
|
|
|
639
749
|
def health_checks(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ContainerHealthCheckArgs']]]]):
|
|
640
750
|
pulumi.set(self, "health_checks", value)
|
|
641
751
|
|
|
642
|
-
@property
|
|
752
|
+
@_builtins.property
|
|
643
753
|
@pulumi.getter(name="httpOption")
|
|
644
|
-
def http_option(self) -> Optional[pulumi.Input[str]]:
|
|
754
|
+
def http_option(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
645
755
|
"""
|
|
646
756
|
Allows both HTTP and HTTPS (`enabled`) or redirect HTTP to HTTPS (`redirected`). Defaults to `enabled`.
|
|
647
757
|
"""
|
|
648
758
|
return pulumi.get(self, "http_option")
|
|
649
759
|
|
|
650
760
|
@http_option.setter
|
|
651
|
-
def http_option(self, value: Optional[pulumi.Input[str]]):
|
|
761
|
+
def http_option(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
652
762
|
pulumi.set(self, "http_option", value)
|
|
653
763
|
|
|
654
|
-
@property
|
|
764
|
+
@_builtins.property
|
|
655
765
|
@pulumi.getter(name="localStorageLimit")
|
|
656
|
-
def local_storage_limit(self) -> Optional[pulumi.Input[int]]:
|
|
766
|
+
def local_storage_limit(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
657
767
|
"""
|
|
658
768
|
Local storage limit of the container (in MB)
|
|
659
|
-
|
|
660
|
-
Note that if you want to use your own configuration, you must consult our configuration [restrictions](https://www.scaleway.com/en/docs/serverless-containers/reference-content/containers-limitations/#configuration-restrictions) section.
|
|
661
769
|
"""
|
|
662
770
|
return pulumi.get(self, "local_storage_limit")
|
|
663
771
|
|
|
664
772
|
@local_storage_limit.setter
|
|
665
|
-
def local_storage_limit(self, value: Optional[pulumi.Input[int]]):
|
|
773
|
+
def local_storage_limit(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
666
774
|
pulumi.set(self, "local_storage_limit", value)
|
|
667
775
|
|
|
668
|
-
@property
|
|
776
|
+
@_builtins.property
|
|
669
777
|
@pulumi.getter(name="maxConcurrency")
|
|
670
778
|
@_utilities.deprecated("""Use scaling_option.concurrent_requests_threshold instead. This attribute will be removed.""")
|
|
671
|
-
def max_concurrency(self) -> Optional[pulumi.Input[int]]:
|
|
779
|
+
def max_concurrency(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
672
780
|
"""
|
|
673
781
|
The maximum number of simultaneous requests your container can handle at the same time. Use `scaling_option.concurrent_requests_threshold` instead.
|
|
674
782
|
"""
|
|
675
783
|
return pulumi.get(self, "max_concurrency")
|
|
676
784
|
|
|
677
785
|
@max_concurrency.setter
|
|
678
|
-
def max_concurrency(self, value: Optional[pulumi.Input[int]]):
|
|
786
|
+
def max_concurrency(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
679
787
|
pulumi.set(self, "max_concurrency", value)
|
|
680
788
|
|
|
681
|
-
@property
|
|
789
|
+
@_builtins.property
|
|
682
790
|
@pulumi.getter(name="maxScale")
|
|
683
|
-
def max_scale(self) -> Optional[pulumi.Input[int]]:
|
|
791
|
+
def max_scale(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
684
792
|
"""
|
|
685
793
|
The maximum number of instances this container can scale to.
|
|
686
794
|
"""
|
|
687
795
|
return pulumi.get(self, "max_scale")
|
|
688
796
|
|
|
689
797
|
@max_scale.setter
|
|
690
|
-
def max_scale(self, value: Optional[pulumi.Input[int]]):
|
|
798
|
+
def max_scale(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
691
799
|
pulumi.set(self, "max_scale", value)
|
|
692
800
|
|
|
693
|
-
@property
|
|
801
|
+
@_builtins.property
|
|
694
802
|
@pulumi.getter(name="memoryLimit")
|
|
695
|
-
def memory_limit(self) -> Optional[pulumi.Input[int]]:
|
|
803
|
+
def memory_limit(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
696
804
|
"""
|
|
697
805
|
The memory resources in MB to allocate to each container.
|
|
698
806
|
"""
|
|
699
807
|
return pulumi.get(self, "memory_limit")
|
|
700
808
|
|
|
701
809
|
@memory_limit.setter
|
|
702
|
-
def memory_limit(self, value: Optional[pulumi.Input[int]]):
|
|
810
|
+
def memory_limit(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
703
811
|
pulumi.set(self, "memory_limit", value)
|
|
704
812
|
|
|
705
|
-
@property
|
|
813
|
+
@_builtins.property
|
|
706
814
|
@pulumi.getter(name="minScale")
|
|
707
|
-
def min_scale(self) -> Optional[pulumi.Input[int]]:
|
|
815
|
+
def min_scale(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
708
816
|
"""
|
|
709
817
|
The minimum number of container instances running continuously.
|
|
710
818
|
"""
|
|
711
819
|
return pulumi.get(self, "min_scale")
|
|
712
820
|
|
|
713
821
|
@min_scale.setter
|
|
714
|
-
def min_scale(self, value: Optional[pulumi.Input[int]]):
|
|
822
|
+
def min_scale(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
715
823
|
pulumi.set(self, "min_scale", value)
|
|
716
824
|
|
|
717
|
-
@property
|
|
825
|
+
@_builtins.property
|
|
718
826
|
@pulumi.getter
|
|
719
|
-
def name(self) -> Optional[pulumi.Input[str]]:
|
|
827
|
+
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
720
828
|
"""
|
|
721
829
|
The unique name of the container name.
|
|
722
830
|
"""
|
|
723
831
|
return pulumi.get(self, "name")
|
|
724
832
|
|
|
725
833
|
@name.setter
|
|
726
|
-
def name(self, value: Optional[pulumi.Input[str]]):
|
|
834
|
+
def name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
727
835
|
pulumi.set(self, "name", value)
|
|
728
836
|
|
|
729
|
-
@property
|
|
837
|
+
@_builtins.property
|
|
730
838
|
@pulumi.getter(name="namespaceId")
|
|
731
|
-
def namespace_id(self) -> Optional[pulumi.Input[str]]:
|
|
839
|
+
def namespace_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
732
840
|
"""
|
|
733
841
|
The Containers namespace ID of the container.
|
|
734
842
|
|
|
@@ -737,94 +845,110 @@ class _ContainerState:
|
|
|
737
845
|
return pulumi.get(self, "namespace_id")
|
|
738
846
|
|
|
739
847
|
@namespace_id.setter
|
|
740
|
-
def namespace_id(self, value: Optional[pulumi.Input[str]]):
|
|
848
|
+
def namespace_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
741
849
|
pulumi.set(self, "namespace_id", value)
|
|
742
850
|
|
|
743
|
-
@property
|
|
851
|
+
@_builtins.property
|
|
744
852
|
@pulumi.getter
|
|
745
|
-
def port(self) -> Optional[pulumi.Input[int]]:
|
|
853
|
+
def port(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
746
854
|
"""
|
|
747
855
|
The port to expose the container.
|
|
748
856
|
"""
|
|
749
857
|
return pulumi.get(self, "port")
|
|
750
858
|
|
|
751
859
|
@port.setter
|
|
752
|
-
def port(self, value: Optional[pulumi.Input[int]]):
|
|
860
|
+
def port(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
753
861
|
pulumi.set(self, "port", value)
|
|
754
862
|
|
|
755
|
-
@property
|
|
863
|
+
@_builtins.property
|
|
756
864
|
@pulumi.getter
|
|
757
|
-
def privacy(self) -> Optional[pulumi.Input[str]]:
|
|
865
|
+
def privacy(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
758
866
|
"""
|
|
759
867
|
The privacy type defines the way to authenticate to your container. Please check our dedicated [section](https://www.scaleway.com/en/developers/api/serverless-containers/#protocol-9dd4c8).
|
|
760
868
|
"""
|
|
761
869
|
return pulumi.get(self, "privacy")
|
|
762
870
|
|
|
763
871
|
@privacy.setter
|
|
764
|
-
def privacy(self, value: Optional[pulumi.Input[str]]):
|
|
872
|
+
def privacy(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
765
873
|
pulumi.set(self, "privacy", value)
|
|
766
874
|
|
|
767
|
-
@property
|
|
875
|
+
@_builtins.property
|
|
876
|
+
@pulumi.getter(name="privateNetworkId")
|
|
877
|
+
def private_network_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
878
|
+
"""
|
|
879
|
+
The ID of the Private Network the container is connected to.
|
|
880
|
+
|
|
881
|
+
> **Important** This feature is currently in beta and requires a namespace with VPC integration activated by setting the `activate_vpc_integration` attribute to `true`.
|
|
882
|
+
|
|
883
|
+
Note that if you want to use your own configuration, you must consult our configuration [restrictions](https://www.scaleway.com/en/docs/serverless-containers/reference-content/containers-limitations/#configuration-restrictions) section.
|
|
884
|
+
"""
|
|
885
|
+
return pulumi.get(self, "private_network_id")
|
|
886
|
+
|
|
887
|
+
@private_network_id.setter
|
|
888
|
+
def private_network_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
889
|
+
pulumi.set(self, "private_network_id", value)
|
|
890
|
+
|
|
891
|
+
@_builtins.property
|
|
768
892
|
@pulumi.getter
|
|
769
|
-
def protocol(self) -> Optional[pulumi.Input[str]]:
|
|
893
|
+
def protocol(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
770
894
|
"""
|
|
771
895
|
The communication [protocol](https://www.scaleway.com/en/developers/api/serverless-containers/#path-containers-update-an-existing-container) `http1` or `h2c`. Defaults to `http1`.
|
|
772
896
|
"""
|
|
773
897
|
return pulumi.get(self, "protocol")
|
|
774
898
|
|
|
775
899
|
@protocol.setter
|
|
776
|
-
def protocol(self, value: Optional[pulumi.Input[str]]):
|
|
900
|
+
def protocol(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
777
901
|
pulumi.set(self, "protocol", value)
|
|
778
902
|
|
|
779
|
-
@property
|
|
903
|
+
@_builtins.property
|
|
780
904
|
@pulumi.getter
|
|
781
|
-
def region(self) -> Optional[pulumi.Input[str]]:
|
|
905
|
+
def region(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
782
906
|
"""
|
|
783
907
|
(Defaults to provider `region`) The region in which the container was created.
|
|
784
908
|
"""
|
|
785
909
|
return pulumi.get(self, "region")
|
|
786
910
|
|
|
787
911
|
@region.setter
|
|
788
|
-
def region(self, value: Optional[pulumi.Input[str]]):
|
|
912
|
+
def region(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
789
913
|
pulumi.set(self, "region", value)
|
|
790
914
|
|
|
791
|
-
@property
|
|
915
|
+
@_builtins.property
|
|
792
916
|
@pulumi.getter(name="registryImage")
|
|
793
|
-
def registry_image(self) -> Optional[pulumi.Input[str]]:
|
|
917
|
+
def registry_image(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
794
918
|
"""
|
|
795
919
|
The registry image address (e.g., `rg.fr-par.scw.cloud/$NAMESPACE/$IMAGE`)
|
|
796
920
|
"""
|
|
797
921
|
return pulumi.get(self, "registry_image")
|
|
798
922
|
|
|
799
923
|
@registry_image.setter
|
|
800
|
-
def registry_image(self, value: Optional[pulumi.Input[str]]):
|
|
924
|
+
def registry_image(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
801
925
|
pulumi.set(self, "registry_image", value)
|
|
802
926
|
|
|
803
|
-
@property
|
|
927
|
+
@_builtins.property
|
|
804
928
|
@pulumi.getter(name="registrySha256")
|
|
805
|
-
def registry_sha256(self) -> Optional[pulumi.Input[str]]:
|
|
929
|
+
def registry_sha256(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
806
930
|
"""
|
|
807
931
|
The sha256 of your source registry image, changing it will re-apply the deployment. Can be any string.
|
|
808
932
|
"""
|
|
809
933
|
return pulumi.get(self, "registry_sha256")
|
|
810
934
|
|
|
811
935
|
@registry_sha256.setter
|
|
812
|
-
def registry_sha256(self, value: Optional[pulumi.Input[str]]):
|
|
936
|
+
def registry_sha256(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
813
937
|
pulumi.set(self, "registry_sha256", value)
|
|
814
938
|
|
|
815
|
-
@property
|
|
939
|
+
@_builtins.property
|
|
816
940
|
@pulumi.getter
|
|
817
|
-
def sandbox(self) -> Optional[pulumi.Input[str]]:
|
|
941
|
+
def sandbox(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
818
942
|
"""
|
|
819
943
|
Execution environment of the container.
|
|
820
944
|
"""
|
|
821
945
|
return pulumi.get(self, "sandbox")
|
|
822
946
|
|
|
823
947
|
@sandbox.setter
|
|
824
|
-
def sandbox(self, value: Optional[pulumi.Input[str]]):
|
|
948
|
+
def sandbox(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
825
949
|
pulumi.set(self, "sandbox", value)
|
|
826
950
|
|
|
827
|
-
@property
|
|
951
|
+
@_builtins.property
|
|
828
952
|
@pulumi.getter(name="scalingOptions")
|
|
829
953
|
def scaling_options(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ContainerScalingOptionArgs']]]]:
|
|
830
954
|
"""
|
|
@@ -836,72 +960,89 @@ class _ContainerState:
|
|
|
836
960
|
def scaling_options(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ContainerScalingOptionArgs']]]]):
|
|
837
961
|
pulumi.set(self, "scaling_options", value)
|
|
838
962
|
|
|
839
|
-
@property
|
|
963
|
+
@_builtins.property
|
|
840
964
|
@pulumi.getter(name="secretEnvironmentVariables")
|
|
841
|
-
def secret_environment_variables(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
|
965
|
+
def secret_environment_variables(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]:
|
|
842
966
|
"""
|
|
843
967
|
The [secret environment variables](https://www.scaleway.com/en/docs/serverless-containers/concepts/#secrets) of the container.
|
|
844
968
|
"""
|
|
845
969
|
return pulumi.get(self, "secret_environment_variables")
|
|
846
970
|
|
|
847
971
|
@secret_environment_variables.setter
|
|
848
|
-
def secret_environment_variables(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
|
|
972
|
+
def secret_environment_variables(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]):
|
|
849
973
|
pulumi.set(self, "secret_environment_variables", value)
|
|
850
974
|
|
|
851
|
-
@property
|
|
975
|
+
@_builtins.property
|
|
852
976
|
@pulumi.getter
|
|
853
|
-
def status(self) -> Optional[pulumi.Input[str]]:
|
|
977
|
+
def status(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
854
978
|
"""
|
|
855
979
|
The container status.
|
|
856
980
|
"""
|
|
857
981
|
return pulumi.get(self, "status")
|
|
858
982
|
|
|
859
983
|
@status.setter
|
|
860
|
-
def status(self, value: Optional[pulumi.Input[str]]):
|
|
984
|
+
def status(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
861
985
|
pulumi.set(self, "status", value)
|
|
862
986
|
|
|
863
|
-
@property
|
|
987
|
+
@_builtins.property
|
|
864
988
|
@pulumi.getter
|
|
865
|
-
def
|
|
989
|
+
def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
|
|
990
|
+
"""
|
|
991
|
+
The list of tags associated with the container.
|
|
992
|
+
"""
|
|
993
|
+
return pulumi.get(self, "tags")
|
|
994
|
+
|
|
995
|
+
@tags.setter
|
|
996
|
+
def tags(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
|
|
997
|
+
pulumi.set(self, "tags", value)
|
|
998
|
+
|
|
999
|
+
@_builtins.property
|
|
1000
|
+
@pulumi.getter
|
|
1001
|
+
def timeout(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
866
1002
|
"""
|
|
867
1003
|
The maximum amount of time in seconds your container can spend processing a request before being stopped. Default to `300` seconds.
|
|
868
1004
|
"""
|
|
869
1005
|
return pulumi.get(self, "timeout")
|
|
870
1006
|
|
|
871
1007
|
@timeout.setter
|
|
872
|
-
def timeout(self, value: Optional[pulumi.Input[int]]):
|
|
1008
|
+
def timeout(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
873
1009
|
pulumi.set(self, "timeout", value)
|
|
874
1010
|
|
|
875
1011
|
|
|
1012
|
+
@pulumi.type_token("scaleway:containers/container:Container")
|
|
876
1013
|
class Container(pulumi.CustomResource):
|
|
877
1014
|
@overload
|
|
878
1015
|
def __init__(__self__,
|
|
879
1016
|
resource_name: str,
|
|
880
1017
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
1018
|
+
args: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
1019
|
+
commands: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
1020
|
+
cpu_limit: Optional[pulumi.Input[_builtins.int]] = None,
|
|
1021
|
+
deploy: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
1022
|
+
description: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1023
|
+
environment_variables: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
|
885
1024
|
health_checks: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ContainerHealthCheckArgs', 'ContainerHealthCheckArgsDict']]]]] = None,
|
|
886
|
-
http_option: Optional[pulumi.Input[str]] = None,
|
|
887
|
-
local_storage_limit: Optional[pulumi.Input[int]] = None,
|
|
888
|
-
max_concurrency: Optional[pulumi.Input[int]] = None,
|
|
889
|
-
max_scale: Optional[pulumi.Input[int]] = None,
|
|
890
|
-
memory_limit: Optional[pulumi.Input[int]] = None,
|
|
891
|
-
min_scale: Optional[pulumi.Input[int]] = None,
|
|
892
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
893
|
-
namespace_id: Optional[pulumi.Input[str]] = None,
|
|
894
|
-
port: Optional[pulumi.Input[int]] = None,
|
|
895
|
-
privacy: Optional[pulumi.Input[str]] = None,
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
1025
|
+
http_option: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1026
|
+
local_storage_limit: Optional[pulumi.Input[_builtins.int]] = None,
|
|
1027
|
+
max_concurrency: Optional[pulumi.Input[_builtins.int]] = None,
|
|
1028
|
+
max_scale: Optional[pulumi.Input[_builtins.int]] = None,
|
|
1029
|
+
memory_limit: Optional[pulumi.Input[_builtins.int]] = None,
|
|
1030
|
+
min_scale: Optional[pulumi.Input[_builtins.int]] = None,
|
|
1031
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1032
|
+
namespace_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1033
|
+
port: Optional[pulumi.Input[_builtins.int]] = None,
|
|
1034
|
+
privacy: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1035
|
+
private_network_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1036
|
+
protocol: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1037
|
+
region: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1038
|
+
registry_image: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1039
|
+
registry_sha256: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1040
|
+
sandbox: Optional[pulumi.Input[_builtins.str]] = None,
|
|
901
1041
|
scaling_options: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ContainerScalingOptionArgs', 'ContainerScalingOptionArgsDict']]]]] = None,
|
|
902
|
-
secret_environment_variables: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
903
|
-
status: Optional[pulumi.Input[str]] = None,
|
|
904
|
-
|
|
1042
|
+
secret_environment_variables: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
|
1043
|
+
status: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1044
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
1045
|
+
timeout: Optional[pulumi.Input[_builtins.int]] = None,
|
|
905
1046
|
__props__=None):
|
|
906
1047
|
"""
|
|
907
1048
|
The `containers.Container` resource allows you to create and manage [Serverless Containers](https://www.scaleway.com/en/docs/serverless/containers/).
|
|
@@ -922,6 +1063,10 @@ class Container(pulumi.CustomResource):
|
|
|
922
1063
|
main_container = scaleway.containers.Container("main",
|
|
923
1064
|
name="my-container-02",
|
|
924
1065
|
description="environment variables test",
|
|
1066
|
+
tags=[
|
|
1067
|
+
"tag1",
|
|
1068
|
+
"tag2",
|
|
1069
|
+
],
|
|
925
1070
|
namespace_id=main.id,
|
|
926
1071
|
registry_image=main.registry_endpoint.apply(lambda registry_endpoint: f"{registry_endpoint}/alpine:test"),
|
|
927
1072
|
port=9997,
|
|
@@ -934,6 +1079,15 @@ class Container(pulumi.CustomResource):
|
|
|
934
1079
|
privacy="private",
|
|
935
1080
|
protocol="http1",
|
|
936
1081
|
deploy=True,
|
|
1082
|
+
commands=[
|
|
1083
|
+
"bash",
|
|
1084
|
+
"-c",
|
|
1085
|
+
"script.sh",
|
|
1086
|
+
],
|
|
1087
|
+
args=[
|
|
1088
|
+
"some",
|
|
1089
|
+
"args",
|
|
1090
|
+
],
|
|
937
1091
|
environment_variables={
|
|
938
1092
|
"foo": "var",
|
|
939
1093
|
},
|
|
@@ -1003,7 +1157,7 @@ class Container(pulumi.CustomResource):
|
|
|
1003
1157
|
"path": "/ping",
|
|
1004
1158
|
}],
|
|
1005
1159
|
"failure_threshold": 40,
|
|
1006
|
-
"interval": "
|
|
1160
|
+
"interval": "5s",
|
|
1007
1161
|
}])
|
|
1008
1162
|
```
|
|
1009
1163
|
|
|
@@ -1046,34 +1200,40 @@ class Container(pulumi.CustomResource):
|
|
|
1046
1200
|
|
|
1047
1201
|
:param str resource_name: The name of the resource.
|
|
1048
1202
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
1049
|
-
:param pulumi.Input[
|
|
1050
|
-
:param pulumi.Input[
|
|
1051
|
-
:param pulumi.Input[
|
|
1052
|
-
:param pulumi.Input[
|
|
1203
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] args: Arguments passed to the command specified in the "command" field. These override the default arguments from the container image, and behave like command-line parameters.
|
|
1204
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] commands: Command executed when the container starts. This overrides the default command defined in the container image. This is usually the main executable, or entry point script to run.
|
|
1205
|
+
:param pulumi.Input[_builtins.int] cpu_limit: The amount of vCPU computing resources to allocate to each container.
|
|
1206
|
+
:param pulumi.Input[_builtins.bool] deploy: Boolean indicating whether the container is in a production environment.
|
|
1207
|
+
:param pulumi.Input[_builtins.str] description: The description of the container.
|
|
1208
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] environment_variables: The [environment variables](https://www.scaleway.com/en/docs/serverless-containers/concepts/#environment-variables) of the container.
|
|
1053
1209
|
:param pulumi.Input[Sequence[pulumi.Input[Union['ContainerHealthCheckArgs', 'ContainerHealthCheckArgsDict']]]] health_checks: Health check configuration block of the container.
|
|
1054
|
-
:param pulumi.Input[str] http_option: Allows both HTTP and HTTPS (`enabled`) or redirect HTTP to HTTPS (`redirected`). Defaults to `enabled`.
|
|
1055
|
-
:param pulumi.Input[int] local_storage_limit: Local storage limit of the container (in MB)
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
:param pulumi.Input[int]
|
|
1059
|
-
:param pulumi.Input[int]
|
|
1060
|
-
:param pulumi.Input[
|
|
1061
|
-
:param pulumi.Input[
|
|
1062
|
-
:param pulumi.Input[str] name: The unique name of the container name.
|
|
1063
|
-
:param pulumi.Input[str] namespace_id: The Containers namespace ID of the container.
|
|
1210
|
+
:param pulumi.Input[_builtins.str] http_option: Allows both HTTP and HTTPS (`enabled`) or redirect HTTP to HTTPS (`redirected`). Defaults to `enabled`.
|
|
1211
|
+
:param pulumi.Input[_builtins.int] local_storage_limit: Local storage limit of the container (in MB)
|
|
1212
|
+
:param pulumi.Input[_builtins.int] max_concurrency: The maximum number of simultaneous requests your container can handle at the same time. Use `scaling_option.concurrent_requests_threshold` instead.
|
|
1213
|
+
:param pulumi.Input[_builtins.int] max_scale: The maximum number of instances this container can scale to.
|
|
1214
|
+
:param pulumi.Input[_builtins.int] memory_limit: The memory resources in MB to allocate to each container.
|
|
1215
|
+
:param pulumi.Input[_builtins.int] min_scale: The minimum number of container instances running continuously.
|
|
1216
|
+
:param pulumi.Input[_builtins.str] name: The unique name of the container name.
|
|
1217
|
+
:param pulumi.Input[_builtins.str] namespace_id: The Containers namespace ID of the container.
|
|
1064
1218
|
|
|
1065
1219
|
> **Important** Updating the `name` argument will recreate the container.
|
|
1066
|
-
:param pulumi.Input[int] port: The port to expose the container.
|
|
1067
|
-
:param pulumi.Input[str] privacy: The privacy type defines the way to authenticate to your container. Please check our dedicated [section](https://www.scaleway.com/en/developers/api/serverless-containers/#protocol-9dd4c8).
|
|
1068
|
-
:param pulumi.Input[str]
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1220
|
+
:param pulumi.Input[_builtins.int] port: The port to expose the container.
|
|
1221
|
+
:param pulumi.Input[_builtins.str] privacy: The privacy type defines the way to authenticate to your container. Please check our dedicated [section](https://www.scaleway.com/en/developers/api/serverless-containers/#protocol-9dd4c8).
|
|
1222
|
+
:param pulumi.Input[_builtins.str] private_network_id: The ID of the Private Network the container is connected to.
|
|
1223
|
+
|
|
1224
|
+
> **Important** This feature is currently in beta and requires a namespace with VPC integration activated by setting the `activate_vpc_integration` attribute to `true`.
|
|
1225
|
+
|
|
1226
|
+
Note that if you want to use your own configuration, you must consult our configuration [restrictions](https://www.scaleway.com/en/docs/serverless-containers/reference-content/containers-limitations/#configuration-restrictions) section.
|
|
1227
|
+
:param pulumi.Input[_builtins.str] protocol: The communication [protocol](https://www.scaleway.com/en/developers/api/serverless-containers/#path-containers-update-an-existing-container) `http1` or `h2c`. Defaults to `http1`.
|
|
1228
|
+
:param pulumi.Input[_builtins.str] region: (Defaults to provider `region`) The region in which the container was created.
|
|
1229
|
+
:param pulumi.Input[_builtins.str] registry_image: The registry image address (e.g., `rg.fr-par.scw.cloud/$NAMESPACE/$IMAGE`)
|
|
1230
|
+
:param pulumi.Input[_builtins.str] registry_sha256: The sha256 of your source registry image, changing it will re-apply the deployment. Can be any string.
|
|
1231
|
+
:param pulumi.Input[_builtins.str] sandbox: Execution environment of the container.
|
|
1073
1232
|
:param pulumi.Input[Sequence[pulumi.Input[Union['ContainerScalingOptionArgs', 'ContainerScalingOptionArgsDict']]]] scaling_options: Configuration block used to decide when to scale up or down. Possible values:
|
|
1074
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] secret_environment_variables: The [secret environment variables](https://www.scaleway.com/en/docs/serverless-containers/concepts/#secrets) of the container.
|
|
1075
|
-
:param pulumi.Input[str] status: The container status.
|
|
1076
|
-
:param pulumi.Input[
|
|
1233
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] secret_environment_variables: The [secret environment variables](https://www.scaleway.com/en/docs/serverless-containers/concepts/#secrets) of the container.
|
|
1234
|
+
:param pulumi.Input[_builtins.str] status: The container status.
|
|
1235
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] tags: The list of tags associated with the container.
|
|
1236
|
+
:param pulumi.Input[_builtins.int] timeout: The maximum amount of time in seconds your container can spend processing a request before being stopped. Default to `300` seconds.
|
|
1077
1237
|
"""
|
|
1078
1238
|
...
|
|
1079
1239
|
@overload
|
|
@@ -1100,6 +1260,10 @@ class Container(pulumi.CustomResource):
|
|
|
1100
1260
|
main_container = scaleway.containers.Container("main",
|
|
1101
1261
|
name="my-container-02",
|
|
1102
1262
|
description="environment variables test",
|
|
1263
|
+
tags=[
|
|
1264
|
+
"tag1",
|
|
1265
|
+
"tag2",
|
|
1266
|
+
],
|
|
1103
1267
|
namespace_id=main.id,
|
|
1104
1268
|
registry_image=main.registry_endpoint.apply(lambda registry_endpoint: f"{registry_endpoint}/alpine:test"),
|
|
1105
1269
|
port=9997,
|
|
@@ -1112,6 +1276,15 @@ class Container(pulumi.CustomResource):
|
|
|
1112
1276
|
privacy="private",
|
|
1113
1277
|
protocol="http1",
|
|
1114
1278
|
deploy=True,
|
|
1279
|
+
commands=[
|
|
1280
|
+
"bash",
|
|
1281
|
+
"-c",
|
|
1282
|
+
"script.sh",
|
|
1283
|
+
],
|
|
1284
|
+
args=[
|
|
1285
|
+
"some",
|
|
1286
|
+
"args",
|
|
1287
|
+
],
|
|
1115
1288
|
environment_variables={
|
|
1116
1289
|
"foo": "var",
|
|
1117
1290
|
},
|
|
@@ -1181,7 +1354,7 @@ class Container(pulumi.CustomResource):
|
|
|
1181
1354
|
"path": "/ping",
|
|
1182
1355
|
}],
|
|
1183
1356
|
"failure_threshold": 40,
|
|
1184
|
-
"interval": "
|
|
1357
|
+
"interval": "5s",
|
|
1185
1358
|
}])
|
|
1186
1359
|
```
|
|
1187
1360
|
|
|
@@ -1237,30 +1410,34 @@ class Container(pulumi.CustomResource):
|
|
|
1237
1410
|
def _internal_init(__self__,
|
|
1238
1411
|
resource_name: str,
|
|
1239
1412
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1413
|
+
args: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
1414
|
+
commands: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
1415
|
+
cpu_limit: Optional[pulumi.Input[_builtins.int]] = None,
|
|
1416
|
+
deploy: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
1417
|
+
description: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1418
|
+
environment_variables: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
|
1244
1419
|
health_checks: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ContainerHealthCheckArgs', 'ContainerHealthCheckArgsDict']]]]] = None,
|
|
1245
|
-
http_option: Optional[pulumi.Input[str]] = None,
|
|
1246
|
-
local_storage_limit: Optional[pulumi.Input[int]] = None,
|
|
1247
|
-
max_concurrency: Optional[pulumi.Input[int]] = None,
|
|
1248
|
-
max_scale: Optional[pulumi.Input[int]] = None,
|
|
1249
|
-
memory_limit: Optional[pulumi.Input[int]] = None,
|
|
1250
|
-
min_scale: Optional[pulumi.Input[int]] = None,
|
|
1251
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
1252
|
-
namespace_id: Optional[pulumi.Input[str]] = None,
|
|
1253
|
-
port: Optional[pulumi.Input[int]] = None,
|
|
1254
|
-
privacy: Optional[pulumi.Input[str]] = None,
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1420
|
+
http_option: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1421
|
+
local_storage_limit: Optional[pulumi.Input[_builtins.int]] = None,
|
|
1422
|
+
max_concurrency: Optional[pulumi.Input[_builtins.int]] = None,
|
|
1423
|
+
max_scale: Optional[pulumi.Input[_builtins.int]] = None,
|
|
1424
|
+
memory_limit: Optional[pulumi.Input[_builtins.int]] = None,
|
|
1425
|
+
min_scale: Optional[pulumi.Input[_builtins.int]] = None,
|
|
1426
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1427
|
+
namespace_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1428
|
+
port: Optional[pulumi.Input[_builtins.int]] = None,
|
|
1429
|
+
privacy: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1430
|
+
private_network_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1431
|
+
protocol: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1432
|
+
region: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1433
|
+
registry_image: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1434
|
+
registry_sha256: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1435
|
+
sandbox: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1260
1436
|
scaling_options: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ContainerScalingOptionArgs', 'ContainerScalingOptionArgsDict']]]]] = None,
|
|
1261
|
-
secret_environment_variables: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
1262
|
-
status: Optional[pulumi.Input[str]] = None,
|
|
1263
|
-
|
|
1437
|
+
secret_environment_variables: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
|
1438
|
+
status: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1439
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
1440
|
+
timeout: Optional[pulumi.Input[_builtins.int]] = None,
|
|
1264
1441
|
__props__=None):
|
|
1265
1442
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
1266
1443
|
if not isinstance(opts, pulumi.ResourceOptions):
|
|
@@ -1270,6 +1447,8 @@ class Container(pulumi.CustomResource):
|
|
|
1270
1447
|
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
1271
1448
|
__props__ = ContainerArgs.__new__(ContainerArgs)
|
|
1272
1449
|
|
|
1450
|
+
__props__.__dict__["args"] = args
|
|
1451
|
+
__props__.__dict__["commands"] = commands
|
|
1273
1452
|
__props__.__dict__["cpu_limit"] = cpu_limit
|
|
1274
1453
|
__props__.__dict__["deploy"] = deploy
|
|
1275
1454
|
__props__.__dict__["description"] = description
|
|
@@ -1287,6 +1466,7 @@ class Container(pulumi.CustomResource):
|
|
|
1287
1466
|
__props__.__dict__["namespace_id"] = namespace_id
|
|
1288
1467
|
__props__.__dict__["port"] = port
|
|
1289
1468
|
__props__.__dict__["privacy"] = privacy
|
|
1469
|
+
__props__.__dict__["private_network_id"] = private_network_id
|
|
1290
1470
|
__props__.__dict__["protocol"] = protocol
|
|
1291
1471
|
__props__.__dict__["region"] = region
|
|
1292
1472
|
__props__.__dict__["registry_image"] = registry_image
|
|
@@ -1295,6 +1475,7 @@ class Container(pulumi.CustomResource):
|
|
|
1295
1475
|
__props__.__dict__["scaling_options"] = scaling_options
|
|
1296
1476
|
__props__.__dict__["secret_environment_variables"] = None if secret_environment_variables is None else pulumi.Output.secret(secret_environment_variables)
|
|
1297
1477
|
__props__.__dict__["status"] = status
|
|
1478
|
+
__props__.__dict__["tags"] = tags
|
|
1298
1479
|
__props__.__dict__["timeout"] = timeout
|
|
1299
1480
|
__props__.__dict__["cron_status"] = None
|
|
1300
1481
|
__props__.__dict__["domain_name"] = None
|
|
@@ -1313,33 +1494,37 @@ class Container(pulumi.CustomResource):
|
|
|
1313
1494
|
def get(resource_name: str,
|
|
1314
1495
|
id: pulumi.Input[str],
|
|
1315
1496
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1497
|
+
args: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
1498
|
+
commands: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
1499
|
+
cpu_limit: Optional[pulumi.Input[_builtins.int]] = None,
|
|
1500
|
+
cron_status: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1501
|
+
deploy: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
1502
|
+
description: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1503
|
+
domain_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1504
|
+
environment_variables: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
|
1505
|
+
error_message: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1323
1506
|
health_checks: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ContainerHealthCheckArgs', 'ContainerHealthCheckArgsDict']]]]] = None,
|
|
1324
|
-
http_option: Optional[pulumi.Input[str]] = None,
|
|
1325
|
-
local_storage_limit: Optional[pulumi.Input[int]] = None,
|
|
1326
|
-
max_concurrency: Optional[pulumi.Input[int]] = None,
|
|
1327
|
-
max_scale: Optional[pulumi.Input[int]] = None,
|
|
1328
|
-
memory_limit: Optional[pulumi.Input[int]] = None,
|
|
1329
|
-
min_scale: Optional[pulumi.Input[int]] = None,
|
|
1330
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
1331
|
-
namespace_id: Optional[pulumi.Input[str]] = None,
|
|
1332
|
-
port: Optional[pulumi.Input[int]] = None,
|
|
1333
|
-
privacy: Optional[pulumi.Input[str]] = None,
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1507
|
+
http_option: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1508
|
+
local_storage_limit: Optional[pulumi.Input[_builtins.int]] = None,
|
|
1509
|
+
max_concurrency: Optional[pulumi.Input[_builtins.int]] = None,
|
|
1510
|
+
max_scale: Optional[pulumi.Input[_builtins.int]] = None,
|
|
1511
|
+
memory_limit: Optional[pulumi.Input[_builtins.int]] = None,
|
|
1512
|
+
min_scale: Optional[pulumi.Input[_builtins.int]] = None,
|
|
1513
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1514
|
+
namespace_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1515
|
+
port: Optional[pulumi.Input[_builtins.int]] = None,
|
|
1516
|
+
privacy: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1517
|
+
private_network_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1518
|
+
protocol: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1519
|
+
region: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1520
|
+
registry_image: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1521
|
+
registry_sha256: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1522
|
+
sandbox: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1339
1523
|
scaling_options: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ContainerScalingOptionArgs', 'ContainerScalingOptionArgsDict']]]]] = None,
|
|
1340
|
-
secret_environment_variables: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
1341
|
-
status: Optional[pulumi.Input[str]] = None,
|
|
1342
|
-
|
|
1524
|
+
secret_environment_variables: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
|
1525
|
+
status: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1526
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
1527
|
+
timeout: Optional[pulumi.Input[_builtins.int]] = None) -> 'Container':
|
|
1343
1528
|
"""
|
|
1344
1529
|
Get an existing Container resource's state with the given name, id, and optional extra
|
|
1345
1530
|
properties used to qualify the lookup.
|
|
@@ -1347,42 +1532,50 @@ class Container(pulumi.CustomResource):
|
|
|
1347
1532
|
:param str resource_name: The unique name of the resulting resource.
|
|
1348
1533
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
1349
1534
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
1350
|
-
:param pulumi.Input[
|
|
1351
|
-
:param pulumi.Input[str]
|
|
1352
|
-
:param pulumi.Input[
|
|
1353
|
-
:param pulumi.Input[str]
|
|
1354
|
-
:param pulumi.Input[
|
|
1355
|
-
:param pulumi.Input[
|
|
1356
|
-
:param pulumi.Input[str]
|
|
1535
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] args: Arguments passed to the command specified in the "command" field. These override the default arguments from the container image, and behave like command-line parameters.
|
|
1536
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] commands: Command executed when the container starts. This overrides the default command defined in the container image. This is usually the main executable, or entry point script to run.
|
|
1537
|
+
:param pulumi.Input[_builtins.int] cpu_limit: The amount of vCPU computing resources to allocate to each container.
|
|
1538
|
+
:param pulumi.Input[_builtins.str] cron_status: The cron status of the container.
|
|
1539
|
+
:param pulumi.Input[_builtins.bool] deploy: Boolean indicating whether the container is in a production environment.
|
|
1540
|
+
:param pulumi.Input[_builtins.str] description: The description of the container.
|
|
1541
|
+
:param pulumi.Input[_builtins.str] domain_name: The native domain name of the container
|
|
1542
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] environment_variables: The [environment variables](https://www.scaleway.com/en/docs/serverless-containers/concepts/#environment-variables) of the container.
|
|
1543
|
+
:param pulumi.Input[_builtins.str] error_message: The error message of the container.
|
|
1357
1544
|
:param pulumi.Input[Sequence[pulumi.Input[Union['ContainerHealthCheckArgs', 'ContainerHealthCheckArgsDict']]]] health_checks: Health check configuration block of the container.
|
|
1358
|
-
:param pulumi.Input[str] http_option: Allows both HTTP and HTTPS (`enabled`) or redirect HTTP to HTTPS (`redirected`). Defaults to `enabled`.
|
|
1359
|
-
:param pulumi.Input[int] local_storage_limit: Local storage limit of the container (in MB)
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
:param pulumi.Input[int]
|
|
1363
|
-
:param pulumi.Input[int]
|
|
1364
|
-
:param pulumi.Input[
|
|
1365
|
-
:param pulumi.Input[
|
|
1366
|
-
:param pulumi.Input[str] name: The unique name of the container name.
|
|
1367
|
-
:param pulumi.Input[str] namespace_id: The Containers namespace ID of the container.
|
|
1545
|
+
:param pulumi.Input[_builtins.str] http_option: Allows both HTTP and HTTPS (`enabled`) or redirect HTTP to HTTPS (`redirected`). Defaults to `enabled`.
|
|
1546
|
+
:param pulumi.Input[_builtins.int] local_storage_limit: Local storage limit of the container (in MB)
|
|
1547
|
+
:param pulumi.Input[_builtins.int] max_concurrency: The maximum number of simultaneous requests your container can handle at the same time. Use `scaling_option.concurrent_requests_threshold` instead.
|
|
1548
|
+
:param pulumi.Input[_builtins.int] max_scale: The maximum number of instances this container can scale to.
|
|
1549
|
+
:param pulumi.Input[_builtins.int] memory_limit: The memory resources in MB to allocate to each container.
|
|
1550
|
+
:param pulumi.Input[_builtins.int] min_scale: The minimum number of container instances running continuously.
|
|
1551
|
+
:param pulumi.Input[_builtins.str] name: The unique name of the container name.
|
|
1552
|
+
:param pulumi.Input[_builtins.str] namespace_id: The Containers namespace ID of the container.
|
|
1368
1553
|
|
|
1369
1554
|
> **Important** Updating the `name` argument will recreate the container.
|
|
1370
|
-
:param pulumi.Input[int] port: The port to expose the container.
|
|
1371
|
-
:param pulumi.Input[str] privacy: The privacy type defines the way to authenticate to your container. Please check our dedicated [section](https://www.scaleway.com/en/developers/api/serverless-containers/#protocol-9dd4c8).
|
|
1372
|
-
:param pulumi.Input[str]
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1555
|
+
:param pulumi.Input[_builtins.int] port: The port to expose the container.
|
|
1556
|
+
:param pulumi.Input[_builtins.str] privacy: The privacy type defines the way to authenticate to your container. Please check our dedicated [section](https://www.scaleway.com/en/developers/api/serverless-containers/#protocol-9dd4c8).
|
|
1557
|
+
:param pulumi.Input[_builtins.str] private_network_id: The ID of the Private Network the container is connected to.
|
|
1558
|
+
|
|
1559
|
+
> **Important** This feature is currently in beta and requires a namespace with VPC integration activated by setting the `activate_vpc_integration` attribute to `true`.
|
|
1560
|
+
|
|
1561
|
+
Note that if you want to use your own configuration, you must consult our configuration [restrictions](https://www.scaleway.com/en/docs/serverless-containers/reference-content/containers-limitations/#configuration-restrictions) section.
|
|
1562
|
+
:param pulumi.Input[_builtins.str] protocol: The communication [protocol](https://www.scaleway.com/en/developers/api/serverless-containers/#path-containers-update-an-existing-container) `http1` or `h2c`. Defaults to `http1`.
|
|
1563
|
+
:param pulumi.Input[_builtins.str] region: (Defaults to provider `region`) The region in which the container was created.
|
|
1564
|
+
:param pulumi.Input[_builtins.str] registry_image: The registry image address (e.g., `rg.fr-par.scw.cloud/$NAMESPACE/$IMAGE`)
|
|
1565
|
+
:param pulumi.Input[_builtins.str] registry_sha256: The sha256 of your source registry image, changing it will re-apply the deployment. Can be any string.
|
|
1566
|
+
:param pulumi.Input[_builtins.str] sandbox: Execution environment of the container.
|
|
1377
1567
|
:param pulumi.Input[Sequence[pulumi.Input[Union['ContainerScalingOptionArgs', 'ContainerScalingOptionArgsDict']]]] scaling_options: Configuration block used to decide when to scale up or down. Possible values:
|
|
1378
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] secret_environment_variables: The [secret environment variables](https://www.scaleway.com/en/docs/serverless-containers/concepts/#secrets) of the container.
|
|
1379
|
-
:param pulumi.Input[str] status: The container status.
|
|
1380
|
-
:param pulumi.Input[
|
|
1568
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] secret_environment_variables: The [secret environment variables](https://www.scaleway.com/en/docs/serverless-containers/concepts/#secrets) of the container.
|
|
1569
|
+
:param pulumi.Input[_builtins.str] status: The container status.
|
|
1570
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] tags: The list of tags associated with the container.
|
|
1571
|
+
:param pulumi.Input[_builtins.int] timeout: The maximum amount of time in seconds your container can spend processing a request before being stopped. Default to `300` seconds.
|
|
1381
1572
|
"""
|
|
1382
1573
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
1383
1574
|
|
|
1384
1575
|
__props__ = _ContainerState.__new__(_ContainerState)
|
|
1385
1576
|
|
|
1577
|
+
__props__.__dict__["args"] = args
|
|
1578
|
+
__props__.__dict__["commands"] = commands
|
|
1386
1579
|
__props__.__dict__["cpu_limit"] = cpu_limit
|
|
1387
1580
|
__props__.__dict__["cron_status"] = cron_status
|
|
1388
1581
|
__props__.__dict__["deploy"] = deploy
|
|
@@ -1401,6 +1594,7 @@ class Container(pulumi.CustomResource):
|
|
|
1401
1594
|
__props__.__dict__["namespace_id"] = namespace_id
|
|
1402
1595
|
__props__.__dict__["port"] = port
|
|
1403
1596
|
__props__.__dict__["privacy"] = privacy
|
|
1597
|
+
__props__.__dict__["private_network_id"] = private_network_id
|
|
1404
1598
|
__props__.__dict__["protocol"] = protocol
|
|
1405
1599
|
__props__.__dict__["region"] = region
|
|
1406
1600
|
__props__.__dict__["registry_image"] = registry_image
|
|
@@ -1409,66 +1603,83 @@ class Container(pulumi.CustomResource):
|
|
|
1409
1603
|
__props__.__dict__["scaling_options"] = scaling_options
|
|
1410
1604
|
__props__.__dict__["secret_environment_variables"] = secret_environment_variables
|
|
1411
1605
|
__props__.__dict__["status"] = status
|
|
1606
|
+
__props__.__dict__["tags"] = tags
|
|
1412
1607
|
__props__.__dict__["timeout"] = timeout
|
|
1413
1608
|
return Container(resource_name, opts=opts, __props__=__props__)
|
|
1414
1609
|
|
|
1415
|
-
@property
|
|
1610
|
+
@_builtins.property
|
|
1611
|
+
@pulumi.getter
|
|
1612
|
+
def args(self) -> pulumi.Output[Optional[Sequence[_builtins.str]]]:
|
|
1613
|
+
"""
|
|
1614
|
+
Arguments passed to the command specified in the "command" field. These override the default arguments from the container image, and behave like command-line parameters.
|
|
1615
|
+
"""
|
|
1616
|
+
return pulumi.get(self, "args")
|
|
1617
|
+
|
|
1618
|
+
@_builtins.property
|
|
1619
|
+
@pulumi.getter
|
|
1620
|
+
def commands(self) -> pulumi.Output[Optional[Sequence[_builtins.str]]]:
|
|
1621
|
+
"""
|
|
1622
|
+
Command executed when the container starts. This overrides the default command defined in the container image. This is usually the main executable, or entry point script to run.
|
|
1623
|
+
"""
|
|
1624
|
+
return pulumi.get(self, "commands")
|
|
1625
|
+
|
|
1626
|
+
@_builtins.property
|
|
1416
1627
|
@pulumi.getter(name="cpuLimit")
|
|
1417
|
-
def cpu_limit(self) -> pulumi.Output[int]:
|
|
1628
|
+
def cpu_limit(self) -> pulumi.Output[_builtins.int]:
|
|
1418
1629
|
"""
|
|
1419
1630
|
The amount of vCPU computing resources to allocate to each container.
|
|
1420
1631
|
"""
|
|
1421
1632
|
return pulumi.get(self, "cpu_limit")
|
|
1422
1633
|
|
|
1423
|
-
@property
|
|
1634
|
+
@_builtins.property
|
|
1424
1635
|
@pulumi.getter(name="cronStatus")
|
|
1425
|
-
def cron_status(self) -> pulumi.Output[str]:
|
|
1636
|
+
def cron_status(self) -> pulumi.Output[_builtins.str]:
|
|
1426
1637
|
"""
|
|
1427
1638
|
The cron status of the container.
|
|
1428
1639
|
"""
|
|
1429
1640
|
return pulumi.get(self, "cron_status")
|
|
1430
1641
|
|
|
1431
|
-
@property
|
|
1642
|
+
@_builtins.property
|
|
1432
1643
|
@pulumi.getter
|
|
1433
|
-
def deploy(self) -> pulumi.Output[Optional[bool]]:
|
|
1644
|
+
def deploy(self) -> pulumi.Output[Optional[_builtins.bool]]:
|
|
1434
1645
|
"""
|
|
1435
1646
|
Boolean indicating whether the container is in a production environment.
|
|
1436
1647
|
"""
|
|
1437
1648
|
return pulumi.get(self, "deploy")
|
|
1438
1649
|
|
|
1439
|
-
@property
|
|
1650
|
+
@_builtins.property
|
|
1440
1651
|
@pulumi.getter
|
|
1441
|
-
def description(self) -> pulumi.Output[Optional[str]]:
|
|
1652
|
+
def description(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
1442
1653
|
"""
|
|
1443
1654
|
The description of the container.
|
|
1444
1655
|
"""
|
|
1445
1656
|
return pulumi.get(self, "description")
|
|
1446
1657
|
|
|
1447
|
-
@property
|
|
1658
|
+
@_builtins.property
|
|
1448
1659
|
@pulumi.getter(name="domainName")
|
|
1449
|
-
def domain_name(self) -> pulumi.Output[str]:
|
|
1660
|
+
def domain_name(self) -> pulumi.Output[_builtins.str]:
|
|
1450
1661
|
"""
|
|
1451
1662
|
The native domain name of the container
|
|
1452
1663
|
"""
|
|
1453
1664
|
return pulumi.get(self, "domain_name")
|
|
1454
1665
|
|
|
1455
|
-
@property
|
|
1666
|
+
@_builtins.property
|
|
1456
1667
|
@pulumi.getter(name="environmentVariables")
|
|
1457
|
-
def environment_variables(self) -> pulumi.Output[Mapping[str, str]]:
|
|
1668
|
+
def environment_variables(self) -> pulumi.Output[Mapping[str, _builtins.str]]:
|
|
1458
1669
|
"""
|
|
1459
1670
|
The [environment variables](https://www.scaleway.com/en/docs/serverless-containers/concepts/#environment-variables) of the container.
|
|
1460
1671
|
"""
|
|
1461
1672
|
return pulumi.get(self, "environment_variables")
|
|
1462
1673
|
|
|
1463
|
-
@property
|
|
1674
|
+
@_builtins.property
|
|
1464
1675
|
@pulumi.getter(name="errorMessage")
|
|
1465
|
-
def error_message(self) -> pulumi.Output[str]:
|
|
1676
|
+
def error_message(self) -> pulumi.Output[_builtins.str]:
|
|
1466
1677
|
"""
|
|
1467
1678
|
The error message of the container.
|
|
1468
1679
|
"""
|
|
1469
1680
|
return pulumi.get(self, "error_message")
|
|
1470
1681
|
|
|
1471
|
-
@property
|
|
1682
|
+
@_builtins.property
|
|
1472
1683
|
@pulumi.getter(name="healthChecks")
|
|
1473
1684
|
def health_checks(self) -> pulumi.Output[Sequence['outputs.ContainerHealthCheck']]:
|
|
1474
1685
|
"""
|
|
@@ -1476,68 +1687,66 @@ class Container(pulumi.CustomResource):
|
|
|
1476
1687
|
"""
|
|
1477
1688
|
return pulumi.get(self, "health_checks")
|
|
1478
1689
|
|
|
1479
|
-
@property
|
|
1690
|
+
@_builtins.property
|
|
1480
1691
|
@pulumi.getter(name="httpOption")
|
|
1481
|
-
def http_option(self) -> pulumi.Output[Optional[str]]:
|
|
1692
|
+
def http_option(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
1482
1693
|
"""
|
|
1483
1694
|
Allows both HTTP and HTTPS (`enabled`) or redirect HTTP to HTTPS (`redirected`). Defaults to `enabled`.
|
|
1484
1695
|
"""
|
|
1485
1696
|
return pulumi.get(self, "http_option")
|
|
1486
1697
|
|
|
1487
|
-
@property
|
|
1698
|
+
@_builtins.property
|
|
1488
1699
|
@pulumi.getter(name="localStorageLimit")
|
|
1489
|
-
def local_storage_limit(self) -> pulumi.Output[int]:
|
|
1700
|
+
def local_storage_limit(self) -> pulumi.Output[_builtins.int]:
|
|
1490
1701
|
"""
|
|
1491
1702
|
Local storage limit of the container (in MB)
|
|
1492
|
-
|
|
1493
|
-
Note that if you want to use your own configuration, you must consult our configuration [restrictions](https://www.scaleway.com/en/docs/serverless-containers/reference-content/containers-limitations/#configuration-restrictions) section.
|
|
1494
1703
|
"""
|
|
1495
1704
|
return pulumi.get(self, "local_storage_limit")
|
|
1496
1705
|
|
|
1497
|
-
@property
|
|
1706
|
+
@_builtins.property
|
|
1498
1707
|
@pulumi.getter(name="maxConcurrency")
|
|
1499
1708
|
@_utilities.deprecated("""Use scaling_option.concurrent_requests_threshold instead. This attribute will be removed.""")
|
|
1500
|
-
def max_concurrency(self) -> pulumi.Output[int]:
|
|
1709
|
+
def max_concurrency(self) -> pulumi.Output[_builtins.int]:
|
|
1501
1710
|
"""
|
|
1502
1711
|
The maximum number of simultaneous requests your container can handle at the same time. Use `scaling_option.concurrent_requests_threshold` instead.
|
|
1503
1712
|
"""
|
|
1504
1713
|
return pulumi.get(self, "max_concurrency")
|
|
1505
1714
|
|
|
1506
|
-
@property
|
|
1715
|
+
@_builtins.property
|
|
1507
1716
|
@pulumi.getter(name="maxScale")
|
|
1508
|
-
def max_scale(self) -> pulumi.Output[int]:
|
|
1717
|
+
def max_scale(self) -> pulumi.Output[_builtins.int]:
|
|
1509
1718
|
"""
|
|
1510
1719
|
The maximum number of instances this container can scale to.
|
|
1511
1720
|
"""
|
|
1512
1721
|
return pulumi.get(self, "max_scale")
|
|
1513
1722
|
|
|
1514
|
-
@property
|
|
1723
|
+
@_builtins.property
|
|
1515
1724
|
@pulumi.getter(name="memoryLimit")
|
|
1516
|
-
def memory_limit(self) -> pulumi.Output[int]:
|
|
1725
|
+
def memory_limit(self) -> pulumi.Output[_builtins.int]:
|
|
1517
1726
|
"""
|
|
1518
1727
|
The memory resources in MB to allocate to each container.
|
|
1519
1728
|
"""
|
|
1520
1729
|
return pulumi.get(self, "memory_limit")
|
|
1521
1730
|
|
|
1522
|
-
@property
|
|
1731
|
+
@_builtins.property
|
|
1523
1732
|
@pulumi.getter(name="minScale")
|
|
1524
|
-
def min_scale(self) -> pulumi.Output[int]:
|
|
1733
|
+
def min_scale(self) -> pulumi.Output[_builtins.int]:
|
|
1525
1734
|
"""
|
|
1526
1735
|
The minimum number of container instances running continuously.
|
|
1527
1736
|
"""
|
|
1528
1737
|
return pulumi.get(self, "min_scale")
|
|
1529
1738
|
|
|
1530
|
-
@property
|
|
1739
|
+
@_builtins.property
|
|
1531
1740
|
@pulumi.getter
|
|
1532
|
-
def name(self) -> pulumi.Output[str]:
|
|
1741
|
+
def name(self) -> pulumi.Output[_builtins.str]:
|
|
1533
1742
|
"""
|
|
1534
1743
|
The unique name of the container name.
|
|
1535
1744
|
"""
|
|
1536
1745
|
return pulumi.get(self, "name")
|
|
1537
1746
|
|
|
1538
|
-
@property
|
|
1747
|
+
@_builtins.property
|
|
1539
1748
|
@pulumi.getter(name="namespaceId")
|
|
1540
|
-
def namespace_id(self) -> pulumi.Output[str]:
|
|
1749
|
+
def namespace_id(self) -> pulumi.Output[_builtins.str]:
|
|
1541
1750
|
"""
|
|
1542
1751
|
The Containers namespace ID of the container.
|
|
1543
1752
|
|
|
@@ -1545,63 +1754,75 @@ class Container(pulumi.CustomResource):
|
|
|
1545
1754
|
"""
|
|
1546
1755
|
return pulumi.get(self, "namespace_id")
|
|
1547
1756
|
|
|
1548
|
-
@property
|
|
1757
|
+
@_builtins.property
|
|
1549
1758
|
@pulumi.getter
|
|
1550
|
-
def port(self) -> pulumi.Output[int]:
|
|
1759
|
+
def port(self) -> pulumi.Output[_builtins.int]:
|
|
1551
1760
|
"""
|
|
1552
1761
|
The port to expose the container.
|
|
1553
1762
|
"""
|
|
1554
1763
|
return pulumi.get(self, "port")
|
|
1555
1764
|
|
|
1556
|
-
@property
|
|
1765
|
+
@_builtins.property
|
|
1557
1766
|
@pulumi.getter
|
|
1558
|
-
def privacy(self) -> pulumi.Output[Optional[str]]:
|
|
1767
|
+
def privacy(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
1559
1768
|
"""
|
|
1560
1769
|
The privacy type defines the way to authenticate to your container. Please check our dedicated [section](https://www.scaleway.com/en/developers/api/serverless-containers/#protocol-9dd4c8).
|
|
1561
1770
|
"""
|
|
1562
1771
|
return pulumi.get(self, "privacy")
|
|
1563
1772
|
|
|
1564
|
-
@property
|
|
1773
|
+
@_builtins.property
|
|
1774
|
+
@pulumi.getter(name="privateNetworkId")
|
|
1775
|
+
def private_network_id(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
1776
|
+
"""
|
|
1777
|
+
The ID of the Private Network the container is connected to.
|
|
1778
|
+
|
|
1779
|
+
> **Important** This feature is currently in beta and requires a namespace with VPC integration activated by setting the `activate_vpc_integration` attribute to `true`.
|
|
1780
|
+
|
|
1781
|
+
Note that if you want to use your own configuration, you must consult our configuration [restrictions](https://www.scaleway.com/en/docs/serverless-containers/reference-content/containers-limitations/#configuration-restrictions) section.
|
|
1782
|
+
"""
|
|
1783
|
+
return pulumi.get(self, "private_network_id")
|
|
1784
|
+
|
|
1785
|
+
@_builtins.property
|
|
1565
1786
|
@pulumi.getter
|
|
1566
|
-
def protocol(self) -> pulumi.Output[Optional[str]]:
|
|
1787
|
+
def protocol(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
1567
1788
|
"""
|
|
1568
1789
|
The communication [protocol](https://www.scaleway.com/en/developers/api/serverless-containers/#path-containers-update-an-existing-container) `http1` or `h2c`. Defaults to `http1`.
|
|
1569
1790
|
"""
|
|
1570
1791
|
return pulumi.get(self, "protocol")
|
|
1571
1792
|
|
|
1572
|
-
@property
|
|
1793
|
+
@_builtins.property
|
|
1573
1794
|
@pulumi.getter
|
|
1574
|
-
def region(self) -> pulumi.Output[str]:
|
|
1795
|
+
def region(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
1575
1796
|
"""
|
|
1576
1797
|
(Defaults to provider `region`) The region in which the container was created.
|
|
1577
1798
|
"""
|
|
1578
1799
|
return pulumi.get(self, "region")
|
|
1579
1800
|
|
|
1580
|
-
@property
|
|
1801
|
+
@_builtins.property
|
|
1581
1802
|
@pulumi.getter(name="registryImage")
|
|
1582
|
-
def registry_image(self) -> pulumi.Output[str]:
|
|
1803
|
+
def registry_image(self) -> pulumi.Output[_builtins.str]:
|
|
1583
1804
|
"""
|
|
1584
1805
|
The registry image address (e.g., `rg.fr-par.scw.cloud/$NAMESPACE/$IMAGE`)
|
|
1585
1806
|
"""
|
|
1586
1807
|
return pulumi.get(self, "registry_image")
|
|
1587
1808
|
|
|
1588
|
-
@property
|
|
1809
|
+
@_builtins.property
|
|
1589
1810
|
@pulumi.getter(name="registrySha256")
|
|
1590
|
-
def registry_sha256(self) -> pulumi.Output[Optional[str]]:
|
|
1811
|
+
def registry_sha256(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
1591
1812
|
"""
|
|
1592
1813
|
The sha256 of your source registry image, changing it will re-apply the deployment. Can be any string.
|
|
1593
1814
|
"""
|
|
1594
1815
|
return pulumi.get(self, "registry_sha256")
|
|
1595
1816
|
|
|
1596
|
-
@property
|
|
1817
|
+
@_builtins.property
|
|
1597
1818
|
@pulumi.getter
|
|
1598
|
-
def sandbox(self) -> pulumi.Output[str]:
|
|
1819
|
+
def sandbox(self) -> pulumi.Output[_builtins.str]:
|
|
1599
1820
|
"""
|
|
1600
1821
|
Execution environment of the container.
|
|
1601
1822
|
"""
|
|
1602
1823
|
return pulumi.get(self, "sandbox")
|
|
1603
1824
|
|
|
1604
|
-
@property
|
|
1825
|
+
@_builtins.property
|
|
1605
1826
|
@pulumi.getter(name="scalingOptions")
|
|
1606
1827
|
def scaling_options(self) -> pulumi.Output[Sequence['outputs.ContainerScalingOption']]:
|
|
1607
1828
|
"""
|
|
@@ -1609,25 +1830,33 @@ class Container(pulumi.CustomResource):
|
|
|
1609
1830
|
"""
|
|
1610
1831
|
return pulumi.get(self, "scaling_options")
|
|
1611
1832
|
|
|
1612
|
-
@property
|
|
1833
|
+
@_builtins.property
|
|
1613
1834
|
@pulumi.getter(name="secretEnvironmentVariables")
|
|
1614
|
-
def secret_environment_variables(self) -> pulumi.Output[Optional[Mapping[str, str]]]:
|
|
1835
|
+
def secret_environment_variables(self) -> pulumi.Output[Optional[Mapping[str, _builtins.str]]]:
|
|
1615
1836
|
"""
|
|
1616
1837
|
The [secret environment variables](https://www.scaleway.com/en/docs/serverless-containers/concepts/#secrets) of the container.
|
|
1617
1838
|
"""
|
|
1618
1839
|
return pulumi.get(self, "secret_environment_variables")
|
|
1619
1840
|
|
|
1620
|
-
@property
|
|
1841
|
+
@_builtins.property
|
|
1621
1842
|
@pulumi.getter
|
|
1622
|
-
def status(self) -> pulumi.Output[str]:
|
|
1843
|
+
def status(self) -> pulumi.Output[_builtins.str]:
|
|
1623
1844
|
"""
|
|
1624
1845
|
The container status.
|
|
1625
1846
|
"""
|
|
1626
1847
|
return pulumi.get(self, "status")
|
|
1627
1848
|
|
|
1628
|
-
@property
|
|
1849
|
+
@_builtins.property
|
|
1850
|
+
@pulumi.getter
|
|
1851
|
+
def tags(self) -> pulumi.Output[Optional[Sequence[_builtins.str]]]:
|
|
1852
|
+
"""
|
|
1853
|
+
The list of tags associated with the container.
|
|
1854
|
+
"""
|
|
1855
|
+
return pulumi.get(self, "tags")
|
|
1856
|
+
|
|
1857
|
+
@_builtins.property
|
|
1629
1858
|
@pulumi.getter
|
|
1630
|
-
def timeout(self) -> pulumi.Output[int]:
|
|
1859
|
+
def timeout(self) -> pulumi.Output[_builtins.int]:
|
|
1631
1860
|
"""
|
|
1632
1861
|
The maximum amount of time in seconds your container can spend processing a request before being stopped. Default to `300` seconds.
|
|
1633
1862
|
"""
|