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,46 +960,59 @@ 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
|
|
|
876
1012
|
warnings.warn("""scaleway.index/container.Container has been deprecated in favor of scaleway.containers/container.Container""", DeprecationWarning)
|
|
877
1013
|
|
|
878
1014
|
|
|
1015
|
+
@pulumi.type_token("scaleway:index/container:Container")
|
|
879
1016
|
class Container(pulumi.CustomResource):
|
|
880
1017
|
warnings.warn("""scaleway.index/container.Container has been deprecated in favor of scaleway.containers/container.Container""", DeprecationWarning)
|
|
881
1018
|
|
|
@@ -883,30 +1020,34 @@ class Container(pulumi.CustomResource):
|
|
|
883
1020
|
def __init__(__self__,
|
|
884
1021
|
resource_name: str,
|
|
885
1022
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
1023
|
+
args: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
1024
|
+
commands: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
1025
|
+
cpu_limit: Optional[pulumi.Input[_builtins.int]] = None,
|
|
1026
|
+
deploy: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
1027
|
+
description: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1028
|
+
environment_variables: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
|
890
1029
|
health_checks: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ContainerHealthCheckArgs', 'ContainerHealthCheckArgsDict']]]]] = None,
|
|
891
|
-
http_option: Optional[pulumi.Input[str]] = None,
|
|
892
|
-
local_storage_limit: Optional[pulumi.Input[int]] = None,
|
|
893
|
-
max_concurrency: Optional[pulumi.Input[int]] = None,
|
|
894
|
-
max_scale: Optional[pulumi.Input[int]] = None,
|
|
895
|
-
memory_limit: Optional[pulumi.Input[int]] = None,
|
|
896
|
-
min_scale: Optional[pulumi.Input[int]] = None,
|
|
897
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
898
|
-
namespace_id: Optional[pulumi.Input[str]] = None,
|
|
899
|
-
port: Optional[pulumi.Input[int]] = None,
|
|
900
|
-
privacy: Optional[pulumi.Input[str]] = None,
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
1030
|
+
http_option: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1031
|
+
local_storage_limit: Optional[pulumi.Input[_builtins.int]] = None,
|
|
1032
|
+
max_concurrency: Optional[pulumi.Input[_builtins.int]] = None,
|
|
1033
|
+
max_scale: Optional[pulumi.Input[_builtins.int]] = None,
|
|
1034
|
+
memory_limit: Optional[pulumi.Input[_builtins.int]] = None,
|
|
1035
|
+
min_scale: Optional[pulumi.Input[_builtins.int]] = None,
|
|
1036
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1037
|
+
namespace_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1038
|
+
port: Optional[pulumi.Input[_builtins.int]] = None,
|
|
1039
|
+
privacy: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1040
|
+
private_network_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1041
|
+
protocol: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1042
|
+
region: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1043
|
+
registry_image: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1044
|
+
registry_sha256: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1045
|
+
sandbox: Optional[pulumi.Input[_builtins.str]] = None,
|
|
906
1046
|
scaling_options: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ContainerScalingOptionArgs', 'ContainerScalingOptionArgsDict']]]]] = None,
|
|
907
|
-
secret_environment_variables: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
908
|
-
status: Optional[pulumi.Input[str]] = None,
|
|
909
|
-
|
|
1047
|
+
secret_environment_variables: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
|
1048
|
+
status: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1049
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
1050
|
+
timeout: Optional[pulumi.Input[_builtins.int]] = None,
|
|
910
1051
|
__props__=None):
|
|
911
1052
|
"""
|
|
912
1053
|
The `containers.Container` resource allows you to create and manage [Serverless Containers](https://www.scaleway.com/en/docs/serverless/containers/).
|
|
@@ -927,6 +1068,10 @@ class Container(pulumi.CustomResource):
|
|
|
927
1068
|
main_container = scaleway.containers.Container("main",
|
|
928
1069
|
name="my-container-02",
|
|
929
1070
|
description="environment variables test",
|
|
1071
|
+
tags=[
|
|
1072
|
+
"tag1",
|
|
1073
|
+
"tag2",
|
|
1074
|
+
],
|
|
930
1075
|
namespace_id=main.id,
|
|
931
1076
|
registry_image=main.registry_endpoint.apply(lambda registry_endpoint: f"{registry_endpoint}/alpine:test"),
|
|
932
1077
|
port=9997,
|
|
@@ -939,6 +1084,15 @@ class Container(pulumi.CustomResource):
|
|
|
939
1084
|
privacy="private",
|
|
940
1085
|
protocol="http1",
|
|
941
1086
|
deploy=True,
|
|
1087
|
+
commands=[
|
|
1088
|
+
"bash",
|
|
1089
|
+
"-c",
|
|
1090
|
+
"script.sh",
|
|
1091
|
+
],
|
|
1092
|
+
args=[
|
|
1093
|
+
"some",
|
|
1094
|
+
"args",
|
|
1095
|
+
],
|
|
942
1096
|
environment_variables={
|
|
943
1097
|
"foo": "var",
|
|
944
1098
|
},
|
|
@@ -1008,7 +1162,7 @@ class Container(pulumi.CustomResource):
|
|
|
1008
1162
|
"path": "/ping",
|
|
1009
1163
|
}],
|
|
1010
1164
|
"failure_threshold": 40,
|
|
1011
|
-
"interval": "
|
|
1165
|
+
"interval": "5s",
|
|
1012
1166
|
}])
|
|
1013
1167
|
```
|
|
1014
1168
|
|
|
@@ -1051,34 +1205,40 @@ class Container(pulumi.CustomResource):
|
|
|
1051
1205
|
|
|
1052
1206
|
:param str resource_name: The name of the resource.
|
|
1053
1207
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
1054
|
-
:param pulumi.Input[
|
|
1055
|
-
:param pulumi.Input[
|
|
1056
|
-
:param pulumi.Input[
|
|
1057
|
-
:param pulumi.Input[
|
|
1208
|
+
: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.
|
|
1209
|
+
: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.
|
|
1210
|
+
:param pulumi.Input[_builtins.int] cpu_limit: The amount of vCPU computing resources to allocate to each container.
|
|
1211
|
+
:param pulumi.Input[_builtins.bool] deploy: Boolean indicating whether the container is in a production environment.
|
|
1212
|
+
:param pulumi.Input[_builtins.str] description: The description of the container.
|
|
1213
|
+
: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.
|
|
1058
1214
|
:param pulumi.Input[Sequence[pulumi.Input[Union['ContainerHealthCheckArgs', 'ContainerHealthCheckArgsDict']]]] health_checks: Health check configuration block of the container.
|
|
1059
|
-
:param pulumi.Input[str] http_option: Allows both HTTP and HTTPS (`enabled`) or redirect HTTP to HTTPS (`redirected`). Defaults to `enabled`.
|
|
1060
|
-
:param pulumi.Input[int] local_storage_limit: Local storage limit of the container (in MB)
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
:param pulumi.Input[int]
|
|
1064
|
-
:param pulumi.Input[int]
|
|
1065
|
-
:param pulumi.Input[
|
|
1066
|
-
:param pulumi.Input[
|
|
1067
|
-
:param pulumi.Input[str] name: The unique name of the container name.
|
|
1068
|
-
:param pulumi.Input[str] namespace_id: The Containers namespace ID of the container.
|
|
1215
|
+
:param pulumi.Input[_builtins.str] http_option: Allows both HTTP and HTTPS (`enabled`) or redirect HTTP to HTTPS (`redirected`). Defaults to `enabled`.
|
|
1216
|
+
:param pulumi.Input[_builtins.int] local_storage_limit: Local storage limit of the container (in MB)
|
|
1217
|
+
: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.
|
|
1218
|
+
:param pulumi.Input[_builtins.int] max_scale: The maximum number of instances this container can scale to.
|
|
1219
|
+
:param pulumi.Input[_builtins.int] memory_limit: The memory resources in MB to allocate to each container.
|
|
1220
|
+
:param pulumi.Input[_builtins.int] min_scale: The minimum number of container instances running continuously.
|
|
1221
|
+
:param pulumi.Input[_builtins.str] name: The unique name of the container name.
|
|
1222
|
+
:param pulumi.Input[_builtins.str] namespace_id: The Containers namespace ID of the container.
|
|
1069
1223
|
|
|
1070
1224
|
> **Important** Updating the `name` argument will recreate the container.
|
|
1071
|
-
:param pulumi.Input[int] port: The port to expose the container.
|
|
1072
|
-
: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).
|
|
1073
|
-
:param pulumi.Input[str]
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1225
|
+
:param pulumi.Input[_builtins.int] port: The port to expose the container.
|
|
1226
|
+
: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).
|
|
1227
|
+
:param pulumi.Input[_builtins.str] private_network_id: The ID of the Private Network the container is connected to.
|
|
1228
|
+
|
|
1229
|
+
> **Important** This feature is currently in beta and requires a namespace with VPC integration activated by setting the `activate_vpc_integration` attribute to `true`.
|
|
1230
|
+
|
|
1231
|
+
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.
|
|
1232
|
+
: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`.
|
|
1233
|
+
:param pulumi.Input[_builtins.str] region: (Defaults to provider `region`) The region in which the container was created.
|
|
1234
|
+
:param pulumi.Input[_builtins.str] registry_image: The registry image address (e.g., `rg.fr-par.scw.cloud/$NAMESPACE/$IMAGE`)
|
|
1235
|
+
: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.
|
|
1236
|
+
:param pulumi.Input[_builtins.str] sandbox: Execution environment of the container.
|
|
1078
1237
|
:param pulumi.Input[Sequence[pulumi.Input[Union['ContainerScalingOptionArgs', 'ContainerScalingOptionArgsDict']]]] scaling_options: Configuration block used to decide when to scale up or down. Possible values:
|
|
1079
|
-
: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.
|
|
1080
|
-
:param pulumi.Input[str] status: The container status.
|
|
1081
|
-
:param pulumi.Input[
|
|
1238
|
+
: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.
|
|
1239
|
+
:param pulumi.Input[_builtins.str] status: The container status.
|
|
1240
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] tags: The list of tags associated with the container.
|
|
1241
|
+
: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.
|
|
1082
1242
|
"""
|
|
1083
1243
|
...
|
|
1084
1244
|
@overload
|
|
@@ -1105,6 +1265,10 @@ class Container(pulumi.CustomResource):
|
|
|
1105
1265
|
main_container = scaleway.containers.Container("main",
|
|
1106
1266
|
name="my-container-02",
|
|
1107
1267
|
description="environment variables test",
|
|
1268
|
+
tags=[
|
|
1269
|
+
"tag1",
|
|
1270
|
+
"tag2",
|
|
1271
|
+
],
|
|
1108
1272
|
namespace_id=main.id,
|
|
1109
1273
|
registry_image=main.registry_endpoint.apply(lambda registry_endpoint: f"{registry_endpoint}/alpine:test"),
|
|
1110
1274
|
port=9997,
|
|
@@ -1117,6 +1281,15 @@ class Container(pulumi.CustomResource):
|
|
|
1117
1281
|
privacy="private",
|
|
1118
1282
|
protocol="http1",
|
|
1119
1283
|
deploy=True,
|
|
1284
|
+
commands=[
|
|
1285
|
+
"bash",
|
|
1286
|
+
"-c",
|
|
1287
|
+
"script.sh",
|
|
1288
|
+
],
|
|
1289
|
+
args=[
|
|
1290
|
+
"some",
|
|
1291
|
+
"args",
|
|
1292
|
+
],
|
|
1120
1293
|
environment_variables={
|
|
1121
1294
|
"foo": "var",
|
|
1122
1295
|
},
|
|
@@ -1186,7 +1359,7 @@ class Container(pulumi.CustomResource):
|
|
|
1186
1359
|
"path": "/ping",
|
|
1187
1360
|
}],
|
|
1188
1361
|
"failure_threshold": 40,
|
|
1189
|
-
"interval": "
|
|
1362
|
+
"interval": "5s",
|
|
1190
1363
|
}])
|
|
1191
1364
|
```
|
|
1192
1365
|
|
|
@@ -1242,30 +1415,34 @@ class Container(pulumi.CustomResource):
|
|
|
1242
1415
|
def _internal_init(__self__,
|
|
1243
1416
|
resource_name: str,
|
|
1244
1417
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1418
|
+
args: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
1419
|
+
commands: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
1420
|
+
cpu_limit: Optional[pulumi.Input[_builtins.int]] = None,
|
|
1421
|
+
deploy: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
1422
|
+
description: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1423
|
+
environment_variables: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
|
1249
1424
|
health_checks: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ContainerHealthCheckArgs', 'ContainerHealthCheckArgsDict']]]]] = None,
|
|
1250
|
-
http_option: Optional[pulumi.Input[str]] = None,
|
|
1251
|
-
local_storage_limit: Optional[pulumi.Input[int]] = None,
|
|
1252
|
-
max_concurrency: Optional[pulumi.Input[int]] = None,
|
|
1253
|
-
max_scale: Optional[pulumi.Input[int]] = None,
|
|
1254
|
-
memory_limit: Optional[pulumi.Input[int]] = None,
|
|
1255
|
-
min_scale: Optional[pulumi.Input[int]] = None,
|
|
1256
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
1257
|
-
namespace_id: Optional[pulumi.Input[str]] = None,
|
|
1258
|
-
port: Optional[pulumi.Input[int]] = None,
|
|
1259
|
-
privacy: Optional[pulumi.Input[str]] = None,
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1425
|
+
http_option: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1426
|
+
local_storage_limit: Optional[pulumi.Input[_builtins.int]] = None,
|
|
1427
|
+
max_concurrency: Optional[pulumi.Input[_builtins.int]] = None,
|
|
1428
|
+
max_scale: Optional[pulumi.Input[_builtins.int]] = None,
|
|
1429
|
+
memory_limit: Optional[pulumi.Input[_builtins.int]] = None,
|
|
1430
|
+
min_scale: Optional[pulumi.Input[_builtins.int]] = None,
|
|
1431
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1432
|
+
namespace_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1433
|
+
port: Optional[pulumi.Input[_builtins.int]] = None,
|
|
1434
|
+
privacy: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1435
|
+
private_network_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1436
|
+
protocol: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1437
|
+
region: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1438
|
+
registry_image: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1439
|
+
registry_sha256: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1440
|
+
sandbox: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1265
1441
|
scaling_options: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ContainerScalingOptionArgs', 'ContainerScalingOptionArgsDict']]]]] = None,
|
|
1266
|
-
secret_environment_variables: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
1267
|
-
status: Optional[pulumi.Input[str]] = None,
|
|
1268
|
-
|
|
1442
|
+
secret_environment_variables: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
|
1443
|
+
status: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1444
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
1445
|
+
timeout: Optional[pulumi.Input[_builtins.int]] = None,
|
|
1269
1446
|
__props__=None):
|
|
1270
1447
|
pulumi.log.warn("""Container is deprecated: scaleway.index/container.Container has been deprecated in favor of scaleway.containers/container.Container""")
|
|
1271
1448
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
@@ -1276,6 +1453,8 @@ class Container(pulumi.CustomResource):
|
|
|
1276
1453
|
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
1277
1454
|
__props__ = ContainerArgs.__new__(ContainerArgs)
|
|
1278
1455
|
|
|
1456
|
+
__props__.__dict__["args"] = args
|
|
1457
|
+
__props__.__dict__["commands"] = commands
|
|
1279
1458
|
__props__.__dict__["cpu_limit"] = cpu_limit
|
|
1280
1459
|
__props__.__dict__["deploy"] = deploy
|
|
1281
1460
|
__props__.__dict__["description"] = description
|
|
@@ -1293,6 +1472,7 @@ class Container(pulumi.CustomResource):
|
|
|
1293
1472
|
__props__.__dict__["namespace_id"] = namespace_id
|
|
1294
1473
|
__props__.__dict__["port"] = port
|
|
1295
1474
|
__props__.__dict__["privacy"] = privacy
|
|
1475
|
+
__props__.__dict__["private_network_id"] = private_network_id
|
|
1296
1476
|
__props__.__dict__["protocol"] = protocol
|
|
1297
1477
|
__props__.__dict__["region"] = region
|
|
1298
1478
|
__props__.__dict__["registry_image"] = registry_image
|
|
@@ -1301,6 +1481,7 @@ class Container(pulumi.CustomResource):
|
|
|
1301
1481
|
__props__.__dict__["scaling_options"] = scaling_options
|
|
1302
1482
|
__props__.__dict__["secret_environment_variables"] = None if secret_environment_variables is None else pulumi.Output.secret(secret_environment_variables)
|
|
1303
1483
|
__props__.__dict__["status"] = status
|
|
1484
|
+
__props__.__dict__["tags"] = tags
|
|
1304
1485
|
__props__.__dict__["timeout"] = timeout
|
|
1305
1486
|
__props__.__dict__["cron_status"] = None
|
|
1306
1487
|
__props__.__dict__["domain_name"] = None
|
|
@@ -1317,33 +1498,37 @@ class Container(pulumi.CustomResource):
|
|
|
1317
1498
|
def get(resource_name: str,
|
|
1318
1499
|
id: pulumi.Input[str],
|
|
1319
1500
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1501
|
+
args: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
1502
|
+
commands: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
1503
|
+
cpu_limit: Optional[pulumi.Input[_builtins.int]] = None,
|
|
1504
|
+
cron_status: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1505
|
+
deploy: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
1506
|
+
description: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1507
|
+
domain_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1508
|
+
environment_variables: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
|
1509
|
+
error_message: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1327
1510
|
health_checks: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ContainerHealthCheckArgs', 'ContainerHealthCheckArgsDict']]]]] = None,
|
|
1328
|
-
http_option: Optional[pulumi.Input[str]] = None,
|
|
1329
|
-
local_storage_limit: Optional[pulumi.Input[int]] = None,
|
|
1330
|
-
max_concurrency: Optional[pulumi.Input[int]] = None,
|
|
1331
|
-
max_scale: Optional[pulumi.Input[int]] = None,
|
|
1332
|
-
memory_limit: Optional[pulumi.Input[int]] = None,
|
|
1333
|
-
min_scale: Optional[pulumi.Input[int]] = None,
|
|
1334
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
1335
|
-
namespace_id: Optional[pulumi.Input[str]] = None,
|
|
1336
|
-
port: Optional[pulumi.Input[int]] = None,
|
|
1337
|
-
privacy: Optional[pulumi.Input[str]] = None,
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1511
|
+
http_option: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1512
|
+
local_storage_limit: Optional[pulumi.Input[_builtins.int]] = None,
|
|
1513
|
+
max_concurrency: Optional[pulumi.Input[_builtins.int]] = None,
|
|
1514
|
+
max_scale: Optional[pulumi.Input[_builtins.int]] = None,
|
|
1515
|
+
memory_limit: Optional[pulumi.Input[_builtins.int]] = None,
|
|
1516
|
+
min_scale: Optional[pulumi.Input[_builtins.int]] = None,
|
|
1517
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1518
|
+
namespace_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1519
|
+
port: Optional[pulumi.Input[_builtins.int]] = None,
|
|
1520
|
+
privacy: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1521
|
+
private_network_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1522
|
+
protocol: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1523
|
+
region: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1524
|
+
registry_image: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1525
|
+
registry_sha256: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1526
|
+
sandbox: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1343
1527
|
scaling_options: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ContainerScalingOptionArgs', 'ContainerScalingOptionArgsDict']]]]] = None,
|
|
1344
|
-
secret_environment_variables: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
1345
|
-
status: Optional[pulumi.Input[str]] = None,
|
|
1346
|
-
|
|
1528
|
+
secret_environment_variables: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
|
1529
|
+
status: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1530
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
1531
|
+
timeout: Optional[pulumi.Input[_builtins.int]] = None) -> 'Container':
|
|
1347
1532
|
"""
|
|
1348
1533
|
Get an existing Container resource's state with the given name, id, and optional extra
|
|
1349
1534
|
properties used to qualify the lookup.
|
|
@@ -1351,42 +1536,50 @@ class Container(pulumi.CustomResource):
|
|
|
1351
1536
|
:param str resource_name: The unique name of the resulting resource.
|
|
1352
1537
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
1353
1538
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
1354
|
-
:param pulumi.Input[
|
|
1355
|
-
:param pulumi.Input[str]
|
|
1356
|
-
:param pulumi.Input[
|
|
1357
|
-
:param pulumi.Input[str]
|
|
1358
|
-
:param pulumi.Input[
|
|
1359
|
-
:param pulumi.Input[
|
|
1360
|
-
:param pulumi.Input[str]
|
|
1539
|
+
: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.
|
|
1540
|
+
: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.
|
|
1541
|
+
:param pulumi.Input[_builtins.int] cpu_limit: The amount of vCPU computing resources to allocate to each container.
|
|
1542
|
+
:param pulumi.Input[_builtins.str] cron_status: The cron status of the container.
|
|
1543
|
+
:param pulumi.Input[_builtins.bool] deploy: Boolean indicating whether the container is in a production environment.
|
|
1544
|
+
:param pulumi.Input[_builtins.str] description: The description of the container.
|
|
1545
|
+
:param pulumi.Input[_builtins.str] domain_name: The native domain name of the container
|
|
1546
|
+
: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.
|
|
1547
|
+
:param pulumi.Input[_builtins.str] error_message: The error message of the container.
|
|
1361
1548
|
:param pulumi.Input[Sequence[pulumi.Input[Union['ContainerHealthCheckArgs', 'ContainerHealthCheckArgsDict']]]] health_checks: Health check configuration block of the container.
|
|
1362
|
-
:param pulumi.Input[str] http_option: Allows both HTTP and HTTPS (`enabled`) or redirect HTTP to HTTPS (`redirected`). Defaults to `enabled`.
|
|
1363
|
-
:param pulumi.Input[int] local_storage_limit: Local storage limit of the container (in MB)
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
:param pulumi.Input[int]
|
|
1367
|
-
:param pulumi.Input[int]
|
|
1368
|
-
:param pulumi.Input[
|
|
1369
|
-
:param pulumi.Input[
|
|
1370
|
-
:param pulumi.Input[str] name: The unique name of the container name.
|
|
1371
|
-
:param pulumi.Input[str] namespace_id: The Containers namespace ID of the container.
|
|
1549
|
+
:param pulumi.Input[_builtins.str] http_option: Allows both HTTP and HTTPS (`enabled`) or redirect HTTP to HTTPS (`redirected`). Defaults to `enabled`.
|
|
1550
|
+
:param pulumi.Input[_builtins.int] local_storage_limit: Local storage limit of the container (in MB)
|
|
1551
|
+
: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.
|
|
1552
|
+
:param pulumi.Input[_builtins.int] max_scale: The maximum number of instances this container can scale to.
|
|
1553
|
+
:param pulumi.Input[_builtins.int] memory_limit: The memory resources in MB to allocate to each container.
|
|
1554
|
+
:param pulumi.Input[_builtins.int] min_scale: The minimum number of container instances running continuously.
|
|
1555
|
+
:param pulumi.Input[_builtins.str] name: The unique name of the container name.
|
|
1556
|
+
:param pulumi.Input[_builtins.str] namespace_id: The Containers namespace ID of the container.
|
|
1372
1557
|
|
|
1373
1558
|
> **Important** Updating the `name` argument will recreate the container.
|
|
1374
|
-
:param pulumi.Input[int] port: The port to expose the container.
|
|
1375
|
-
: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).
|
|
1376
|
-
:param pulumi.Input[str]
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1559
|
+
:param pulumi.Input[_builtins.int] port: The port to expose the container.
|
|
1560
|
+
: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).
|
|
1561
|
+
:param pulumi.Input[_builtins.str] private_network_id: The ID of the Private Network the container is connected to.
|
|
1562
|
+
|
|
1563
|
+
> **Important** This feature is currently in beta and requires a namespace with VPC integration activated by setting the `activate_vpc_integration` attribute to `true`.
|
|
1564
|
+
|
|
1565
|
+
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.
|
|
1566
|
+
: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`.
|
|
1567
|
+
:param pulumi.Input[_builtins.str] region: (Defaults to provider `region`) The region in which the container was created.
|
|
1568
|
+
:param pulumi.Input[_builtins.str] registry_image: The registry image address (e.g., `rg.fr-par.scw.cloud/$NAMESPACE/$IMAGE`)
|
|
1569
|
+
: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.
|
|
1570
|
+
:param pulumi.Input[_builtins.str] sandbox: Execution environment of the container.
|
|
1381
1571
|
:param pulumi.Input[Sequence[pulumi.Input[Union['ContainerScalingOptionArgs', 'ContainerScalingOptionArgsDict']]]] scaling_options: Configuration block used to decide when to scale up or down. Possible values:
|
|
1382
|
-
: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.
|
|
1383
|
-
:param pulumi.Input[str] status: The container status.
|
|
1384
|
-
:param pulumi.Input[
|
|
1572
|
+
: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.
|
|
1573
|
+
:param pulumi.Input[_builtins.str] status: The container status.
|
|
1574
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] tags: The list of tags associated with the container.
|
|
1575
|
+
: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.
|
|
1385
1576
|
"""
|
|
1386
1577
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
1387
1578
|
|
|
1388
1579
|
__props__ = _ContainerState.__new__(_ContainerState)
|
|
1389
1580
|
|
|
1581
|
+
__props__.__dict__["args"] = args
|
|
1582
|
+
__props__.__dict__["commands"] = commands
|
|
1390
1583
|
__props__.__dict__["cpu_limit"] = cpu_limit
|
|
1391
1584
|
__props__.__dict__["cron_status"] = cron_status
|
|
1392
1585
|
__props__.__dict__["deploy"] = deploy
|
|
@@ -1405,6 +1598,7 @@ class Container(pulumi.CustomResource):
|
|
|
1405
1598
|
__props__.__dict__["namespace_id"] = namespace_id
|
|
1406
1599
|
__props__.__dict__["port"] = port
|
|
1407
1600
|
__props__.__dict__["privacy"] = privacy
|
|
1601
|
+
__props__.__dict__["private_network_id"] = private_network_id
|
|
1408
1602
|
__props__.__dict__["protocol"] = protocol
|
|
1409
1603
|
__props__.__dict__["region"] = region
|
|
1410
1604
|
__props__.__dict__["registry_image"] = registry_image
|
|
@@ -1413,66 +1607,83 @@ class Container(pulumi.CustomResource):
|
|
|
1413
1607
|
__props__.__dict__["scaling_options"] = scaling_options
|
|
1414
1608
|
__props__.__dict__["secret_environment_variables"] = secret_environment_variables
|
|
1415
1609
|
__props__.__dict__["status"] = status
|
|
1610
|
+
__props__.__dict__["tags"] = tags
|
|
1416
1611
|
__props__.__dict__["timeout"] = timeout
|
|
1417
1612
|
return Container(resource_name, opts=opts, __props__=__props__)
|
|
1418
1613
|
|
|
1419
|
-
@property
|
|
1614
|
+
@_builtins.property
|
|
1615
|
+
@pulumi.getter
|
|
1616
|
+
def args(self) -> pulumi.Output[Optional[Sequence[_builtins.str]]]:
|
|
1617
|
+
"""
|
|
1618
|
+
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.
|
|
1619
|
+
"""
|
|
1620
|
+
return pulumi.get(self, "args")
|
|
1621
|
+
|
|
1622
|
+
@_builtins.property
|
|
1623
|
+
@pulumi.getter
|
|
1624
|
+
def commands(self) -> pulumi.Output[Optional[Sequence[_builtins.str]]]:
|
|
1625
|
+
"""
|
|
1626
|
+
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.
|
|
1627
|
+
"""
|
|
1628
|
+
return pulumi.get(self, "commands")
|
|
1629
|
+
|
|
1630
|
+
@_builtins.property
|
|
1420
1631
|
@pulumi.getter(name="cpuLimit")
|
|
1421
|
-
def cpu_limit(self) -> pulumi.Output[int]:
|
|
1632
|
+
def cpu_limit(self) -> pulumi.Output[_builtins.int]:
|
|
1422
1633
|
"""
|
|
1423
1634
|
The amount of vCPU computing resources to allocate to each container.
|
|
1424
1635
|
"""
|
|
1425
1636
|
return pulumi.get(self, "cpu_limit")
|
|
1426
1637
|
|
|
1427
|
-
@property
|
|
1638
|
+
@_builtins.property
|
|
1428
1639
|
@pulumi.getter(name="cronStatus")
|
|
1429
|
-
def cron_status(self) -> pulumi.Output[str]:
|
|
1640
|
+
def cron_status(self) -> pulumi.Output[_builtins.str]:
|
|
1430
1641
|
"""
|
|
1431
1642
|
The cron status of the container.
|
|
1432
1643
|
"""
|
|
1433
1644
|
return pulumi.get(self, "cron_status")
|
|
1434
1645
|
|
|
1435
|
-
@property
|
|
1646
|
+
@_builtins.property
|
|
1436
1647
|
@pulumi.getter
|
|
1437
|
-
def deploy(self) -> pulumi.Output[Optional[bool]]:
|
|
1648
|
+
def deploy(self) -> pulumi.Output[Optional[_builtins.bool]]:
|
|
1438
1649
|
"""
|
|
1439
1650
|
Boolean indicating whether the container is in a production environment.
|
|
1440
1651
|
"""
|
|
1441
1652
|
return pulumi.get(self, "deploy")
|
|
1442
1653
|
|
|
1443
|
-
@property
|
|
1654
|
+
@_builtins.property
|
|
1444
1655
|
@pulumi.getter
|
|
1445
|
-
def description(self) -> pulumi.Output[Optional[str]]:
|
|
1656
|
+
def description(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
1446
1657
|
"""
|
|
1447
1658
|
The description of the container.
|
|
1448
1659
|
"""
|
|
1449
1660
|
return pulumi.get(self, "description")
|
|
1450
1661
|
|
|
1451
|
-
@property
|
|
1662
|
+
@_builtins.property
|
|
1452
1663
|
@pulumi.getter(name="domainName")
|
|
1453
|
-
def domain_name(self) -> pulumi.Output[str]:
|
|
1664
|
+
def domain_name(self) -> pulumi.Output[_builtins.str]:
|
|
1454
1665
|
"""
|
|
1455
1666
|
The native domain name of the container
|
|
1456
1667
|
"""
|
|
1457
1668
|
return pulumi.get(self, "domain_name")
|
|
1458
1669
|
|
|
1459
|
-
@property
|
|
1670
|
+
@_builtins.property
|
|
1460
1671
|
@pulumi.getter(name="environmentVariables")
|
|
1461
|
-
def environment_variables(self) -> pulumi.Output[Mapping[str, str]]:
|
|
1672
|
+
def environment_variables(self) -> pulumi.Output[Mapping[str, _builtins.str]]:
|
|
1462
1673
|
"""
|
|
1463
1674
|
The [environment variables](https://www.scaleway.com/en/docs/serverless-containers/concepts/#environment-variables) of the container.
|
|
1464
1675
|
"""
|
|
1465
1676
|
return pulumi.get(self, "environment_variables")
|
|
1466
1677
|
|
|
1467
|
-
@property
|
|
1678
|
+
@_builtins.property
|
|
1468
1679
|
@pulumi.getter(name="errorMessage")
|
|
1469
|
-
def error_message(self) -> pulumi.Output[str]:
|
|
1680
|
+
def error_message(self) -> pulumi.Output[_builtins.str]:
|
|
1470
1681
|
"""
|
|
1471
1682
|
The error message of the container.
|
|
1472
1683
|
"""
|
|
1473
1684
|
return pulumi.get(self, "error_message")
|
|
1474
1685
|
|
|
1475
|
-
@property
|
|
1686
|
+
@_builtins.property
|
|
1476
1687
|
@pulumi.getter(name="healthChecks")
|
|
1477
1688
|
def health_checks(self) -> pulumi.Output[Sequence['outputs.ContainerHealthCheck']]:
|
|
1478
1689
|
"""
|
|
@@ -1480,68 +1691,66 @@ class Container(pulumi.CustomResource):
|
|
|
1480
1691
|
"""
|
|
1481
1692
|
return pulumi.get(self, "health_checks")
|
|
1482
1693
|
|
|
1483
|
-
@property
|
|
1694
|
+
@_builtins.property
|
|
1484
1695
|
@pulumi.getter(name="httpOption")
|
|
1485
|
-
def http_option(self) -> pulumi.Output[Optional[str]]:
|
|
1696
|
+
def http_option(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
1486
1697
|
"""
|
|
1487
1698
|
Allows both HTTP and HTTPS (`enabled`) or redirect HTTP to HTTPS (`redirected`). Defaults to `enabled`.
|
|
1488
1699
|
"""
|
|
1489
1700
|
return pulumi.get(self, "http_option")
|
|
1490
1701
|
|
|
1491
|
-
@property
|
|
1702
|
+
@_builtins.property
|
|
1492
1703
|
@pulumi.getter(name="localStorageLimit")
|
|
1493
|
-
def local_storage_limit(self) -> pulumi.Output[int]:
|
|
1704
|
+
def local_storage_limit(self) -> pulumi.Output[_builtins.int]:
|
|
1494
1705
|
"""
|
|
1495
1706
|
Local storage limit of the container (in MB)
|
|
1496
|
-
|
|
1497
|
-
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.
|
|
1498
1707
|
"""
|
|
1499
1708
|
return pulumi.get(self, "local_storage_limit")
|
|
1500
1709
|
|
|
1501
|
-
@property
|
|
1710
|
+
@_builtins.property
|
|
1502
1711
|
@pulumi.getter(name="maxConcurrency")
|
|
1503
1712
|
@_utilities.deprecated("""Use scaling_option.concurrent_requests_threshold instead. This attribute will be removed.""")
|
|
1504
|
-
def max_concurrency(self) -> pulumi.Output[int]:
|
|
1713
|
+
def max_concurrency(self) -> pulumi.Output[_builtins.int]:
|
|
1505
1714
|
"""
|
|
1506
1715
|
The maximum number of simultaneous requests your container can handle at the same time. Use `scaling_option.concurrent_requests_threshold` instead.
|
|
1507
1716
|
"""
|
|
1508
1717
|
return pulumi.get(self, "max_concurrency")
|
|
1509
1718
|
|
|
1510
|
-
@property
|
|
1719
|
+
@_builtins.property
|
|
1511
1720
|
@pulumi.getter(name="maxScale")
|
|
1512
|
-
def max_scale(self) -> pulumi.Output[int]:
|
|
1721
|
+
def max_scale(self) -> pulumi.Output[_builtins.int]:
|
|
1513
1722
|
"""
|
|
1514
1723
|
The maximum number of instances this container can scale to.
|
|
1515
1724
|
"""
|
|
1516
1725
|
return pulumi.get(self, "max_scale")
|
|
1517
1726
|
|
|
1518
|
-
@property
|
|
1727
|
+
@_builtins.property
|
|
1519
1728
|
@pulumi.getter(name="memoryLimit")
|
|
1520
|
-
def memory_limit(self) -> pulumi.Output[int]:
|
|
1729
|
+
def memory_limit(self) -> pulumi.Output[_builtins.int]:
|
|
1521
1730
|
"""
|
|
1522
1731
|
The memory resources in MB to allocate to each container.
|
|
1523
1732
|
"""
|
|
1524
1733
|
return pulumi.get(self, "memory_limit")
|
|
1525
1734
|
|
|
1526
|
-
@property
|
|
1735
|
+
@_builtins.property
|
|
1527
1736
|
@pulumi.getter(name="minScale")
|
|
1528
|
-
def min_scale(self) -> pulumi.Output[int]:
|
|
1737
|
+
def min_scale(self) -> pulumi.Output[_builtins.int]:
|
|
1529
1738
|
"""
|
|
1530
1739
|
The minimum number of container instances running continuously.
|
|
1531
1740
|
"""
|
|
1532
1741
|
return pulumi.get(self, "min_scale")
|
|
1533
1742
|
|
|
1534
|
-
@property
|
|
1743
|
+
@_builtins.property
|
|
1535
1744
|
@pulumi.getter
|
|
1536
|
-
def name(self) -> pulumi.Output[str]:
|
|
1745
|
+
def name(self) -> pulumi.Output[_builtins.str]:
|
|
1537
1746
|
"""
|
|
1538
1747
|
The unique name of the container name.
|
|
1539
1748
|
"""
|
|
1540
1749
|
return pulumi.get(self, "name")
|
|
1541
1750
|
|
|
1542
|
-
@property
|
|
1751
|
+
@_builtins.property
|
|
1543
1752
|
@pulumi.getter(name="namespaceId")
|
|
1544
|
-
def namespace_id(self) -> pulumi.Output[str]:
|
|
1753
|
+
def namespace_id(self) -> pulumi.Output[_builtins.str]:
|
|
1545
1754
|
"""
|
|
1546
1755
|
The Containers namespace ID of the container.
|
|
1547
1756
|
|
|
@@ -1549,63 +1758,75 @@ class Container(pulumi.CustomResource):
|
|
|
1549
1758
|
"""
|
|
1550
1759
|
return pulumi.get(self, "namespace_id")
|
|
1551
1760
|
|
|
1552
|
-
@property
|
|
1761
|
+
@_builtins.property
|
|
1553
1762
|
@pulumi.getter
|
|
1554
|
-
def port(self) -> pulumi.Output[int]:
|
|
1763
|
+
def port(self) -> pulumi.Output[_builtins.int]:
|
|
1555
1764
|
"""
|
|
1556
1765
|
The port to expose the container.
|
|
1557
1766
|
"""
|
|
1558
1767
|
return pulumi.get(self, "port")
|
|
1559
1768
|
|
|
1560
|
-
@property
|
|
1769
|
+
@_builtins.property
|
|
1561
1770
|
@pulumi.getter
|
|
1562
|
-
def privacy(self) -> pulumi.Output[Optional[str]]:
|
|
1771
|
+
def privacy(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
1563
1772
|
"""
|
|
1564
1773
|
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).
|
|
1565
1774
|
"""
|
|
1566
1775
|
return pulumi.get(self, "privacy")
|
|
1567
1776
|
|
|
1568
|
-
@property
|
|
1777
|
+
@_builtins.property
|
|
1778
|
+
@pulumi.getter(name="privateNetworkId")
|
|
1779
|
+
def private_network_id(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
1780
|
+
"""
|
|
1781
|
+
The ID of the Private Network the container is connected to.
|
|
1782
|
+
|
|
1783
|
+
> **Important** This feature is currently in beta and requires a namespace with VPC integration activated by setting the `activate_vpc_integration` attribute to `true`.
|
|
1784
|
+
|
|
1785
|
+
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.
|
|
1786
|
+
"""
|
|
1787
|
+
return pulumi.get(self, "private_network_id")
|
|
1788
|
+
|
|
1789
|
+
@_builtins.property
|
|
1569
1790
|
@pulumi.getter
|
|
1570
|
-
def protocol(self) -> pulumi.Output[Optional[str]]:
|
|
1791
|
+
def protocol(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
1571
1792
|
"""
|
|
1572
1793
|
The communication [protocol](https://www.scaleway.com/en/developers/api/serverless-containers/#path-containers-update-an-existing-container) `http1` or `h2c`. Defaults to `http1`.
|
|
1573
1794
|
"""
|
|
1574
1795
|
return pulumi.get(self, "protocol")
|
|
1575
1796
|
|
|
1576
|
-
@property
|
|
1797
|
+
@_builtins.property
|
|
1577
1798
|
@pulumi.getter
|
|
1578
|
-
def region(self) -> pulumi.Output[str]:
|
|
1799
|
+
def region(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
1579
1800
|
"""
|
|
1580
1801
|
(Defaults to provider `region`) The region in which the container was created.
|
|
1581
1802
|
"""
|
|
1582
1803
|
return pulumi.get(self, "region")
|
|
1583
1804
|
|
|
1584
|
-
@property
|
|
1805
|
+
@_builtins.property
|
|
1585
1806
|
@pulumi.getter(name="registryImage")
|
|
1586
|
-
def registry_image(self) -> pulumi.Output[str]:
|
|
1807
|
+
def registry_image(self) -> pulumi.Output[_builtins.str]:
|
|
1587
1808
|
"""
|
|
1588
1809
|
The registry image address (e.g., `rg.fr-par.scw.cloud/$NAMESPACE/$IMAGE`)
|
|
1589
1810
|
"""
|
|
1590
1811
|
return pulumi.get(self, "registry_image")
|
|
1591
1812
|
|
|
1592
|
-
@property
|
|
1813
|
+
@_builtins.property
|
|
1593
1814
|
@pulumi.getter(name="registrySha256")
|
|
1594
|
-
def registry_sha256(self) -> pulumi.Output[Optional[str]]:
|
|
1815
|
+
def registry_sha256(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
1595
1816
|
"""
|
|
1596
1817
|
The sha256 of your source registry image, changing it will re-apply the deployment. Can be any string.
|
|
1597
1818
|
"""
|
|
1598
1819
|
return pulumi.get(self, "registry_sha256")
|
|
1599
1820
|
|
|
1600
|
-
@property
|
|
1821
|
+
@_builtins.property
|
|
1601
1822
|
@pulumi.getter
|
|
1602
|
-
def sandbox(self) -> pulumi.Output[str]:
|
|
1823
|
+
def sandbox(self) -> pulumi.Output[_builtins.str]:
|
|
1603
1824
|
"""
|
|
1604
1825
|
Execution environment of the container.
|
|
1605
1826
|
"""
|
|
1606
1827
|
return pulumi.get(self, "sandbox")
|
|
1607
1828
|
|
|
1608
|
-
@property
|
|
1829
|
+
@_builtins.property
|
|
1609
1830
|
@pulumi.getter(name="scalingOptions")
|
|
1610
1831
|
def scaling_options(self) -> pulumi.Output[Sequence['outputs.ContainerScalingOption']]:
|
|
1611
1832
|
"""
|
|
@@ -1613,25 +1834,33 @@ class Container(pulumi.CustomResource):
|
|
|
1613
1834
|
"""
|
|
1614
1835
|
return pulumi.get(self, "scaling_options")
|
|
1615
1836
|
|
|
1616
|
-
@property
|
|
1837
|
+
@_builtins.property
|
|
1617
1838
|
@pulumi.getter(name="secretEnvironmentVariables")
|
|
1618
|
-
def secret_environment_variables(self) -> pulumi.Output[Optional[Mapping[str, str]]]:
|
|
1839
|
+
def secret_environment_variables(self) -> pulumi.Output[Optional[Mapping[str, _builtins.str]]]:
|
|
1619
1840
|
"""
|
|
1620
1841
|
The [secret environment variables](https://www.scaleway.com/en/docs/serverless-containers/concepts/#secrets) of the container.
|
|
1621
1842
|
"""
|
|
1622
1843
|
return pulumi.get(self, "secret_environment_variables")
|
|
1623
1844
|
|
|
1624
|
-
@property
|
|
1845
|
+
@_builtins.property
|
|
1625
1846
|
@pulumi.getter
|
|
1626
|
-
def status(self) -> pulumi.Output[str]:
|
|
1847
|
+
def status(self) -> pulumi.Output[_builtins.str]:
|
|
1627
1848
|
"""
|
|
1628
1849
|
The container status.
|
|
1629
1850
|
"""
|
|
1630
1851
|
return pulumi.get(self, "status")
|
|
1631
1852
|
|
|
1632
|
-
@property
|
|
1853
|
+
@_builtins.property
|
|
1854
|
+
@pulumi.getter
|
|
1855
|
+
def tags(self) -> pulumi.Output[Optional[Sequence[_builtins.str]]]:
|
|
1856
|
+
"""
|
|
1857
|
+
The list of tags associated with the container.
|
|
1858
|
+
"""
|
|
1859
|
+
return pulumi.get(self, "tags")
|
|
1860
|
+
|
|
1861
|
+
@_builtins.property
|
|
1633
1862
|
@pulumi.getter
|
|
1634
|
-
def timeout(self) -> pulumi.Output[int]:
|
|
1863
|
+
def timeout(self) -> pulumi.Output[_builtins.int]:
|
|
1635
1864
|
"""
|
|
1636
1865
|
The maximum amount of time in seconds your container can spend processing a request before being stopped. Default to `300` seconds.
|
|
1637
1866
|
"""
|