From c1985a0ffa4eec50c075b798d5f959dca38500f2 Mon Sep 17 00:00:00 2001 From: Ian Wahbe Date: Wed, 18 Oct 2023 10:09:03 -0700 Subject: [PATCH] Upgrade terraform-provider-spotinst to v1.146.0 (#449) This PR was generated via `$ upgrade-provider pulumi/pulumi-spotinst`. --- - Upgrading terraform-provider-spotinst from 1.144.0 to 1.146.0. Fixes #446 Fixes #444 - Upgrading pulumi-terraform-bridge from v3.61.1-0.20231009164219-2654ed6ca3c8 to v3.62.0. --- examples/go.mod | 14 +- examples/go.sum | 31 +- .../bridge-metadata.json | 44 +- .../cmd/pulumi-resource-spotinst/schema.json | 120 ++ provider/go.mod | 20 +- provider/go.sum | 38 +- sdk/dotnet/Azure/Inputs/OceanNpFiltersArgs.cs | 26 + .../Azure/Inputs/OceanNpFiltersGetArgs.cs | 26 + .../OceanNpVirtualNodeGroupFiltersArgs.cs | 26 + .../OceanNpVirtualNodeGroupFiltersGetArgs.cs | 26 + sdk/dotnet/Azure/OceanNp.cs | 38 + sdk/dotnet/Azure/OceanNpVirtualNodeGroup.cs | 38 + sdk/dotnet/Azure/Outputs/OceanNpFilters.cs | 30 +- .../Outputs/OceanNpVirtualNodeGroupFilters.cs | 30 +- sdk/go.mod | 22 +- sdk/go.sum | 51 +- sdk/go/spotinst/azure/oceanNp.go | 18 + .../spotinst/azure/oceanNpVirtualNodeGroup.go | 18 + sdk/go/spotinst/azure/pulumiTypes.go | 266 ++- .../com/pulumi/spotinst/azure/OceanNp.java | 12 + .../pulumi/spotinst/azure/OceanNpArgs.java | 42 + .../azure/OceanNpVirtualNodeGroup.java | 12 + .../azure/OceanNpVirtualNodeGroupArgs.java | 42 + .../azure/inputs/OceanNpFiltersArgs.java | 123 ++ .../spotinst/azure/inputs/OceanNpState.java | 42 + .../OceanNpVirtualNodeGroupFiltersArgs.java | 123 ++ .../inputs/OceanNpVirtualNodeGroupState.java | 42 + .../azure/outputs/OceanNpFilters.java | 87 + .../OceanNpVirtualNodeGroupFilters.java | 87 + sdk/nodejs/azure/oceanNp.ts | 10 + sdk/nodejs/azure/oceanNpVirtualNodeGroup.ts | 10 + sdk/nodejs/types/input.ts | 14 + sdk/nodejs/types/output.ts | 14 + sdk/python/pulumi_spotinst/_inputs.py | 394 ++++- sdk/python/pulumi_spotinst/aws/_inputs.py | 1466 +++++++++++++++-- sdk/python/pulumi_spotinst/aws/account.py | 8 +- sdk/python/pulumi_spotinst/aws/beanstalk.py | 44 +- sdk/python/pulumi_spotinst/aws/credentials.py | 12 +- sdk/python/pulumi_spotinst/aws/elastigroup.py | 304 +++- .../pulumi_spotinst/aws/managed_instance.py | 160 +- sdk/python/pulumi_spotinst/aws/mr_scalar.py | 222 ++- sdk/python/pulumi_spotinst/aws/ocean.py | 124 +- .../aws/ocean_extended_resource_definition.py | 12 +- .../pulumi_spotinst/aws/ocean_launch_spec.py | 104 +- sdk/python/pulumi_spotinst/aws/outputs.py | 1466 +++++++++++++++-- sdk/python/pulumi_spotinst/aws/suspension.py | 12 +- sdk/python/pulumi_spotinst/azure/_inputs.py | 700 +++++++- .../pulumi_spotinst/azure/elastigroup.py | 80 +- sdk/python/pulumi_spotinst/azure/ocean.py | 60 +- sdk/python/pulumi_spotinst/azure/ocean_np.py | 166 +- .../azure/ocean_np_virtual_node_group.py | 150 +- .../azure/ocean_virtual_node_group.py | 20 +- sdk/python/pulumi_spotinst/azure/outputs.py | 676 +++++++- .../pulumi_spotinst/data_integration.py | 8 +- sdk/python/pulumi_spotinst/ecs/_inputs.py | 282 +++- sdk/python/pulumi_spotinst/ecs/ocean.py | 100 +- .../pulumi_spotinst/ecs/ocean_launch_spec.py | 60 +- sdk/python/pulumi_spotinst/ecs/outputs.py | 282 +++- .../pulumi_spotinst/elastigroup_azure_v3.py | 56 +- sdk/python/pulumi_spotinst/gcp/_inputs.py | 174 +- sdk/python/pulumi_spotinst/gcp/elastigroup.py | 120 +- sdk/python/pulumi_spotinst/gcp/outputs.py | 174 +- sdk/python/pulumi_spotinst/gke/_inputs.py | 408 ++++- sdk/python/pulumi_spotinst/gke/elastigroup.py | 108 +- .../pulumi_spotinst/gke/ocean_import.py | 54 +- .../pulumi_spotinst/gke/ocean_launch_spec.py | 68 +- .../gke/ocean_launch_spec_import.py | 16 +- sdk/python/pulumi_spotinst/gke/outputs.py | 408 ++++- sdk/python/pulumi_spotinst/health_check.py | 20 +- sdk/python/pulumi_spotinst/multai/_inputs.py | 48 +- sdk/python/pulumi_spotinst/multai/balancer.py | 16 +- .../pulumi_spotinst/multai/deployment.py | 8 +- sdk/python/pulumi_spotinst/multai/listener.py | 16 +- sdk/python/pulumi_spotinst/multai/outputs.py | 48 +- .../pulumi_spotinst/multai/routing_rule.py | 24 +- sdk/python/pulumi_spotinst/multai/target.py | 16 +- .../pulumi_spotinst/multai/target_set.py | 20 +- .../pulumi_spotinst/organization/_inputs.py | 40 +- .../pulumi_spotinst/organization/outputs.py | 40 +- .../pulumi_spotinst/organization/policy.py | 12 +- .../organization/programmatic_user.py | 12 +- .../pulumi_spotinst/organization/user.py | 20 +- .../organization/user_group.py | 12 +- sdk/python/pulumi_spotinst/outputs.py | 394 ++++- sdk/python/pulumi_spotinst/provider.py | 6 +- sdk/python/pulumi_spotinst/spark/_inputs.py | 62 +- sdk/python/pulumi_spotinst/spark/ocean.py | 16 +- .../spark/ocean_virtual_node_group.py | 16 +- sdk/python/pulumi_spotinst/spark/outputs.py | 62 +- .../pulumi_spotinst/stateful_node_azure.py | 108 +- sdk/python/pulumi_spotinst/subscription.py | 16 +- upstream | 2 +- 92 files changed, 10093 insertions(+), 981 deletions(-) diff --git a/examples/go.mod b/examples/go.mod index fdd53a8d..bf5b972c 100644 --- a/examples/go.mod +++ b/examples/go.mod @@ -2,7 +2,7 @@ module github.com/pulumi/pulumi-spotinst/examples/v3 go 1.21 -require github.com/pulumi/pulumi/pkg/v3 v3.86.0 +require github.com/pulumi/pulumi/pkg/v3 v3.89.0 require ( cloud.google.com/go v0.110.4 // indirect @@ -112,7 +112,7 @@ require ( github.com/hashicorp/go-version v1.6.0 // indirect github.com/hashicorp/golang-lru v0.5.4 // indirect github.com/hashicorp/hcl v1.0.0 // indirect - github.com/hashicorp/hcl/v2 v2.16.2 // indirect + github.com/hashicorp/hcl/v2 v2.17.0 // indirect github.com/hashicorp/vault/api v1.8.2 // indirect github.com/hashicorp/vault/sdk v0.6.1 // indirect github.com/hashicorp/yamux v0.1.1 // indirect @@ -155,9 +155,10 @@ require ( github.com/pkg/errors v0.9.1 // indirect github.com/pkg/term v1.1.0 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect - github.com/pulumi/pulumi/sdk/v3 v3.86.0 // indirect + github.com/pulumi/esc v0.5.2 // indirect + github.com/pulumi/pulumi/sdk/v3 v3.89.0 // indirect github.com/rivo/uniseg v0.4.4 // indirect - github.com/rogpeppe/go-internal v1.9.0 // indirect + github.com/rogpeppe/go-internal v1.11.0 // indirect github.com/ryanuber/go-glob v1.0.0 // indirect github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 // indirect github.com/santhosh-tekuri/jsonschema/v5 v5.0.0 // indirect @@ -167,7 +168,7 @@ require ( github.com/skeema/knownhosts v1.1.0 // indirect github.com/spf13/cobra v1.7.0 // indirect github.com/spf13/pflag v1.0.5 // indirect - github.com/stretchr/testify v1.8.3 // indirect + github.com/stretchr/testify v1.8.4 // indirect github.com/texttheater/golang-levenshtein v1.0.1 // indirect github.com/tweekmonster/luser v0.0.0-20161003172636-3fa38070dbd7 // indirect github.com/uber/jaeger-client-go v2.30.0+incompatible // indirect @@ -182,7 +183,8 @@ require ( gocloud.dev v0.27.0 // indirect gocloud.dev/secrets/hashivault v0.27.0 // indirect golang.org/x/crypto v0.14.0 // indirect - golang.org/x/mod v0.10.0 // indirect + golang.org/x/exp v0.0.0-20231006140011-7918f672742d // indirect + golang.org/x/mod v0.13.0 // indirect golang.org/x/net v0.17.0 // indirect golang.org/x/oauth2 v0.8.0 // indirect golang.org/x/sync v0.2.0 // indirect diff --git a/examples/go.sum b/examples/go.sum index 0e3c4404..7a6b5822 100644 --- a/examples/go.sum +++ b/examples/go.sum @@ -994,8 +994,8 @@ github.com/hashicorp/golang-lru v0.5.4 h1:YDjusn29QI/Das2iO9M0BHnIbxPeyuCHsjMW+l github.com/hashicorp/golang-lru v0.5.4/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4= github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4= github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= -github.com/hashicorp/hcl/v2 v2.16.2 h1:mpkHZh/Tv+xet3sy3F9Ld4FyI2tUpWe9x3XtPx9f1a0= -github.com/hashicorp/hcl/v2 v2.16.2/go.mod h1:JRmR89jycNkrrqnMmvPDMd56n1rQJ2Q6KocSLCMCXng= +github.com/hashicorp/hcl/v2 v2.17.0 h1:z1XvSUyXd1HP10U4lrLg5e0JMVz6CPaJvAgxM0KNZVY= +github.com/hashicorp/hcl/v2 v2.17.0/go.mod h1:gJyW2PTShkJqQBKpAmPO3yxMxIuoXkOF2TpqXzrQyx4= github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64= github.com/hashicorp/mdns v1.0.0/go.mod h1:tL+uN++7HEJ6SQLQ2/p+z2pH24WQKWjBPkE0mNTz8vQ= github.com/hashicorp/mdns v1.0.4/go.mod h1:mtBihi+LeNXGtG8L9dX59gAEa12BDtBQSp4v/YAJqrc= @@ -1138,9 +1138,8 @@ github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFB github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= github.com/kr/pretty v0.2.0/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= +github.com/kr/pretty v0.3.0 h1:WgNl7dwNpEZ6jJ9k1snq4pZsg7DOEN8hP9Xw0Tsjwk0= github.com/kr/pretty v0.3.0/go.mod h1:640gp4NfQd8pI5XOwp5fnNeVWj67G7CFk/SaSQn7NBk= -github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= -github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/pty v1.1.5/go.mod h1:9r2w37qlBe7rQ6e1fg1S/9xpWHSnaqNdHD3WcMdbPDA= github.com/kr/pty v1.1.8/go.mod h1:O1sed60cT9XZ5uDucP5qwvh+TE3NnUj51EiZO/lmSfw= @@ -1463,10 +1462,12 @@ github.com/prometheus/procfs v0.7.3/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1 github.com/prometheus/prometheus v0.35.0/go.mod h1:7HaLx5kEPKJ0GDgbODG0fZgXbQ8K/XjZNJXQmbmgQlY= github.com/prometheus/prometheus v0.37.0/go.mod h1:egARUgz+K93zwqsVIAneFlLZefyGOON44WyAp4Xqbbk= github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= -github.com/pulumi/pulumi/pkg/v3 v3.86.0 h1:G4spuT89ZN8lSxT9WkMF/JaP7n+wu7ubEly7Yy8uza0= -github.com/pulumi/pulumi/pkg/v3 v3.86.0/go.mod h1:Qs55gPhUwM/Dua3VRtHXLLlpY8uEe+llDBIZc+1pvHM= -github.com/pulumi/pulumi/sdk/v3 v3.86.0 h1:Cxg0rGdvMt9GqGvesFTj8+WaO/ihmALYlQf4zm1GzFw= -github.com/pulumi/pulumi/sdk/v3 v3.86.0/go.mod h1:vexSGJ5L834l3T7Fo/KpdywjGAgZ2CvChuqGFl+ebS0= +github.com/pulumi/esc v0.5.2 h1:Wnr0oXy8MAyRMtVrMHPI2frjyuylVnU47ReFPNjE3C0= +github.com/pulumi/esc v0.5.2/go.mod h1:lp6lkE9JrifhmjlXVH9//Rj45OETlVPHZKvoNRyU54Q= +github.com/pulumi/pulumi/pkg/v3 v3.89.0 h1:4gaR9ZerHqtc0NYcq7TLxhj2029H9CtRrirmibyLw/E= +github.com/pulumi/pulumi/pkg/v3 v3.89.0/go.mod h1:5DIoI81I+NmW/y2BDlQR4CwnzTeVwkI3DZ4FBnSprXs= +github.com/pulumi/pulumi/sdk/v3 v3.89.0 h1:WlkOQ4Q/Xyxu4lckGWssNI4Wdrobo5Zb7JQVoFVkzMo= +github.com/pulumi/pulumi/sdk/v3 v3.89.0/go.mod h1:XBIlxfHv/jnRj6v8rXP79Z3E11jQz/Ky+bDhwVAHOPk= github.com/rakyll/embedmd v0.0.0-20171029212350-c8060a0752a2/go.mod h1:7jOTMgqac46PZcF54q6l2hkLEG8op93fZu61KmxWDV4= github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= @@ -1479,8 +1480,8 @@ github.com/rogpeppe/go-internal v1.1.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFR github.com/rogpeppe/go-internal v1.2.2/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= github.com/rogpeppe/go-internal v1.6.1/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc= -github.com/rogpeppe/go-internal v1.9.0 h1:73kH8U+JUqXU8lRuOHeVHaa/SZPifC7BkcraZVejAe8= -github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs= +github.com/rogpeppe/go-internal v1.11.0 h1:cWPaGQEPrBb5/AsnsZesgZZ9yb1OQ+GOISoDNXVBh4M= +github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUzkipdSkR5nkCZA= github.com/rs/cors v1.8.2/go.mod h1:XyqrcTp5zjWr1wsJ8PIRZssZ8b/WMcMf71DJnit4EMU= github.com/rs/xid v1.2.1/go.mod h1:+uKXf+4Djp6Md1KODXJxgGQPKngRmWyn10oCKFzNHOQ= github.com/rs/zerolog v1.13.0/go.mod h1:YbFCdg8HfsridGWAh22vktObvhZbQsZXe4/zB0OKkWU= @@ -1580,8 +1581,8 @@ github.com/stretchr/testify v1.7.2/go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1F github.com/stretchr/testify v1.7.5/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= -github.com/stretchr/testify v1.8.3 h1:RP3t2pwF7cMEbC1dqtB6poj3niw/9gnV4Cjg5oW5gtY= -github.com/stretchr/testify v1.8.3/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= +github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= +github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw= github.com/syndtr/gocapability v0.0.0-20170704070218-db04d3cc01c8/go.mod h1:hkRG7XYTFWNJGYcbNJQlaLq0fg1yr4J4t/NcTQtrfww= github.com/syndtr/gocapability v0.0.0-20180916011248-d98352740cb2/go.mod h1:hkRG7XYTFWNJGYcbNJQlaLq0fg1yr4J4t/NcTQtrfww= @@ -1799,6 +1800,8 @@ golang.org/x/exp v0.0.0-20191227195350-da58074b4299/go.mod h1:2RIsYlXP63K8oxa1u0 golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM= golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU= +golang.org/x/exp v0.0.0-20231006140011-7918f672742d h1:jtJma62tbqLibJ5sFQz8bKtEM8rJBtfilJ2qTU199MI= +golang.org/x/exp v0.0.0-20231006140011-7918f672742d/go.mod h1:ldy0pHrwJyGW56pPQzzkH36rKxoZW1tw7ZJpeKx+hdo= golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= @@ -1829,8 +1832,8 @@ golang.org/x/mod v0.5.1/go.mod h1:5OXOZSfqPIIbmVBIIKWRFfZjPR0E5r58TLhUjH0a2Ro= golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3/go.mod h1:3p9vT2HGsQu2K1YbXdKPJLVgG5VJdoTa1poYQBtP1AY= golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= golang.org/x/mod v0.6.0/go.mod h1:4mET923SAdbXp2ki8ey+zGs1SLqsuM2Y0uvdZR/fUNI= -golang.org/x/mod v0.10.0 h1:lFO9qtOdlre5W1jxS3r/4szv2/6iXxScdzjoBMXNhYk= -golang.org/x/mod v0.10.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= +golang.org/x/mod v0.13.0 h1:I/DsJXRlw/8l/0c24sM9yb0T4z9liZTduXvdAWYiysY= +golang.org/x/mod v0.13.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= golang.org/x/net v0.0.0-20180530234432-1e491301e022/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= diff --git a/provider/cmd/pulumi-resource-spotinst/bridge-metadata.json b/provider/cmd/pulumi-resource-spotinst/bridge-metadata.json index e3e50666..8ef105c3 100644 --- a/provider/cmd/pulumi-resource-spotinst/bridge-metadata.json +++ b/provider/cmd/pulumi-resource-spotinst/bridge-metadata.json @@ -2783,6 +2783,9 @@ }, "series": { "maxItemsOne": false + }, + "vm_types": { + "maxItemsOne": false } } } @@ -2806,6 +2809,9 @@ "os_disk_size_gb": {}, "os_disk_type": {}, "os_type": {}, + "pod_subnet_ids": { + "maxItemsOne": false + }, "scheduling": { "maxItemsOne": true, "elem": { @@ -2834,6 +2840,9 @@ "value": {} } } + }, + "vnet_subnet_ids": { + "maxItemsOne": false } } }, @@ -2858,6 +2867,9 @@ }, "series": { "maxItemsOne": false + }, + "vm_types": { + "maxItemsOne": false } } } @@ -2882,6 +2894,9 @@ "os_disk_size_gb": {}, "os_disk_type": {}, "os_type": {}, + "pod_subnet_ids": { + "maxItemsOne": false + }, "spot_percentage": {}, "tags": {}, "taints": { @@ -2893,6 +2908,9 @@ "value": {} } } + }, + "vnet_subnet_ids": { + "maxItemsOne": false } } }, @@ -5970,11 +5988,18 @@ "maxVcpu": "max_vcpu" }, "spotinst:azure/OceanNpFilters:OceanNpFilters": { + "acceleratedNetworking": "accelerated_networking", + "diskPerformance": "disk_performance", "excludeSeries": "exclude_series", + "maxGpu": "max_gpu", "maxMemoryGib": "max_memory_gib", "maxVcpu": "max_vcpu", + "minData": "min_data", + "minGpu": "min_gpu", "minMemoryGib": "min_memory_gib", - "minVcpu": "min_vcpu" + "minNics": "min_nics", + "minVcpu": "min_vcpu", + "vmTypes": "vm_types" }, "spotinst:azure/OceanNpHeadroom:OceanNpHeadroom": { "cpuPerUnit": "cpu_per_unit", @@ -5993,11 +6018,18 @@ "timeWindows": "time_windows" }, "spotinst:azure/OceanNpVirtualNodeGroupFilters:OceanNpVirtualNodeGroupFilters": { + "acceleratedNetworking": "accelerated_networking", + "diskPerformance": "disk_performance", "excludeSeries": "exclude_series", + "maxGpu": "max_gpu", "maxMemoryGib": "max_memory_gib", "maxVcpu": "max_vcpu", + "minData": "min_data", + "minGpu": "min_gpu", "minMemoryGib": "min_memory_gib", - "minVcpu": "min_vcpu" + "minNics": "min_nics", + "minVcpu": "min_vcpu", + "vmTypes": "vm_types" }, "spotinst:azure/OceanNpVirtualNodeGroupHeadroom:OceanNpVirtualNodeGroupHeadroom": { "cpuPerUnit": "cpu_per_unit", @@ -6094,7 +6126,9 @@ "osDiskType": "os_disk_type", "osSku": "os_sku", "osType": "os_type", - "spotPercentage": "spot_percentage" + "podSubnetIds": "pod_subnet_ids", + "spotPercentage": "spot_percentage", + "vnetSubnetIds": "vnet_subnet_ids" }, "spotinst:azure/oceanNpVirtualNodeGroup:OceanNpVirtualNodeGroup": { "availabilityZones": "availability_zones", @@ -6109,7 +6143,9 @@ "osDiskType": "os_disk_type", "osSku": "os_sku", "osType": "os_type", - "spotPercentage": "spot_percentage" + "podSubnetIds": "pod_subnet_ids", + "spotPercentage": "spot_percentage", + "vnetSubnetIds": "vnet_subnet_ids" }, "spotinst:azure/oceanVirtualNodeGroup:OceanVirtualNodeGroup": { "autoscales": "autoscale", diff --git a/provider/cmd/pulumi-resource-spotinst/schema.json b/provider/cmd/pulumi-resource-spotinst/schema.json index 70bde8dd..417eb12e 100644 --- a/provider/cmd/pulumi-resource-spotinst/schema.json +++ b/provider/cmd/pulumi-resource-spotinst/schema.json @@ -4906,27 +4906,45 @@ }, "spotinst:azure/OceanNpFilters:OceanNpFilters": { "properties": { + "acceleratedNetworking": { + "type": "string" + }, "architectures": { "type": "array", "items": { "type": "string" } }, + "diskPerformance": { + "type": "string" + }, "excludeSeries": { "type": "array", "items": { "type": "string" } }, + "maxGpu": { + "type": "number" + }, "maxMemoryGib": { "type": "number" }, "maxVcpu": { "type": "integer" }, + "minData": { + "type": "integer" + }, + "minGpu": { + "type": "number" + }, "minMemoryGib": { "type": "number" }, + "minNics": { + "type": "integer" + }, "minVcpu": { "type": "integer" }, @@ -4935,6 +4953,12 @@ "items": { "type": "string" } + }, + "vmTypes": { + "type": "array", + "items": { + "type": "string" + } } }, "type": "object" @@ -5010,27 +5034,45 @@ }, "spotinst:azure/OceanNpVirtualNodeGroupFilters:OceanNpVirtualNodeGroupFilters": { "properties": { + "acceleratedNetworking": { + "type": "string" + }, "architectures": { "type": "array", "items": { "type": "string" } }, + "diskPerformance": { + "type": "string" + }, "excludeSeries": { "type": "array", "items": { "type": "string" } }, + "maxGpu": { + "type": "number" + }, "maxMemoryGib": { "type": "number" }, "maxVcpu": { "type": "integer" }, + "minData": { + "type": "integer" + }, + "minGpu": { + "type": "number" + }, "minMemoryGib": { "type": "number" }, + "minNics": { + "type": "integer" + }, "minVcpu": { "type": "integer" }, @@ -5039,6 +5081,12 @@ "items": { "type": "string" } + }, + "vmTypes": { + "type": "array", + "items": { + "type": "string" + } } }, "type": "object" @@ -14032,6 +14080,12 @@ "osType": { "type": "string" }, + "podSubnetIds": { + "type": "array", + "items": { + "type": "string" + } + }, "scheduling": { "$ref": "#/types/spotinst:azure/OceanNpScheduling:OceanNpScheduling" }, @@ -14049,6 +14103,12 @@ "items": { "$ref": "#/types/spotinst:azure/OceanNpTaint:OceanNpTaint" } + }, + "vnetSubnetIds": { + "type": "array", + "items": { + "type": "string" + } } }, "required": [ @@ -14137,6 +14197,12 @@ "osType": { "type": "string" }, + "podSubnetIds": { + "type": "array", + "items": { + "type": "string" + } + }, "scheduling": { "$ref": "#/types/spotinst:azure/OceanNpScheduling:OceanNpScheduling" }, @@ -14154,6 +14220,12 @@ "items": { "$ref": "#/types/spotinst:azure/OceanNpTaint:OceanNpTaint" } + }, + "vnetSubnetIds": { + "type": "array", + "items": { + "type": "string" + } } }, "requiredInputs": [ @@ -14241,6 +14313,12 @@ "osType": { "type": "string" }, + "podSubnetIds": { + "type": "array", + "items": { + "type": "string" + } + }, "scheduling": { "$ref": "#/types/spotinst:azure/OceanNpScheduling:OceanNpScheduling" }, @@ -14258,6 +14336,12 @@ "items": { "$ref": "#/types/spotinst:azure/OceanNpTaint:OceanNpTaint" } + }, + "vnetSubnetIds": { + "type": "array", + "items": { + "type": "string" + } } }, "type": "object" @@ -14322,6 +14406,12 @@ "osType": { "type": "string" }, + "podSubnetIds": { + "type": "array", + "items": { + "type": "string" + } + }, "spotPercentage": { "type": "integer" }, @@ -14336,6 +14426,12 @@ "items": { "$ref": "#/types/spotinst:azure/OceanNpVirtualNodeGroupTaint:OceanNpVirtualNodeGroupTaint" } + }, + "vnetSubnetIds": { + "type": "array", + "items": { + "type": "string" + } } }, "required": [ @@ -14400,6 +14496,12 @@ "osType": { "type": "string" }, + "podSubnetIds": { + "type": "array", + "items": { + "type": "string" + } + }, "spotPercentage": { "type": "integer" }, @@ -14414,6 +14516,12 @@ "items": { "$ref": "#/types/spotinst:azure/OceanNpVirtualNodeGroupTaint:OceanNpVirtualNodeGroupTaint" } + }, + "vnetSubnetIds": { + "type": "array", + "items": { + "type": "string" + } } }, "requiredInputs": [ @@ -14479,6 +14587,12 @@ "osType": { "type": "string" }, + "podSubnetIds": { + "type": "array", + "items": { + "type": "string" + } + }, "spotPercentage": { "type": "integer" }, @@ -14493,6 +14607,12 @@ "items": { "$ref": "#/types/spotinst:azure/OceanNpVirtualNodeGroupTaint:OceanNpVirtualNodeGroupTaint" } + }, + "vnetSubnetIds": { + "type": "array", + "items": { + "type": "string" + } } }, "type": "object" diff --git a/provider/go.mod b/provider/go.mod index e3769e0d..b0c14e30 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -3,8 +3,8 @@ module github.com/pulumi/pulumi-spotinst/provider/v3 go 1.21 require ( - github.com/pulumi/pulumi-terraform-bridge/v3 v3.61.1-0.20231009164219-2654ed6ca3c8 - github.com/pulumi/pulumi/sdk/v3 v3.86.0 + github.com/pulumi/pulumi-terraform-bridge/v3 v3.62.0 + github.com/pulumi/pulumi/sdk/v3 v3.89.0 github.com/spotinst/terraform-provider-spotinst v0.0.0 ) @@ -199,14 +199,15 @@ require ( github.com/pkg/term v1.1.0 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect github.com/posener/complete v1.2.3 // indirect - github.com/pulumi/pulumi-java/pkg v0.9.6 // indirect + github.com/pulumi/esc v0.5.2 // indirect + github.com/pulumi/pulumi-java/pkg v0.9.8 // indirect github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.4 // indirect github.com/pulumi/pulumi-yaml v1.2.2 // indirect - github.com/pulumi/pulumi/pkg/v3 v3.86.0 // indirect + github.com/pulumi/pulumi/pkg/v3 v3.89.0 // indirect github.com/pulumi/schema-tools v0.1.2 // indirect github.com/pulumi/terraform-diff-reader v0.0.2 // indirect github.com/rivo/uniseg v0.4.4 // indirect - github.com/rogpeppe/go-internal v1.9.0 // indirect + github.com/rogpeppe/go-internal v1.11.0 // indirect github.com/russross/blackfriday/v2 v2.1.0 // indirect github.com/ryanuber/go-glob v1.0.0 // indirect github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 // indirect @@ -220,7 +221,7 @@ require ( github.com/spf13/cast v1.5.0 // indirect github.com/spf13/cobra v1.7.0 // indirect github.com/spf13/pflag v1.0.5 // indirect - github.com/spotinst/spotinst-sdk-go v1.179.0 // indirect + github.com/spotinst/spotinst-sdk-go v1.181.0 // indirect github.com/stretchr/testify v1.8.4 // indirect github.com/texttheater/golang-levenshtein v1.0.1 // indirect github.com/tweekmonster/luser v0.0.0-20161003172636-3fa38070dbd7 // indirect @@ -240,15 +241,16 @@ require ( gocloud.dev v0.27.0 // indirect gocloud.dev/secrets/hashivault v0.27.0 // indirect golang.org/x/crypto v0.14.0 // indirect - golang.org/x/mod v0.12.0 // indirect + golang.org/x/exp v0.0.0-20231006140011-7918f672742d // indirect + golang.org/x/mod v0.13.0 // indirect golang.org/x/net v0.17.0 // indirect golang.org/x/oauth2 v0.8.0 // indirect - golang.org/x/sync v0.2.0 // indirect + golang.org/x/sync v0.4.0 // indirect golang.org/x/sys v0.13.0 // indirect golang.org/x/term v0.13.0 // indirect golang.org/x/text v0.13.0 // indirect golang.org/x/time v0.3.0 // indirect - golang.org/x/tools v0.9.3 // indirect + golang.org/x/tools v0.14.0 // indirect golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect google.golang.org/api v0.126.0 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/provider/go.sum b/provider/go.sum index 8060122b..28245856 100644 --- a/provider/go.sum +++ b/provider/go.sum @@ -2210,20 +2210,22 @@ github.com/prometheus/procfs v0.7.3/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1 github.com/prometheus/prometheus v0.35.0/go.mod h1:7HaLx5kEPKJ0GDgbODG0fZgXbQ8K/XjZNJXQmbmgQlY= github.com/prometheus/prometheus v0.37.0/go.mod h1:egARUgz+K93zwqsVIAneFlLZefyGOON44WyAp4Xqbbk= github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= -github.com/pulumi/pulumi-java/pkg v0.9.6 h1:UJrOAsYHRchwb4QlfI9Q224qg1TOI3rIsI6DDTUnn30= -github.com/pulumi/pulumi-java/pkg v0.9.6/go.mod h1:c6rSw/+q4O0IImgJ9axxoC6QesbPYWBaG5gimbHouUQ= +github.com/pulumi/esc v0.5.2 h1:Wnr0oXy8MAyRMtVrMHPI2frjyuylVnU47ReFPNjE3C0= +github.com/pulumi/esc v0.5.2/go.mod h1:lp6lkE9JrifhmjlXVH9//Rj45OETlVPHZKvoNRyU54Q= +github.com/pulumi/pulumi-java/pkg v0.9.8 h1:c8mYsalnRXA2Ibgvv6scefOn6mW1Vb0UT0mcDqjsivQ= +github.com/pulumi/pulumi-java/pkg v0.9.8/go.mod h1:c6rSw/+q4O0IImgJ9axxoC6QesbPYWBaG5gimbHouUQ= github.com/pulumi/pulumi-terraform-bridge/testing v0.0.1 h1:SCg1gjfY9N4yn8U8peIUYATifjoDABkyR7H9lmefsfc= github.com/pulumi/pulumi-terraform-bridge/testing v0.0.1/go.mod h1:7OeUPH8rpt5ipyj9EFcnXpuzQ8SHL0dyqdfa8nOacdk= -github.com/pulumi/pulumi-terraform-bridge/v3 v3.61.1-0.20231009164219-2654ed6ca3c8 h1:eZ9UkF/HcR+L5yKQmSi0yclFwglxUgVXQ/jzIAtkp8c= -github.com/pulumi/pulumi-terraform-bridge/v3 v3.61.1-0.20231009164219-2654ed6ca3c8/go.mod h1:k6iVhOWqTkMWxMdd7njoSkPXBJC/T2Rs44Iif3yDgXw= +github.com/pulumi/pulumi-terraform-bridge/v3 v3.62.0 h1:oZNwz2YupCstNNwxCcUaEBV6iL6wikiAqjas9ufR4yE= +github.com/pulumi/pulumi-terraform-bridge/v3 v3.62.0/go.mod h1:8UuPmsuaGgUDUSsRKhoSf5J6SlfjHioKO+XeEWfXQfE= github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.4 h1:rIzMmtcVpPX8ynaz6/nW5AHNY63DiNfCohqmxWvMpM4= github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.4/go.mod h1:Kt8RIZWa/N8rW3+0g6NrqCBmF3o+HuIhFaZpssEkG6w= github.com/pulumi/pulumi-yaml v1.2.2 h1:W6BeUBLhDrJ2GSU0em1AUVelG9PBI4ABY61DdhJOO3E= github.com/pulumi/pulumi-yaml v1.2.2/go.mod h1:EgakC7b/4+VBNnlgM1RZIea2gUstV8s/7bdFJZt0P64= -github.com/pulumi/pulumi/pkg/v3 v3.86.0 h1:G4spuT89ZN8lSxT9WkMF/JaP7n+wu7ubEly7Yy8uza0= -github.com/pulumi/pulumi/pkg/v3 v3.86.0/go.mod h1:Qs55gPhUwM/Dua3VRtHXLLlpY8uEe+llDBIZc+1pvHM= -github.com/pulumi/pulumi/sdk/v3 v3.86.0 h1:Cxg0rGdvMt9GqGvesFTj8+WaO/ihmALYlQf4zm1GzFw= -github.com/pulumi/pulumi/sdk/v3 v3.86.0/go.mod h1:vexSGJ5L834l3T7Fo/KpdywjGAgZ2CvChuqGFl+ebS0= +github.com/pulumi/pulumi/pkg/v3 v3.89.0 h1:4gaR9ZerHqtc0NYcq7TLxhj2029H9CtRrirmibyLw/E= +github.com/pulumi/pulumi/pkg/v3 v3.89.0/go.mod h1:5DIoI81I+NmW/y2BDlQR4CwnzTeVwkI3DZ4FBnSprXs= +github.com/pulumi/pulumi/sdk/v3 v3.89.0 h1:WlkOQ4Q/Xyxu4lckGWssNI4Wdrobo5Zb7JQVoFVkzMo= +github.com/pulumi/pulumi/sdk/v3 v3.89.0/go.mod h1:XBIlxfHv/jnRj6v8rXP79Z3E11jQz/Ky+bDhwVAHOPk= github.com/pulumi/schema-tools v0.1.2 h1:Fd9xvUjgck4NA+7/jSk7InqCUT4Kj940+EcnbQKpfZo= github.com/pulumi/schema-tools v0.1.2/go.mod h1:62lgj52Tzq11eqWTIaKd+EVyYAu5dEcDJxMhTjvMO/k= github.com/pulumi/terraform-diff-reader v0.0.2 h1:kTE4nEXU3/SYXESvAIem+wyHMI3abqkI3OhJ0G04LLI= @@ -2244,8 +2246,9 @@ github.com/rogpeppe/go-internal v1.1.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFR github.com/rogpeppe/go-internal v1.2.2/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= github.com/rogpeppe/go-internal v1.6.1/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc= -github.com/rogpeppe/go-internal v1.9.0 h1:73kH8U+JUqXU8lRuOHeVHaa/SZPifC7BkcraZVejAe8= github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs= +github.com/rogpeppe/go-internal v1.11.0 h1:cWPaGQEPrBb5/AsnsZesgZZ9yb1OQ+GOISoDNXVBh4M= +github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUzkipdSkR5nkCZA= github.com/rs/cors v1.8.2/go.mod h1:XyqrcTp5zjWr1wsJ8PIRZssZ8b/WMcMf71DJnit4EMU= github.com/rs/xid v1.2.1/go.mod h1:+uKXf+4Djp6Md1KODXJxgGQPKngRmWyn10oCKFzNHOQ= github.com/rs/zerolog v1.13.0/go.mod h1:YbFCdg8HfsridGWAh22vktObvhZbQsZXe4/zB0OKkWU= @@ -2339,8 +2342,8 @@ github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= github.com/spf13/viper v1.4.0/go.mod h1:PTJ7Z/lr49W6bUbkmS1V3by4uWynFiR9p7+dSq/yZzE= github.com/spf13/viper v1.7.0/go.mod h1:8WkrPz2fc9jxqZNCJI/76HCieCp4Q8HaLFoCha5qpdg= -github.com/spotinst/spotinst-sdk-go v1.179.0 h1:e/ijE/fumXmlnm1meOPvxjvytx92S2aHM5NiYkZxVCw= -github.com/spotinst/spotinst-sdk-go v1.179.0/go.mod h1:XBphO/VlaxENgGAyx3x+oE/3c9Jq7/WKBynN3Xy3Qrg= +github.com/spotinst/spotinst-sdk-go v1.181.0 h1:y7PnxLCJ5nluVt3MSk4oAleShX6VZ61//z34refefC0= +github.com/spotinst/spotinst-sdk-go v1.181.0/go.mod h1:XBphO/VlaxENgGAyx3x+oE/3c9Jq7/WKBynN3Xy3Qrg= github.com/stefanberger/go-pkcs11uri v0.0.0-20201008174630-78d3cae3a980/go.mod h1:AO3tvPzVZ/ayst6UlUKUv6rcPQInYe3IknH3jYhAKu8= github.com/stoewer/go-strcase v1.2.0/go.mod h1:IBiWB2sKIp3wVVQ3Y035++gc+knqhUQag1KpM8ahLw8= github.com/streadway/amqp v0.0.0-20190404075320-75d898a42a94/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw= @@ -2635,6 +2638,8 @@ golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u0 golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM= golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU= golang.org/x/exp v0.0.0-20220827204233-334a2380cb91/go.mod h1:cyybsKvd6eL0RnXn6p/Grxp8F5bW7iYuBgsNCOHpMYE= +golang.org/x/exp v0.0.0-20231006140011-7918f672742d h1:jtJma62tbqLibJ5sFQz8bKtEM8rJBtfilJ2qTU199MI= +golang.org/x/exp v0.0.0-20231006140011-7918f672742d/go.mod h1:ldy0pHrwJyGW56pPQzzkH36rKxoZW1tw7ZJpeKx+hdo= golang.org/x/image v0.0.0-20180708004352-c73c2afc3b81/go.mod h1:ux5Hcp/YLpHSI86hEcLt0YII63i6oz57MZXIpbrjZUs= golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= @@ -2679,8 +2684,9 @@ golang.org/x/mod v0.6.0/go.mod h1:4mET923SAdbXp2ki8ey+zGs1SLqsuM2Y0uvdZR/fUNI= golang.org/x/mod v0.7.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/mod v0.9.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= -golang.org/x/mod v0.12.0 h1:rmsUpXtvNzj340zd98LZ4KntptpfRHwpFOHG188oHXc= golang.org/x/mod v0.12.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= +golang.org/x/mod v0.13.0 h1:I/DsJXRlw/8l/0c24sM9yb0T4z9liZTduXvdAWYiysY= +golang.org/x/mod v0.13.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= golang.org/x/net v0.0.0-20180530234432-1e491301e022/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180811021610-c39426892332/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= @@ -2833,8 +2839,8 @@ golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20220819030929-7fc1605a5dde/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220929204114-8fcdb60fdcc0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.2.0 h1:PUR+T4wwASmuSTYdKjYHI5TD22Wy5ogLU5qZCOLxBrI= -golang.org/x/sync v0.2.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.4.0 h1:zxkM55ReGkDlKSM+Fu41A+zmbZuaPVbGMzvvdUPznYQ= +golang.org/x/sync v0.4.0/go.mod h1:FU7BRWz2tNW+3quACPkgCx/L+uEAv1htQ0V83Z9Rj+Y= golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -3146,8 +3152,8 @@ golang.org/x/tools v0.2.0/go.mod h1:y4OqIKeOV/fWJetJ8bXPU1sEVniLMIyDAZWeHdV+NTA= golang.org/x/tools v0.3.0/go.mod h1:/rWhSS2+zyEVwoJf8YAX6L2f0ntZ7Kn/mGgAWcipA5k= golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= golang.org/x/tools v0.7.0/go.mod h1:4pg6aUX35JBAogB10C9AtvVL+qowtN4pT3CGSQex14s= -golang.org/x/tools v0.9.3 h1:Gn1I8+64MsuTb/HpH+LmQtNas23LhUVr3rYZ0eKuaMM= -golang.org/x/tools v0.9.3/go.mod h1:owI94Op576fPu3cIGQeHs3joujW/2Oc6MtlxbF5dfNc= +golang.org/x/tools v0.14.0 h1:jvNa2pY0M4r62jkRQ6RwEZZyPcymeL9XZMLBbV7U2nc= +golang.org/x/tools v0.14.0/go.mod h1:uYBEerGOWcJyEORxN+Ek8+TT266gXkNlHdJBwexUsBg= golang.org/x/xerrors v0.0.0-20190410155217-1f06c39b4373/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20190513163551-3ee3066db522/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= diff --git a/sdk/dotnet/Azure/Inputs/OceanNpFiltersArgs.cs b/sdk/dotnet/Azure/Inputs/OceanNpFiltersArgs.cs index 31316fe6..3fcb8dba 100644 --- a/sdk/dotnet/Azure/Inputs/OceanNpFiltersArgs.cs +++ b/sdk/dotnet/Azure/Inputs/OceanNpFiltersArgs.cs @@ -12,6 +12,9 @@ namespace Pulumi.SpotInst.Azure.Inputs public sealed class OceanNpFiltersArgs : global::Pulumi.ResourceArgs { + [Input("acceleratedNetworking")] + public Input? AcceleratedNetworking { get; set; } + [Input("architectures")] private InputList? _architectures; public InputList Architectures @@ -20,6 +23,9 @@ public InputList Architectures set => _architectures = value; } + [Input("diskPerformance")] + public Input? DiskPerformance { get; set; } + [Input("excludeSeries")] private InputList? _excludeSeries; public InputList ExcludeSeries @@ -28,15 +34,27 @@ public InputList ExcludeSeries set => _excludeSeries = value; } + [Input("maxGpu")] + public Input? MaxGpu { get; set; } + [Input("maxMemoryGib")] public Input? MaxMemoryGib { get; set; } [Input("maxVcpu")] public Input? MaxVcpu { get; set; } + [Input("minData")] + public Input? MinData { get; set; } + + [Input("minGpu")] + public Input? MinGpu { get; set; } + [Input("minMemoryGib")] public Input? MinMemoryGib { get; set; } + [Input("minNics")] + public Input? MinNics { get; set; } + [Input("minVcpu")] public Input? MinVcpu { get; set; } @@ -48,6 +66,14 @@ public InputList Series set => _series = value; } + [Input("vmTypes")] + private InputList? _vmTypes; + public InputList VmTypes + { + get => _vmTypes ?? (_vmTypes = new InputList()); + set => _vmTypes = value; + } + public OceanNpFiltersArgs() { } diff --git a/sdk/dotnet/Azure/Inputs/OceanNpFiltersGetArgs.cs b/sdk/dotnet/Azure/Inputs/OceanNpFiltersGetArgs.cs index 866422ed..0686bb19 100644 --- a/sdk/dotnet/Azure/Inputs/OceanNpFiltersGetArgs.cs +++ b/sdk/dotnet/Azure/Inputs/OceanNpFiltersGetArgs.cs @@ -12,6 +12,9 @@ namespace Pulumi.SpotInst.Azure.Inputs public sealed class OceanNpFiltersGetArgs : global::Pulumi.ResourceArgs { + [Input("acceleratedNetworking")] + public Input? AcceleratedNetworking { get; set; } + [Input("architectures")] private InputList? _architectures; public InputList Architectures @@ -20,6 +23,9 @@ public InputList Architectures set => _architectures = value; } + [Input("diskPerformance")] + public Input? DiskPerformance { get; set; } + [Input("excludeSeries")] private InputList? _excludeSeries; public InputList ExcludeSeries @@ -28,15 +34,27 @@ public InputList ExcludeSeries set => _excludeSeries = value; } + [Input("maxGpu")] + public Input? MaxGpu { get; set; } + [Input("maxMemoryGib")] public Input? MaxMemoryGib { get; set; } [Input("maxVcpu")] public Input? MaxVcpu { get; set; } + [Input("minData")] + public Input? MinData { get; set; } + + [Input("minGpu")] + public Input? MinGpu { get; set; } + [Input("minMemoryGib")] public Input? MinMemoryGib { get; set; } + [Input("minNics")] + public Input? MinNics { get; set; } + [Input("minVcpu")] public Input? MinVcpu { get; set; } @@ -48,6 +66,14 @@ public InputList Series set => _series = value; } + [Input("vmTypes")] + private InputList? _vmTypes; + public InputList VmTypes + { + get => _vmTypes ?? (_vmTypes = new InputList()); + set => _vmTypes = value; + } + public OceanNpFiltersGetArgs() { } diff --git a/sdk/dotnet/Azure/Inputs/OceanNpVirtualNodeGroupFiltersArgs.cs b/sdk/dotnet/Azure/Inputs/OceanNpVirtualNodeGroupFiltersArgs.cs index c63bf58a..c3bb89b5 100644 --- a/sdk/dotnet/Azure/Inputs/OceanNpVirtualNodeGroupFiltersArgs.cs +++ b/sdk/dotnet/Azure/Inputs/OceanNpVirtualNodeGroupFiltersArgs.cs @@ -12,6 +12,9 @@ namespace Pulumi.SpotInst.Azure.Inputs public sealed class OceanNpVirtualNodeGroupFiltersArgs : global::Pulumi.ResourceArgs { + [Input("acceleratedNetworking")] + public Input? AcceleratedNetworking { get; set; } + [Input("architectures")] private InputList? _architectures; public InputList Architectures @@ -20,6 +23,9 @@ public InputList Architectures set => _architectures = value; } + [Input("diskPerformance")] + public Input? DiskPerformance { get; set; } + [Input("excludeSeries")] private InputList? _excludeSeries; public InputList ExcludeSeries @@ -28,15 +34,27 @@ public InputList ExcludeSeries set => _excludeSeries = value; } + [Input("maxGpu")] + public Input? MaxGpu { get; set; } + [Input("maxMemoryGib")] public Input? MaxMemoryGib { get; set; } [Input("maxVcpu")] public Input? MaxVcpu { get; set; } + [Input("minData")] + public Input? MinData { get; set; } + + [Input("minGpu")] + public Input? MinGpu { get; set; } + [Input("minMemoryGib")] public Input? MinMemoryGib { get; set; } + [Input("minNics")] + public Input? MinNics { get; set; } + [Input("minVcpu")] public Input? MinVcpu { get; set; } @@ -48,6 +66,14 @@ public InputList Series set => _series = value; } + [Input("vmTypes")] + private InputList? _vmTypes; + public InputList VmTypes + { + get => _vmTypes ?? (_vmTypes = new InputList()); + set => _vmTypes = value; + } + public OceanNpVirtualNodeGroupFiltersArgs() { } diff --git a/sdk/dotnet/Azure/Inputs/OceanNpVirtualNodeGroupFiltersGetArgs.cs b/sdk/dotnet/Azure/Inputs/OceanNpVirtualNodeGroupFiltersGetArgs.cs index fc8df178..93389b97 100644 --- a/sdk/dotnet/Azure/Inputs/OceanNpVirtualNodeGroupFiltersGetArgs.cs +++ b/sdk/dotnet/Azure/Inputs/OceanNpVirtualNodeGroupFiltersGetArgs.cs @@ -12,6 +12,9 @@ namespace Pulumi.SpotInst.Azure.Inputs public sealed class OceanNpVirtualNodeGroupFiltersGetArgs : global::Pulumi.ResourceArgs { + [Input("acceleratedNetworking")] + public Input? AcceleratedNetworking { get; set; } + [Input("architectures")] private InputList? _architectures; public InputList Architectures @@ -20,6 +23,9 @@ public InputList Architectures set => _architectures = value; } + [Input("diskPerformance")] + public Input? DiskPerformance { get; set; } + [Input("excludeSeries")] private InputList? _excludeSeries; public InputList ExcludeSeries @@ -28,15 +34,27 @@ public InputList ExcludeSeries set => _excludeSeries = value; } + [Input("maxGpu")] + public Input? MaxGpu { get; set; } + [Input("maxMemoryGib")] public Input? MaxMemoryGib { get; set; } [Input("maxVcpu")] public Input? MaxVcpu { get; set; } + [Input("minData")] + public Input? MinData { get; set; } + + [Input("minGpu")] + public Input? MinGpu { get; set; } + [Input("minMemoryGib")] public Input? MinMemoryGib { get; set; } + [Input("minNics")] + public Input? MinNics { get; set; } + [Input("minVcpu")] public Input? MinVcpu { get; set; } @@ -48,6 +66,14 @@ public InputList Series set => _series = value; } + [Input("vmTypes")] + private InputList? _vmTypes; + public InputList VmTypes + { + get => _vmTypes ?? (_vmTypes = new InputList()); + set => _vmTypes = value; + } + public OceanNpVirtualNodeGroupFiltersGetArgs() { } diff --git a/sdk/dotnet/Azure/OceanNp.cs b/sdk/dotnet/Azure/OceanNp.cs index 2e303a52..40fdc9bc 100644 --- a/sdk/dotnet/Azure/OceanNp.cs +++ b/sdk/dotnet/Azure/OceanNp.cs @@ -78,6 +78,9 @@ public partial class OceanNp : global::Pulumi.CustomResource [Output("osType")] public Output OsType { get; private set; } = null!; + [Output("podSubnetIds")] + public Output> PodSubnetIds { get; private set; } = null!; + [Output("scheduling")] public Output Scheduling { get; private set; } = null!; @@ -90,6 +93,9 @@ public partial class OceanNp : global::Pulumi.CustomResource [Output("taints")] public Output> Taints { get; private set; } = null!; + [Output("vnetSubnetIds")] + public Output> VnetSubnetIds { get; private set; } = null!; + /// /// Create a OceanNp resource with the given unique name, arguments, and options. @@ -217,6 +223,14 @@ public InputMap Labels [Input("osType")] public Input? OsType { get; set; } + [Input("podSubnetIds")] + private InputList? _podSubnetIds; + public InputList PodSubnetIds + { + get => _podSubnetIds ?? (_podSubnetIds = new InputList()); + set => _podSubnetIds = value; + } + [Input("scheduling")] public Input? Scheduling { get; set; } @@ -239,6 +253,14 @@ public InputList Taints set => _taints = value; } + [Input("vnetSubnetIds")] + private InputList? _vnetSubnetIds; + public InputList VnetSubnetIds + { + get => _vnetSubnetIds ?? (_vnetSubnetIds = new InputList()); + set => _vnetSubnetIds = value; + } + public OceanNpArgs() { } @@ -328,6 +350,14 @@ public InputMap Labels [Input("osType")] public Input? OsType { get; set; } + [Input("podSubnetIds")] + private InputList? _podSubnetIds; + public InputList PodSubnetIds + { + get => _podSubnetIds ?? (_podSubnetIds = new InputList()); + set => _podSubnetIds = value; + } + [Input("scheduling")] public Input? Scheduling { get; set; } @@ -350,6 +380,14 @@ public InputList Taints set => _taints = value; } + [Input("vnetSubnetIds")] + private InputList? _vnetSubnetIds; + public InputList VnetSubnetIds + { + get => _vnetSubnetIds ?? (_vnetSubnetIds = new InputList()); + set => _vnetSubnetIds = value; + } + public OceanNpState() { } diff --git a/sdk/dotnet/Azure/OceanNpVirtualNodeGroup.cs b/sdk/dotnet/Azure/OceanNpVirtualNodeGroup.cs index d2ef931b..a535bb00 100644 --- a/sdk/dotnet/Azure/OceanNpVirtualNodeGroup.cs +++ b/sdk/dotnet/Azure/OceanNpVirtualNodeGroup.cs @@ -60,6 +60,9 @@ public partial class OceanNpVirtualNodeGroup : global::Pulumi.CustomResource [Output("osType")] public Output OsType { get; private set; } = null!; + [Output("podSubnetIds")] + public Output> PodSubnetIds { get; private set; } = null!; + [Output("spotPercentage")] public Output SpotPercentage { get; private set; } = null!; @@ -69,6 +72,9 @@ public partial class OceanNpVirtualNodeGroup : global::Pulumi.CustomResource [Output("taints")] public Output> Taints { get; private set; } = null!; + [Output("vnetSubnetIds")] + public Output> VnetSubnetIds { get; private set; } = null!; + /// /// Create a OceanNpVirtualNodeGroup resource with the given unique name, arguments, and options. @@ -178,6 +184,14 @@ public InputMap Labels [Input("osType")] public Input? OsType { get; set; } + [Input("podSubnetIds")] + private InputList? _podSubnetIds; + public InputList PodSubnetIds + { + get => _podSubnetIds ?? (_podSubnetIds = new InputList()); + set => _podSubnetIds = value; + } + [Input("spotPercentage")] public Input? SpotPercentage { get; set; } @@ -197,6 +211,14 @@ public InputList Taints set => _taints = value; } + [Input("vnetSubnetIds")] + private InputList? _vnetSubnetIds; + public InputList VnetSubnetIds + { + get => _vnetSubnetIds ?? (_vnetSubnetIds = new InputList()); + set => _vnetSubnetIds = value; + } + public OceanNpVirtualNodeGroupArgs() { } @@ -268,6 +290,14 @@ public InputMap Labels [Input("osType")] public Input? OsType { get; set; } + [Input("podSubnetIds")] + private InputList? _podSubnetIds; + public InputList PodSubnetIds + { + get => _podSubnetIds ?? (_podSubnetIds = new InputList()); + set => _podSubnetIds = value; + } + [Input("spotPercentage")] public Input? SpotPercentage { get; set; } @@ -287,6 +317,14 @@ public InputList Taints set => _taints = value; } + [Input("vnetSubnetIds")] + private InputList? _vnetSubnetIds; + public InputList VnetSubnetIds + { + get => _vnetSubnetIds ?? (_vnetSubnetIds = new InputList()); + set => _vnetSubnetIds = value; + } + public OceanNpVirtualNodeGroupState() { } diff --git a/sdk/dotnet/Azure/Outputs/OceanNpFilters.cs b/sdk/dotnet/Azure/Outputs/OceanNpFilters.cs index d3c80d7f..2d370ace 100644 --- a/sdk/dotnet/Azure/Outputs/OceanNpFilters.cs +++ b/sdk/dotnet/Azure/Outputs/OceanNpFilters.cs @@ -13,37 +13,65 @@ namespace Pulumi.SpotInst.Azure.Outputs [OutputType] public sealed class OceanNpFilters { + public readonly string? AcceleratedNetworking; public readonly ImmutableArray Architectures; + public readonly string? DiskPerformance; public readonly ImmutableArray ExcludeSeries; + public readonly double? MaxGpu; public readonly double? MaxMemoryGib; public readonly int? MaxVcpu; + public readonly int? MinData; + public readonly double? MinGpu; public readonly double? MinMemoryGib; + public readonly int? MinNics; public readonly int? MinVcpu; public readonly ImmutableArray Series; + public readonly ImmutableArray VmTypes; [OutputConstructor] private OceanNpFilters( + string? acceleratedNetworking, + ImmutableArray architectures, + string? diskPerformance, + ImmutableArray excludeSeries, + double? maxGpu, + double? maxMemoryGib, int? maxVcpu, + int? minData, + + double? minGpu, + double? minMemoryGib, + int? minNics, + int? minVcpu, - ImmutableArray series) + ImmutableArray series, + + ImmutableArray vmTypes) { + AcceleratedNetworking = acceleratedNetworking; Architectures = architectures; + DiskPerformance = diskPerformance; ExcludeSeries = excludeSeries; + MaxGpu = maxGpu; MaxMemoryGib = maxMemoryGib; MaxVcpu = maxVcpu; + MinData = minData; + MinGpu = minGpu; MinMemoryGib = minMemoryGib; + MinNics = minNics; MinVcpu = minVcpu; Series = series; + VmTypes = vmTypes; } } } diff --git a/sdk/dotnet/Azure/Outputs/OceanNpVirtualNodeGroupFilters.cs b/sdk/dotnet/Azure/Outputs/OceanNpVirtualNodeGroupFilters.cs index 36ad4cde..479b074c 100644 --- a/sdk/dotnet/Azure/Outputs/OceanNpVirtualNodeGroupFilters.cs +++ b/sdk/dotnet/Azure/Outputs/OceanNpVirtualNodeGroupFilters.cs @@ -13,37 +13,65 @@ namespace Pulumi.SpotInst.Azure.Outputs [OutputType] public sealed class OceanNpVirtualNodeGroupFilters { + public readonly string? AcceleratedNetworking; public readonly ImmutableArray Architectures; + public readonly string? DiskPerformance; public readonly ImmutableArray ExcludeSeries; + public readonly double? MaxGpu; public readonly double? MaxMemoryGib; public readonly int? MaxVcpu; + public readonly int? MinData; + public readonly double? MinGpu; public readonly double? MinMemoryGib; + public readonly int? MinNics; public readonly int? MinVcpu; public readonly ImmutableArray Series; + public readonly ImmutableArray VmTypes; [OutputConstructor] private OceanNpVirtualNodeGroupFilters( + string? acceleratedNetworking, + ImmutableArray architectures, + string? diskPerformance, + ImmutableArray excludeSeries, + double? maxGpu, + double? maxMemoryGib, int? maxVcpu, + int? minData, + + double? minGpu, + double? minMemoryGib, + int? minNics, + int? minVcpu, - ImmutableArray series) + ImmutableArray series, + + ImmutableArray vmTypes) { + AcceleratedNetworking = acceleratedNetworking; Architectures = architectures; + DiskPerformance = diskPerformance; ExcludeSeries = excludeSeries; + MaxGpu = maxGpu; MaxMemoryGib = maxMemoryGib; MaxVcpu = maxVcpu; + MinData = minData; + MinGpu = minGpu; MinMemoryGib = minMemoryGib; + MinNics = minNics; MinVcpu = minVcpu; Series = series; + VmTypes = vmTypes; } } } diff --git a/sdk/go.mod b/sdk/go.mod index 75e4711d..ccf579d7 100644 --- a/sdk/go.mod +++ b/sdk/go.mod @@ -4,7 +4,7 @@ go 1.21 require ( github.com/blang/semver v3.5.1+incompatible - github.com/pulumi/pulumi/sdk/v3 v3.86.0 + github.com/pulumi/pulumi/sdk/v3 v3.89.0 ) require ( @@ -12,7 +12,7 @@ require ( github.com/ProtonMail/go-crypto v0.0.0-20221026131551-cf6655e29de4 // indirect github.com/acomagu/bufpipe v1.0.3 // indirect github.com/aead/chacha20 v0.0.0-20180709150244-8b13a72661da // indirect - github.com/agext/levenshtein v1.2.1 // indirect + github.com/agext/levenshtein v1.2.3 // indirect github.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect github.com/atotto/clipboard v0.1.4 // indirect github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect @@ -33,9 +33,9 @@ require ( github.com/grpc-ecosystem/grpc-opentracing v0.0.0-20180507213350-8e809c8a8645 // indirect github.com/hashicorp/errwrap v1.1.0 // indirect github.com/hashicorp/go-multierror v1.1.1 // indirect - github.com/hashicorp/hcl/v2 v2.16.1 // indirect + github.com/hashicorp/hcl/v2 v2.17.0 // indirect github.com/imdario/mergo v0.3.13 // indirect - github.com/inconshreveable/mousetrap v1.0.1 // indirect + github.com/inconshreveable/mousetrap v1.1.0 // indirect github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect github.com/kevinburke/ssh_config v1.2.0 // indirect github.com/lucasb-eyer/go-colorful v1.2.0 // indirect @@ -43,7 +43,7 @@ require ( github.com/mattn/go-localereader v0.0.1 // indirect github.com/mattn/go-runewidth v0.0.14 // indirect github.com/mitchellh/go-ps v1.0.0 // indirect - github.com/mitchellh/go-wordwrap v0.0.0-20150314170334-ad45545899c7 // indirect + github.com/mitchellh/go-wordwrap v1.0.1 // indirect github.com/muesli/ansi v0.0.0-20211018074035-2e021307bc4b // indirect github.com/muesli/cancelreader v0.2.2 // indirect github.com/muesli/reflow v0.3.0 // indirect @@ -53,14 +53,15 @@ require ( github.com/pjbgf/sha1cd v0.3.0 // indirect github.com/pkg/errors v0.9.1 // indirect github.com/pkg/term v1.1.0 // indirect + github.com/pulumi/esc v0.5.2 // indirect github.com/rivo/uniseg v0.4.4 // indirect - github.com/rogpeppe/go-internal v1.9.0 // indirect + github.com/rogpeppe/go-internal v1.11.0 // indirect github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 // indirect github.com/santhosh-tekuri/jsonschema/v5 v5.0.0 // indirect - github.com/sergi/go-diff v1.2.0 // indirect + github.com/sergi/go-diff v1.3.1 // indirect github.com/skeema/knownhosts v1.1.0 // indirect github.com/spf13/cast v1.4.1 // indirect - github.com/spf13/cobra v1.6.1 // indirect + github.com/spf13/cobra v1.7.0 // indirect github.com/spf13/pflag v1.0.5 // indirect github.com/stretchr/objx v0.5.0 // indirect github.com/texttheater/golang-levenshtein v1.0.1 // indirect @@ -68,11 +69,12 @@ require ( github.com/uber/jaeger-client-go v2.30.0+incompatible // indirect github.com/uber/jaeger-lib v2.4.1+incompatible // indirect github.com/xanzy/ssh-agent v0.3.3 // indirect - github.com/zclconf/go-cty v1.12.1 // indirect + github.com/zclconf/go-cty v1.13.2 // indirect go.uber.org/atomic v1.9.0 // indirect golang.org/x/crypto v0.14.0 // indirect + golang.org/x/exp v0.0.0-20231006140011-7918f672742d // indirect golang.org/x/net v0.17.0 // indirect - golang.org/x/sync v0.1.0 // indirect + golang.org/x/sync v0.2.0 // indirect golang.org/x/sys v0.13.0 // indirect golang.org/x/term v0.13.0 // indirect golang.org/x/text v0.13.0 // indirect diff --git a/sdk/go.sum b/sdk/go.sum index f2b81d84..5ca0f46f 100644 --- a/sdk/go.sum +++ b/sdk/go.sum @@ -8,8 +8,8 @@ github.com/acomagu/bufpipe v1.0.3 h1:fxAGrHZTgQ9w5QqVItgzwj235/uYZYgbXitB+dLupOk github.com/acomagu/bufpipe v1.0.3/go.mod h1:mxdxdup/WdsKVreO5GpW4+M/1CE2sMG4jeGJ2sYmHc4= github.com/aead/chacha20 v0.0.0-20180709150244-8b13a72661da h1:KjTM2ks9d14ZYCvmHS9iAKVt9AyzRSqNU1qabPih5BY= github.com/aead/chacha20 v0.0.0-20180709150244-8b13a72661da/go.mod h1:eHEWzANqSiWQsof+nXEI9bUVUyV6F53Fp89EuCh2EAA= -github.com/agext/levenshtein v1.2.1 h1:QmvMAjj2aEICytGiWzmxoE0x2KZvE0fvmqMOfy2tjT8= -github.com/agext/levenshtein v1.2.1/go.mod h1:JEDfjyjHDjOF/1e4FlBE/PkbqA9OfWu2ki2W0IB5558= +github.com/agext/levenshtein v1.2.3 h1:YB2fHEn0UJagG8T1rrWknE3ZQzWM06O8AMAatNn7lmo= +github.com/agext/levenshtein v1.2.3/go.mod h1:JEDfjyjHDjOF/1e4FlBE/PkbqA9OfWu2ki2W0IB5558= github.com/anmitsu/go-shlex v0.0.0-20200514113438-38f4b401e2be h1:9AeTilPcZAjCFIImctFaOjnTIavg87rW78vTPkQqLI8= github.com/anmitsu/go-shlex v0.0.0-20200514113438-38f4b401e2be/go.mod h1:ySMOLuWl6zY27l47sB3qLNK6tF2fkHG55UZxx8oIVo4= github.com/apparentlymart/go-textseg/v13 v13.0.0 h1:Y+KvPE1NYz0xl601PVImeQfFyEy6iT90AvPUL1NNfNw= @@ -77,12 +77,12 @@ github.com/hashicorp/errwrap v1.1.0 h1:OxrOeh75EUXMY8TBjag2fzXGZ40LB6IKw45YeGUDY github.com/hashicorp/errwrap v1.1.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+lD48awMYo= github.com/hashicorp/go-multierror v1.1.1/go.mod h1:iw975J/qwKPdAO1clOe2L8331t/9/fmwbPZ6JB6eMoM= -github.com/hashicorp/hcl/v2 v2.16.1 h1:BwuxEMD/tsYgbhIW7UuI3crjovf3MzuFWiVgiv57iHg= -github.com/hashicorp/hcl/v2 v2.16.1/go.mod h1:JRmR89jycNkrrqnMmvPDMd56n1rQJ2Q6KocSLCMCXng= +github.com/hashicorp/hcl/v2 v2.17.0 h1:z1XvSUyXd1HP10U4lrLg5e0JMVz6CPaJvAgxM0KNZVY= +github.com/hashicorp/hcl/v2 v2.17.0/go.mod h1:gJyW2PTShkJqQBKpAmPO3yxMxIuoXkOF2TpqXzrQyx4= github.com/imdario/mergo v0.3.13 h1:lFzP57bqS/wsqKssCGmtLAb8A0wKjLGrve2q3PPVcBk= github.com/imdario/mergo v0.3.13/go.mod h1:4lJ1jqUDcsbIECGy0RUJAXNIhg+6ocWgb1ALK2O4oXg= -github.com/inconshreveable/mousetrap v1.0.1 h1:U3uMjPSQEBMNp1lFxmllqCPM6P5u/Xq7Pgzkat/bFNc= -github.com/inconshreveable/mousetrap v1.0.1/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= +github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= +github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 h1:BQSFePA1RWJOlocH6Fxy8MmwDt+yVQYULKfN0RoTN8A= github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99/go.mod h1:1lJo3i6rXxKeerYnT8Nvf0QmHCRC1n8sfWVwXF2Frvo= github.com/jessevdk/go-flags v1.5.0/go.mod h1:Fw0T6WPc1dYxT4mKEZRfG5kJhaTDP9pj1c2EWnYs/m4= @@ -92,9 +92,8 @@ github.com/kisielk/errcheck v1.2.0/go.mod h1:/BMXB+zMLi60iA8Vv6Ksmxu/1UDYcXs4uQL github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= +github.com/kr/pretty v0.2.1 h1:Fmg33tUaq4/8ym9TJN1x7sLJnHVwhP33CNkpYV/7rwI= github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= -github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= -github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= @@ -118,8 +117,8 @@ github.com/mattn/go-runewidth v0.0.14 h1:+xnbZSEeDbOIg5/mE6JF0w6n9duR1l3/WmbinWV github.com/mattn/go-runewidth v0.0.14/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w= github.com/mitchellh/go-ps v1.0.0 h1:i6ampVEEF4wQFF+bkYfwYgY+F/uYJDktmvLPf7qIgjc= github.com/mitchellh/go-ps v1.0.0/go.mod h1:J4lOc8z8yJs6vUwklHw2XEIiT4z4C40KtWVN3nvg8Pg= -github.com/mitchellh/go-wordwrap v0.0.0-20150314170334-ad45545899c7 h1:DpOJ2HYzCv8LZP15IdmG+YdwD2luVPHITV96TkirNBM= -github.com/mitchellh/go-wordwrap v0.0.0-20150314170334-ad45545899c7/go.mod h1:ZXFpozHsX6DPmq2I0TCekCxypsnAUbP2oI0UX1GXzOo= +github.com/mitchellh/go-wordwrap v1.0.1 h1:TLuKupo69TCn6TQSyGxwI1EblZZEsQ0vMlAFQflz0v0= +github.com/mitchellh/go-wordwrap v1.0.1/go.mod h1:R62XHJLzvMFRBbcrT7m7WgmE1eOyTSsCt+hzestvNj0= github.com/mmcloughlin/avo v0.5.0/go.mod h1:ChHFdoV7ql95Wi7vuq2YT1bwCJqiWdZrQ1im3VujLYM= github.com/muesli/ansi v0.0.0-20211018074035-2e021307bc4b h1:1XF24mVaiu7u+CFywTdcDo2ie1pzzhwjt6RHqzpMU34= github.com/muesli/ansi v0.0.0-20211018074035-2e021307bc4b/go.mod h1:fQuZ0gauxyBcmsdE3ZT4NasjaRdxmbCS0jRHsrWu3Ho= @@ -143,29 +142,31 @@ github.com/pkg/term v1.1.0 h1:xIAAdCMh3QIAy+5FrE8Ad8XoDhEU4ufwbaSozViP9kk= github.com/pkg/term v1.1.0/go.mod h1:E25nymQcrSllhX42Ok8MRm1+hyBdHY0dCeiKZ9jpNGw= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/pulumi/pulumi/sdk/v3 v3.86.0 h1:Cxg0rGdvMt9GqGvesFTj8+WaO/ihmALYlQf4zm1GzFw= -github.com/pulumi/pulumi/sdk/v3 v3.86.0/go.mod h1:vexSGJ5L834l3T7Fo/KpdywjGAgZ2CvChuqGFl+ebS0= +github.com/pulumi/esc v0.5.2 h1:Wnr0oXy8MAyRMtVrMHPI2frjyuylVnU47ReFPNjE3C0= +github.com/pulumi/esc v0.5.2/go.mod h1:lp6lkE9JrifhmjlXVH9//Rj45OETlVPHZKvoNRyU54Q= +github.com/pulumi/pulumi/sdk/v3 v3.89.0 h1:WlkOQ4Q/Xyxu4lckGWssNI4Wdrobo5Zb7JQVoFVkzMo= +github.com/pulumi/pulumi/sdk/v3 v3.89.0/go.mod h1:XBIlxfHv/jnRj6v8rXP79Z3E11jQz/Ky+bDhwVAHOPk= github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.4.4 h1:8TfxU8dW6PdqD27gjM8MVNuicgxIjxpm4K7x4jp8sis= github.com/rivo/uniseg v0.4.4/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88= -github.com/rogpeppe/go-internal v1.9.0 h1:73kH8U+JUqXU8lRuOHeVHaa/SZPifC7BkcraZVejAe8= -github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs= +github.com/rogpeppe/go-internal v1.11.0 h1:cWPaGQEPrBb5/AsnsZesgZZ9yb1OQ+GOISoDNXVBh4M= +github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUzkipdSkR5nkCZA= github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 h1:OkMGxebDjyw0ULyrTYWeN0UNCCkmCWfjPnIA2W6oviI= github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06/go.mod h1:+ePHsJ1keEjQtpvf9HHw0f4ZeJ0TLRsxhunSI2hYJSs= github.com/santhosh-tekuri/jsonschema/v5 v5.0.0 h1:TToq11gyfNlrMFZiYujSekIsPd9AmsA2Bj/iv+s4JHE= github.com/santhosh-tekuri/jsonschema/v5 v5.0.0/go.mod h1:FKdcjfQW6rpZSnxxUvEA5H/cDPdvJ/SZJQLWWXWGrZ0= github.com/sergi/go-diff v1.1.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM= -github.com/sergi/go-diff v1.2.0 h1:XU+rvMAioB0UC3q1MFrIQy4Vo5/4VsRDQQXHsEya6xQ= -github.com/sergi/go-diff v1.2.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM= +github.com/sergi/go-diff v1.3.1 h1:xkr+Oxo4BOQKmkn/B9eMK0g5Kg/983T9DqqPHwYqD+8= +github.com/sergi/go-diff v1.3.1/go.mod h1:aMJSSKb2lpPvRNec0+w3fl7LP9IOFzdc9Pa4NFbPK1I= github.com/sirupsen/logrus v1.7.0/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= github.com/skeema/knownhosts v1.1.0 h1:Wvr9V0MxhjRbl3f9nMnKnFfiWTJmtECJ9Njkea3ysW0= github.com/skeema/knownhosts v1.1.0/go.mod h1:sKFq3RD6/TKZkSWn8boUbDC7Qkgcv+8XXijpFO6roag= github.com/spf13/cast v1.4.1 h1:s0hze+J0196ZfEMTs80N7UlFt0BDuQ7Q+JDnHiMWKdA= github.com/spf13/cast v1.4.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= -github.com/spf13/cobra v1.6.1 h1:o94oiPyS4KD1mPy2fmcYYHHfCxLqYjJOhGsCHFZtEzA= -github.com/spf13/cobra v1.6.1/go.mod h1:IOw/AERYS7UzyrGinqmz6HLUo219MORXGxhbaJUqzrY= +github.com/spf13/cobra v1.7.0 h1:hyqWnYt1ZQShIddO5kBpj3vu05/++x6tJ6dg8EC572I= +github.com/spf13/cobra v1.7.0/go.mod h1:uLxZILRyS/50WlhOIKD7W6V5bgeIt+4sICxh6uRMrb0= github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= @@ -180,8 +181,8 @@ github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/ github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= -github.com/stretchr/testify v1.8.1 h1:w7B6lhMri9wdJUVmEZPGGhZzrYTPvgJArz7wNPgYKsk= -github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= +github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= +github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= github.com/texttheater/golang-levenshtein v1.0.1 h1:+cRNoVrfiwufQPhoMzB6N0Yf/Mqajr6t1lOv8GyGE2U= github.com/texttheater/golang-levenshtein v1.0.1/go.mod h1:PYAKrbF5sAiq9wd+H82hs7gNaen0CplQ9uvm6+enD/8= github.com/tweekmonster/luser v0.0.0-20161003172636-3fa38070dbd7 h1:X9dsIWPuuEJlPX//UmRKophhOKCGXc46RVIGuttks68= @@ -195,8 +196,8 @@ github.com/xanzy/ssh-agent v0.3.3/go.mod h1:6dzNDKs0J9rVPHPhaGCukekBHKqfl+L3KghI github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= -github.com/zclconf/go-cty v1.12.1 h1:PcupnljUm9EIvbgSHQnHhUr3fO6oFmkOrvs2BAFNXXY= -github.com/zclconf/go-cty v1.12.1/go.mod h1:s9IfD1LK5ccNMSWCVFCE2rJfHiZgi7JijgeWIMfhLvA= +github.com/zclconf/go-cty v1.13.2 h1:4GvrUxe/QUDYuJKAav4EYqdM47/kZa672LwmXFmEKT0= +github.com/zclconf/go-cty v1.13.2/go.mod h1:YKQzy/7pZ7iq2jNFzy5go57xdxdWoLLpaEp4u238AE0= go.uber.org/atomic v1.9.0 h1:ECmE8Bn/WFTYwEW/bpKD3M8VtR/zQVbavAoalC1PYyE= go.uber.org/atomic v1.9.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= golang.org/x/arch v0.1.0/go.mod h1:5om86z9Hs0C8fWVUuoMHwpExlXzs5Tkyp9hOrfG7pp8= @@ -211,6 +212,8 @@ golang.org/x/crypto v0.1.0/go.mod h1:RecgLatLF4+eUMCP1PoPZQb+cVrJcOPbHkTkbkB9sbw golang.org/x/crypto v0.3.0/go.mod h1:hebNnKkNXi2UzZN1eVRvBB7co0a+JxK6XbPiWVs/3J4= golang.org/x/crypto v0.14.0 h1:wBqGXzWJW6m1XrIKlAH0Hs1JJ7+9KBwnIO8v66Q9cHc= golang.org/x/crypto v0.14.0/go.mod h1:MVFd36DqK4CsrnJYDkBA3VC4m2GkXAM0PvzMCn4JQf4= +golang.org/x/exp v0.0.0-20231006140011-7918f672742d h1:jtJma62tbqLibJ5sFQz8bKtEM8rJBtfilJ2qTU199MI= +golang.org/x/exp v0.0.0-20231006140011-7918f672742d/go.mod h1:ldy0pHrwJyGW56pPQzzkH36rKxoZW1tw7ZJpeKx+hdo= golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= @@ -234,8 +237,8 @@ golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.1.0 h1:wsuoTGHzEhffawBOhz5CYhcrV4IdKZbEyZjBMuTp12o= -golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.2.0 h1:PUR+T4wwASmuSTYdKjYHI5TD22Wy5ogLU5qZCOLxBrI= +golang.org/x/sync v0.2.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= diff --git a/sdk/go/spotinst/azure/oceanNp.go b/sdk/go/spotinst/azure/oceanNp.go index 8fd27a38..21a37b80 100644 --- a/sdk/go/spotinst/azure/oceanNp.go +++ b/sdk/go/spotinst/azure/oceanNp.go @@ -38,10 +38,12 @@ type OceanNp struct { OsDiskType pulumi.StringPtrOutput `pulumi:"osDiskType"` OsSku pulumi.StringPtrOutput `pulumi:"osSku"` OsType pulumi.StringPtrOutput `pulumi:"osType"` + PodSubnetIds pulumi.StringArrayOutput `pulumi:"podSubnetIds"` Scheduling OceanNpSchedulingPtrOutput `pulumi:"scheduling"` SpotPercentage pulumi.IntPtrOutput `pulumi:"spotPercentage"` Tags pulumi.MapOutput `pulumi:"tags"` Taints OceanNpTaintArrayOutput `pulumi:"taints"` + VnetSubnetIds pulumi.StringArrayOutput `pulumi:"vnetSubnetIds"` } // NewOceanNp registers a new resource with the given unique name, arguments, and options. @@ -111,10 +113,12 @@ type oceanNpState struct { OsDiskType *string `pulumi:"osDiskType"` OsSku *string `pulumi:"osSku"` OsType *string `pulumi:"osType"` + PodSubnetIds []string `pulumi:"podSubnetIds"` Scheduling *OceanNpScheduling `pulumi:"scheduling"` SpotPercentage *int `pulumi:"spotPercentage"` Tags map[string]interface{} `pulumi:"tags"` Taints []OceanNpTaint `pulumi:"taints"` + VnetSubnetIds []string `pulumi:"vnetSubnetIds"` } type OceanNpState struct { @@ -140,10 +144,12 @@ type OceanNpState struct { OsDiskType pulumi.StringPtrInput OsSku pulumi.StringPtrInput OsType pulumi.StringPtrInput + PodSubnetIds pulumi.StringArrayInput Scheduling OceanNpSchedulingPtrInput SpotPercentage pulumi.IntPtrInput Tags pulumi.MapInput Taints OceanNpTaintArrayInput + VnetSubnetIds pulumi.StringArrayInput } func (OceanNpState) ElementType() reflect.Type { @@ -173,10 +179,12 @@ type oceanNpArgs struct { OsDiskType *string `pulumi:"osDiskType"` OsSku *string `pulumi:"osSku"` OsType *string `pulumi:"osType"` + PodSubnetIds []string `pulumi:"podSubnetIds"` Scheduling *OceanNpScheduling `pulumi:"scheduling"` SpotPercentage *int `pulumi:"spotPercentage"` Tags map[string]interface{} `pulumi:"tags"` Taints []OceanNpTaint `pulumi:"taints"` + VnetSubnetIds []string `pulumi:"vnetSubnetIds"` } // The set of arguments for constructing a OceanNp resource. @@ -203,10 +211,12 @@ type OceanNpArgs struct { OsDiskType pulumi.StringPtrInput OsSku pulumi.StringPtrInput OsType pulumi.StringPtrInput + PodSubnetIds pulumi.StringArrayInput Scheduling OceanNpSchedulingPtrInput SpotPercentage pulumi.IntPtrInput Tags pulumi.MapInput Taints OceanNpTaintArrayInput + VnetSubnetIds pulumi.StringArrayInput } func (OceanNpArgs) ElementType() reflect.Type { @@ -408,6 +418,10 @@ func (o OceanNpOutput) OsType() pulumi.StringPtrOutput { return o.ApplyT(func(v *OceanNp) pulumi.StringPtrOutput { return v.OsType }).(pulumi.StringPtrOutput) } +func (o OceanNpOutput) PodSubnetIds() pulumi.StringArrayOutput { + return o.ApplyT(func(v *OceanNp) pulumi.StringArrayOutput { return v.PodSubnetIds }).(pulumi.StringArrayOutput) +} + func (o OceanNpOutput) Scheduling() OceanNpSchedulingPtrOutput { return o.ApplyT(func(v *OceanNp) OceanNpSchedulingPtrOutput { return v.Scheduling }).(OceanNpSchedulingPtrOutput) } @@ -424,6 +438,10 @@ func (o OceanNpOutput) Taints() OceanNpTaintArrayOutput { return o.ApplyT(func(v *OceanNp) OceanNpTaintArrayOutput { return v.Taints }).(OceanNpTaintArrayOutput) } +func (o OceanNpOutput) VnetSubnetIds() pulumi.StringArrayOutput { + return o.ApplyT(func(v *OceanNp) pulumi.StringArrayOutput { return v.VnetSubnetIds }).(pulumi.StringArrayOutput) +} + type OceanNpArrayOutput struct{ *pulumi.OutputState } func (OceanNpArrayOutput) ElementType() reflect.Type { diff --git a/sdk/go/spotinst/azure/oceanNpVirtualNodeGroup.go b/sdk/go/spotinst/azure/oceanNpVirtualNodeGroup.go index acf855f1..d24a5f12 100644 --- a/sdk/go/spotinst/azure/oceanNpVirtualNodeGroup.go +++ b/sdk/go/spotinst/azure/oceanNpVirtualNodeGroup.go @@ -32,9 +32,11 @@ type OceanNpVirtualNodeGroup struct { OsDiskType pulumi.StringPtrOutput `pulumi:"osDiskType"` OsSku pulumi.StringPtrOutput `pulumi:"osSku"` OsType pulumi.StringPtrOutput `pulumi:"osType"` + PodSubnetIds pulumi.StringArrayOutput `pulumi:"podSubnetIds"` SpotPercentage pulumi.IntPtrOutput `pulumi:"spotPercentage"` Tags pulumi.MapOutput `pulumi:"tags"` Taints OceanNpVirtualNodeGroupTaintArrayOutput `pulumi:"taints"` + VnetSubnetIds pulumi.StringArrayOutput `pulumi:"vnetSubnetIds"` } // NewOceanNpVirtualNodeGroup registers a new resource with the given unique name, arguments, and options. @@ -86,9 +88,11 @@ type oceanNpVirtualNodeGroupState struct { OsDiskType *string `pulumi:"osDiskType"` OsSku *string `pulumi:"osSku"` OsType *string `pulumi:"osType"` + PodSubnetIds []string `pulumi:"podSubnetIds"` SpotPercentage *int `pulumi:"spotPercentage"` Tags map[string]interface{} `pulumi:"tags"` Taints []OceanNpVirtualNodeGroupTaint `pulumi:"taints"` + VnetSubnetIds []string `pulumi:"vnetSubnetIds"` } type OceanNpVirtualNodeGroupState struct { @@ -108,9 +112,11 @@ type OceanNpVirtualNodeGroupState struct { OsDiskType pulumi.StringPtrInput OsSku pulumi.StringPtrInput OsType pulumi.StringPtrInput + PodSubnetIds pulumi.StringArrayInput SpotPercentage pulumi.IntPtrInput Tags pulumi.MapInput Taints OceanNpVirtualNodeGroupTaintArrayInput + VnetSubnetIds pulumi.StringArrayInput } func (OceanNpVirtualNodeGroupState) ElementType() reflect.Type { @@ -134,9 +140,11 @@ type oceanNpVirtualNodeGroupArgs struct { OsDiskType *string `pulumi:"osDiskType"` OsSku *string `pulumi:"osSku"` OsType *string `pulumi:"osType"` + PodSubnetIds []string `pulumi:"podSubnetIds"` SpotPercentage *int `pulumi:"spotPercentage"` Tags map[string]interface{} `pulumi:"tags"` Taints []OceanNpVirtualNodeGroupTaint `pulumi:"taints"` + VnetSubnetIds []string `pulumi:"vnetSubnetIds"` } // The set of arguments for constructing a OceanNpVirtualNodeGroup resource. @@ -157,9 +165,11 @@ type OceanNpVirtualNodeGroupArgs struct { OsDiskType pulumi.StringPtrInput OsSku pulumi.StringPtrInput OsType pulumi.StringPtrInput + PodSubnetIds pulumi.StringArrayInput SpotPercentage pulumi.IntPtrInput Tags pulumi.MapInput Taints OceanNpVirtualNodeGroupTaintArrayInput + VnetSubnetIds pulumi.StringArrayInput } func (OceanNpVirtualNodeGroupArgs) ElementType() reflect.Type { @@ -337,6 +347,10 @@ func (o OceanNpVirtualNodeGroupOutput) OsType() pulumi.StringPtrOutput { return o.ApplyT(func(v *OceanNpVirtualNodeGroup) pulumi.StringPtrOutput { return v.OsType }).(pulumi.StringPtrOutput) } +func (o OceanNpVirtualNodeGroupOutput) PodSubnetIds() pulumi.StringArrayOutput { + return o.ApplyT(func(v *OceanNpVirtualNodeGroup) pulumi.StringArrayOutput { return v.PodSubnetIds }).(pulumi.StringArrayOutput) +} + func (o OceanNpVirtualNodeGroupOutput) SpotPercentage() pulumi.IntPtrOutput { return o.ApplyT(func(v *OceanNpVirtualNodeGroup) pulumi.IntPtrOutput { return v.SpotPercentage }).(pulumi.IntPtrOutput) } @@ -349,6 +363,10 @@ func (o OceanNpVirtualNodeGroupOutput) Taints() OceanNpVirtualNodeGroupTaintArra return o.ApplyT(func(v *OceanNpVirtualNodeGroup) OceanNpVirtualNodeGroupTaintArrayOutput { return v.Taints }).(OceanNpVirtualNodeGroupTaintArrayOutput) } +func (o OceanNpVirtualNodeGroupOutput) VnetSubnetIds() pulumi.StringArrayOutput { + return o.ApplyT(func(v *OceanNpVirtualNodeGroup) pulumi.StringArrayOutput { return v.VnetSubnetIds }).(pulumi.StringArrayOutput) +} + type OceanNpVirtualNodeGroupArrayOutput struct{ *pulumi.OutputState } func (OceanNpVirtualNodeGroupArrayOutput) ElementType() reflect.Type { diff --git a/sdk/go/spotinst/azure/pulumiTypes.go b/sdk/go/spotinst/azure/pulumiTypes.go index 902a320f..0de7a9db 100644 --- a/sdk/go/spotinst/azure/pulumiTypes.go +++ b/sdk/go/spotinst/azure/pulumiTypes.go @@ -6406,13 +6406,20 @@ func (o OceanNpAutoscalerResourceLimitsPtrOutput) MaxVcpu() pulumi.IntPtrOutput } type OceanNpFilters struct { - Architectures []string `pulumi:"architectures"` - ExcludeSeries []string `pulumi:"excludeSeries"` - MaxMemoryGib *float64 `pulumi:"maxMemoryGib"` - MaxVcpu *int `pulumi:"maxVcpu"` - MinMemoryGib *float64 `pulumi:"minMemoryGib"` - MinVcpu *int `pulumi:"minVcpu"` - Series []string `pulumi:"series"` + AcceleratedNetworking *string `pulumi:"acceleratedNetworking"` + Architectures []string `pulumi:"architectures"` + DiskPerformance *string `pulumi:"diskPerformance"` + ExcludeSeries []string `pulumi:"excludeSeries"` + MaxGpu *float64 `pulumi:"maxGpu"` + MaxMemoryGib *float64 `pulumi:"maxMemoryGib"` + MaxVcpu *int `pulumi:"maxVcpu"` + MinData *int `pulumi:"minData"` + MinGpu *float64 `pulumi:"minGpu"` + MinMemoryGib *float64 `pulumi:"minMemoryGib"` + MinNics *int `pulumi:"minNics"` + MinVcpu *int `pulumi:"minVcpu"` + Series []string `pulumi:"series"` + VmTypes []string `pulumi:"vmTypes"` } // OceanNpFiltersInput is an input type that accepts OceanNpFiltersArgs and OceanNpFiltersOutput values. @@ -6427,13 +6434,20 @@ type OceanNpFiltersInput interface { } type OceanNpFiltersArgs struct { - Architectures pulumi.StringArrayInput `pulumi:"architectures"` - ExcludeSeries pulumi.StringArrayInput `pulumi:"excludeSeries"` - MaxMemoryGib pulumi.Float64PtrInput `pulumi:"maxMemoryGib"` - MaxVcpu pulumi.IntPtrInput `pulumi:"maxVcpu"` - MinMemoryGib pulumi.Float64PtrInput `pulumi:"minMemoryGib"` - MinVcpu pulumi.IntPtrInput `pulumi:"minVcpu"` - Series pulumi.StringArrayInput `pulumi:"series"` + AcceleratedNetworking pulumi.StringPtrInput `pulumi:"acceleratedNetworking"` + Architectures pulumi.StringArrayInput `pulumi:"architectures"` + DiskPerformance pulumi.StringPtrInput `pulumi:"diskPerformance"` + ExcludeSeries pulumi.StringArrayInput `pulumi:"excludeSeries"` + MaxGpu pulumi.Float64PtrInput `pulumi:"maxGpu"` + MaxMemoryGib pulumi.Float64PtrInput `pulumi:"maxMemoryGib"` + MaxVcpu pulumi.IntPtrInput `pulumi:"maxVcpu"` + MinData pulumi.IntPtrInput `pulumi:"minData"` + MinGpu pulumi.Float64PtrInput `pulumi:"minGpu"` + MinMemoryGib pulumi.Float64PtrInput `pulumi:"minMemoryGib"` + MinNics pulumi.IntPtrInput `pulumi:"minNics"` + MinVcpu pulumi.IntPtrInput `pulumi:"minVcpu"` + Series pulumi.StringArrayInput `pulumi:"series"` + VmTypes pulumi.StringArrayInput `pulumi:"vmTypes"` } func (OceanNpFiltersArgs) ElementType() reflect.Type { @@ -6531,14 +6545,26 @@ func (o OceanNpFiltersOutput) ToOutput(ctx context.Context) pulumix.Output[Ocean } } +func (o OceanNpFiltersOutput) AcceleratedNetworking() pulumi.StringPtrOutput { + return o.ApplyT(func(v OceanNpFilters) *string { return v.AcceleratedNetworking }).(pulumi.StringPtrOutput) +} + func (o OceanNpFiltersOutput) Architectures() pulumi.StringArrayOutput { return o.ApplyT(func(v OceanNpFilters) []string { return v.Architectures }).(pulumi.StringArrayOutput) } +func (o OceanNpFiltersOutput) DiskPerformance() pulumi.StringPtrOutput { + return o.ApplyT(func(v OceanNpFilters) *string { return v.DiskPerformance }).(pulumi.StringPtrOutput) +} + func (o OceanNpFiltersOutput) ExcludeSeries() pulumi.StringArrayOutput { return o.ApplyT(func(v OceanNpFilters) []string { return v.ExcludeSeries }).(pulumi.StringArrayOutput) } +func (o OceanNpFiltersOutput) MaxGpu() pulumi.Float64PtrOutput { + return o.ApplyT(func(v OceanNpFilters) *float64 { return v.MaxGpu }).(pulumi.Float64PtrOutput) +} + func (o OceanNpFiltersOutput) MaxMemoryGib() pulumi.Float64PtrOutput { return o.ApplyT(func(v OceanNpFilters) *float64 { return v.MaxMemoryGib }).(pulumi.Float64PtrOutput) } @@ -6547,10 +6573,22 @@ func (o OceanNpFiltersOutput) MaxVcpu() pulumi.IntPtrOutput { return o.ApplyT(func(v OceanNpFilters) *int { return v.MaxVcpu }).(pulumi.IntPtrOutput) } +func (o OceanNpFiltersOutput) MinData() pulumi.IntPtrOutput { + return o.ApplyT(func(v OceanNpFilters) *int { return v.MinData }).(pulumi.IntPtrOutput) +} + +func (o OceanNpFiltersOutput) MinGpu() pulumi.Float64PtrOutput { + return o.ApplyT(func(v OceanNpFilters) *float64 { return v.MinGpu }).(pulumi.Float64PtrOutput) +} + func (o OceanNpFiltersOutput) MinMemoryGib() pulumi.Float64PtrOutput { return o.ApplyT(func(v OceanNpFilters) *float64 { return v.MinMemoryGib }).(pulumi.Float64PtrOutput) } +func (o OceanNpFiltersOutput) MinNics() pulumi.IntPtrOutput { + return o.ApplyT(func(v OceanNpFilters) *int { return v.MinNics }).(pulumi.IntPtrOutput) +} + func (o OceanNpFiltersOutput) MinVcpu() pulumi.IntPtrOutput { return o.ApplyT(func(v OceanNpFilters) *int { return v.MinVcpu }).(pulumi.IntPtrOutput) } @@ -6559,6 +6597,10 @@ func (o OceanNpFiltersOutput) Series() pulumi.StringArrayOutput { return o.ApplyT(func(v OceanNpFilters) []string { return v.Series }).(pulumi.StringArrayOutput) } +func (o OceanNpFiltersOutput) VmTypes() pulumi.StringArrayOutput { + return o.ApplyT(func(v OceanNpFilters) []string { return v.VmTypes }).(pulumi.StringArrayOutput) +} + type OceanNpFiltersPtrOutput struct{ *pulumi.OutputState } func (OceanNpFiltersPtrOutput) ElementType() reflect.Type { @@ -6589,6 +6631,15 @@ func (o OceanNpFiltersPtrOutput) Elem() OceanNpFiltersOutput { }).(OceanNpFiltersOutput) } +func (o OceanNpFiltersPtrOutput) AcceleratedNetworking() pulumi.StringPtrOutput { + return o.ApplyT(func(v *OceanNpFilters) *string { + if v == nil { + return nil + } + return v.AcceleratedNetworking + }).(pulumi.StringPtrOutput) +} + func (o OceanNpFiltersPtrOutput) Architectures() pulumi.StringArrayOutput { return o.ApplyT(func(v *OceanNpFilters) []string { if v == nil { @@ -6598,6 +6649,15 @@ func (o OceanNpFiltersPtrOutput) Architectures() pulumi.StringArrayOutput { }).(pulumi.StringArrayOutput) } +func (o OceanNpFiltersPtrOutput) DiskPerformance() pulumi.StringPtrOutput { + return o.ApplyT(func(v *OceanNpFilters) *string { + if v == nil { + return nil + } + return v.DiskPerformance + }).(pulumi.StringPtrOutput) +} + func (o OceanNpFiltersPtrOutput) ExcludeSeries() pulumi.StringArrayOutput { return o.ApplyT(func(v *OceanNpFilters) []string { if v == nil { @@ -6607,6 +6667,15 @@ func (o OceanNpFiltersPtrOutput) ExcludeSeries() pulumi.StringArrayOutput { }).(pulumi.StringArrayOutput) } +func (o OceanNpFiltersPtrOutput) MaxGpu() pulumi.Float64PtrOutput { + return o.ApplyT(func(v *OceanNpFilters) *float64 { + if v == nil { + return nil + } + return v.MaxGpu + }).(pulumi.Float64PtrOutput) +} + func (o OceanNpFiltersPtrOutput) MaxMemoryGib() pulumi.Float64PtrOutput { return o.ApplyT(func(v *OceanNpFilters) *float64 { if v == nil { @@ -6625,6 +6694,24 @@ func (o OceanNpFiltersPtrOutput) MaxVcpu() pulumi.IntPtrOutput { }).(pulumi.IntPtrOutput) } +func (o OceanNpFiltersPtrOutput) MinData() pulumi.IntPtrOutput { + return o.ApplyT(func(v *OceanNpFilters) *int { + if v == nil { + return nil + } + return v.MinData + }).(pulumi.IntPtrOutput) +} + +func (o OceanNpFiltersPtrOutput) MinGpu() pulumi.Float64PtrOutput { + return o.ApplyT(func(v *OceanNpFilters) *float64 { + if v == nil { + return nil + } + return v.MinGpu + }).(pulumi.Float64PtrOutput) +} + func (o OceanNpFiltersPtrOutput) MinMemoryGib() pulumi.Float64PtrOutput { return o.ApplyT(func(v *OceanNpFilters) *float64 { if v == nil { @@ -6634,6 +6721,15 @@ func (o OceanNpFiltersPtrOutput) MinMemoryGib() pulumi.Float64PtrOutput { }).(pulumi.Float64PtrOutput) } +func (o OceanNpFiltersPtrOutput) MinNics() pulumi.IntPtrOutput { + return o.ApplyT(func(v *OceanNpFilters) *int { + if v == nil { + return nil + } + return v.MinNics + }).(pulumi.IntPtrOutput) +} + func (o OceanNpFiltersPtrOutput) MinVcpu() pulumi.IntPtrOutput { return o.ApplyT(func(v *OceanNpFilters) *int { if v == nil { @@ -6652,6 +6748,15 @@ func (o OceanNpFiltersPtrOutput) Series() pulumi.StringArrayOutput { }).(pulumi.StringArrayOutput) } +func (o OceanNpFiltersPtrOutput) VmTypes() pulumi.StringArrayOutput { + return o.ApplyT(func(v *OceanNpFilters) []string { + if v == nil { + return nil + } + return v.VmTypes + }).(pulumi.StringArrayOutput) +} + type OceanNpHeadroom struct { CpuPerUnit *int `pulumi:"cpuPerUnit"` GpuPerUnit *int `pulumi:"gpuPerUnit"` @@ -7405,13 +7510,20 @@ func (o OceanNpTaintArrayOutput) Index(i pulumi.IntInput) OceanNpTaintOutput { } type OceanNpVirtualNodeGroupFilters struct { - Architectures []string `pulumi:"architectures"` - ExcludeSeries []string `pulumi:"excludeSeries"` - MaxMemoryGib *float64 `pulumi:"maxMemoryGib"` - MaxVcpu *int `pulumi:"maxVcpu"` - MinMemoryGib *float64 `pulumi:"minMemoryGib"` - MinVcpu *int `pulumi:"minVcpu"` - Series []string `pulumi:"series"` + AcceleratedNetworking *string `pulumi:"acceleratedNetworking"` + Architectures []string `pulumi:"architectures"` + DiskPerformance *string `pulumi:"diskPerformance"` + ExcludeSeries []string `pulumi:"excludeSeries"` + MaxGpu *float64 `pulumi:"maxGpu"` + MaxMemoryGib *float64 `pulumi:"maxMemoryGib"` + MaxVcpu *int `pulumi:"maxVcpu"` + MinData *int `pulumi:"minData"` + MinGpu *float64 `pulumi:"minGpu"` + MinMemoryGib *float64 `pulumi:"minMemoryGib"` + MinNics *int `pulumi:"minNics"` + MinVcpu *int `pulumi:"minVcpu"` + Series []string `pulumi:"series"` + VmTypes []string `pulumi:"vmTypes"` } // OceanNpVirtualNodeGroupFiltersInput is an input type that accepts OceanNpVirtualNodeGroupFiltersArgs and OceanNpVirtualNodeGroupFiltersOutput values. @@ -7426,13 +7538,20 @@ type OceanNpVirtualNodeGroupFiltersInput interface { } type OceanNpVirtualNodeGroupFiltersArgs struct { - Architectures pulumi.StringArrayInput `pulumi:"architectures"` - ExcludeSeries pulumi.StringArrayInput `pulumi:"excludeSeries"` - MaxMemoryGib pulumi.Float64PtrInput `pulumi:"maxMemoryGib"` - MaxVcpu pulumi.IntPtrInput `pulumi:"maxVcpu"` - MinMemoryGib pulumi.Float64PtrInput `pulumi:"minMemoryGib"` - MinVcpu pulumi.IntPtrInput `pulumi:"minVcpu"` - Series pulumi.StringArrayInput `pulumi:"series"` + AcceleratedNetworking pulumi.StringPtrInput `pulumi:"acceleratedNetworking"` + Architectures pulumi.StringArrayInput `pulumi:"architectures"` + DiskPerformance pulumi.StringPtrInput `pulumi:"diskPerformance"` + ExcludeSeries pulumi.StringArrayInput `pulumi:"excludeSeries"` + MaxGpu pulumi.Float64PtrInput `pulumi:"maxGpu"` + MaxMemoryGib pulumi.Float64PtrInput `pulumi:"maxMemoryGib"` + MaxVcpu pulumi.IntPtrInput `pulumi:"maxVcpu"` + MinData pulumi.IntPtrInput `pulumi:"minData"` + MinGpu pulumi.Float64PtrInput `pulumi:"minGpu"` + MinMemoryGib pulumi.Float64PtrInput `pulumi:"minMemoryGib"` + MinNics pulumi.IntPtrInput `pulumi:"minNics"` + MinVcpu pulumi.IntPtrInput `pulumi:"minVcpu"` + Series pulumi.StringArrayInput `pulumi:"series"` + VmTypes pulumi.StringArrayInput `pulumi:"vmTypes"` } func (OceanNpVirtualNodeGroupFiltersArgs) ElementType() reflect.Type { @@ -7530,14 +7649,26 @@ func (o OceanNpVirtualNodeGroupFiltersOutput) ToOutput(ctx context.Context) pulu } } +func (o OceanNpVirtualNodeGroupFiltersOutput) AcceleratedNetworking() pulumi.StringPtrOutput { + return o.ApplyT(func(v OceanNpVirtualNodeGroupFilters) *string { return v.AcceleratedNetworking }).(pulumi.StringPtrOutput) +} + func (o OceanNpVirtualNodeGroupFiltersOutput) Architectures() pulumi.StringArrayOutput { return o.ApplyT(func(v OceanNpVirtualNodeGroupFilters) []string { return v.Architectures }).(pulumi.StringArrayOutput) } +func (o OceanNpVirtualNodeGroupFiltersOutput) DiskPerformance() pulumi.StringPtrOutput { + return o.ApplyT(func(v OceanNpVirtualNodeGroupFilters) *string { return v.DiskPerformance }).(pulumi.StringPtrOutput) +} + func (o OceanNpVirtualNodeGroupFiltersOutput) ExcludeSeries() pulumi.StringArrayOutput { return o.ApplyT(func(v OceanNpVirtualNodeGroupFilters) []string { return v.ExcludeSeries }).(pulumi.StringArrayOutput) } +func (o OceanNpVirtualNodeGroupFiltersOutput) MaxGpu() pulumi.Float64PtrOutput { + return o.ApplyT(func(v OceanNpVirtualNodeGroupFilters) *float64 { return v.MaxGpu }).(pulumi.Float64PtrOutput) +} + func (o OceanNpVirtualNodeGroupFiltersOutput) MaxMemoryGib() pulumi.Float64PtrOutput { return o.ApplyT(func(v OceanNpVirtualNodeGroupFilters) *float64 { return v.MaxMemoryGib }).(pulumi.Float64PtrOutput) } @@ -7546,10 +7677,22 @@ func (o OceanNpVirtualNodeGroupFiltersOutput) MaxVcpu() pulumi.IntPtrOutput { return o.ApplyT(func(v OceanNpVirtualNodeGroupFilters) *int { return v.MaxVcpu }).(pulumi.IntPtrOutput) } +func (o OceanNpVirtualNodeGroupFiltersOutput) MinData() pulumi.IntPtrOutput { + return o.ApplyT(func(v OceanNpVirtualNodeGroupFilters) *int { return v.MinData }).(pulumi.IntPtrOutput) +} + +func (o OceanNpVirtualNodeGroupFiltersOutput) MinGpu() pulumi.Float64PtrOutput { + return o.ApplyT(func(v OceanNpVirtualNodeGroupFilters) *float64 { return v.MinGpu }).(pulumi.Float64PtrOutput) +} + func (o OceanNpVirtualNodeGroupFiltersOutput) MinMemoryGib() pulumi.Float64PtrOutput { return o.ApplyT(func(v OceanNpVirtualNodeGroupFilters) *float64 { return v.MinMemoryGib }).(pulumi.Float64PtrOutput) } +func (o OceanNpVirtualNodeGroupFiltersOutput) MinNics() pulumi.IntPtrOutput { + return o.ApplyT(func(v OceanNpVirtualNodeGroupFilters) *int { return v.MinNics }).(pulumi.IntPtrOutput) +} + func (o OceanNpVirtualNodeGroupFiltersOutput) MinVcpu() pulumi.IntPtrOutput { return o.ApplyT(func(v OceanNpVirtualNodeGroupFilters) *int { return v.MinVcpu }).(pulumi.IntPtrOutput) } @@ -7558,6 +7701,10 @@ func (o OceanNpVirtualNodeGroupFiltersOutput) Series() pulumi.StringArrayOutput return o.ApplyT(func(v OceanNpVirtualNodeGroupFilters) []string { return v.Series }).(pulumi.StringArrayOutput) } +func (o OceanNpVirtualNodeGroupFiltersOutput) VmTypes() pulumi.StringArrayOutput { + return o.ApplyT(func(v OceanNpVirtualNodeGroupFilters) []string { return v.VmTypes }).(pulumi.StringArrayOutput) +} + type OceanNpVirtualNodeGroupFiltersPtrOutput struct{ *pulumi.OutputState } func (OceanNpVirtualNodeGroupFiltersPtrOutput) ElementType() reflect.Type { @@ -7588,6 +7735,15 @@ func (o OceanNpVirtualNodeGroupFiltersPtrOutput) Elem() OceanNpVirtualNodeGroupF }).(OceanNpVirtualNodeGroupFiltersOutput) } +func (o OceanNpVirtualNodeGroupFiltersPtrOutput) AcceleratedNetworking() pulumi.StringPtrOutput { + return o.ApplyT(func(v *OceanNpVirtualNodeGroupFilters) *string { + if v == nil { + return nil + } + return v.AcceleratedNetworking + }).(pulumi.StringPtrOutput) +} + func (o OceanNpVirtualNodeGroupFiltersPtrOutput) Architectures() pulumi.StringArrayOutput { return o.ApplyT(func(v *OceanNpVirtualNodeGroupFilters) []string { if v == nil { @@ -7597,6 +7753,15 @@ func (o OceanNpVirtualNodeGroupFiltersPtrOutput) Architectures() pulumi.StringAr }).(pulumi.StringArrayOutput) } +func (o OceanNpVirtualNodeGroupFiltersPtrOutput) DiskPerformance() pulumi.StringPtrOutput { + return o.ApplyT(func(v *OceanNpVirtualNodeGroupFilters) *string { + if v == nil { + return nil + } + return v.DiskPerformance + }).(pulumi.StringPtrOutput) +} + func (o OceanNpVirtualNodeGroupFiltersPtrOutput) ExcludeSeries() pulumi.StringArrayOutput { return o.ApplyT(func(v *OceanNpVirtualNodeGroupFilters) []string { if v == nil { @@ -7606,6 +7771,15 @@ func (o OceanNpVirtualNodeGroupFiltersPtrOutput) ExcludeSeries() pulumi.StringAr }).(pulumi.StringArrayOutput) } +func (o OceanNpVirtualNodeGroupFiltersPtrOutput) MaxGpu() pulumi.Float64PtrOutput { + return o.ApplyT(func(v *OceanNpVirtualNodeGroupFilters) *float64 { + if v == nil { + return nil + } + return v.MaxGpu + }).(pulumi.Float64PtrOutput) +} + func (o OceanNpVirtualNodeGroupFiltersPtrOutput) MaxMemoryGib() pulumi.Float64PtrOutput { return o.ApplyT(func(v *OceanNpVirtualNodeGroupFilters) *float64 { if v == nil { @@ -7624,6 +7798,24 @@ func (o OceanNpVirtualNodeGroupFiltersPtrOutput) MaxVcpu() pulumi.IntPtrOutput { }).(pulumi.IntPtrOutput) } +func (o OceanNpVirtualNodeGroupFiltersPtrOutput) MinData() pulumi.IntPtrOutput { + return o.ApplyT(func(v *OceanNpVirtualNodeGroupFilters) *int { + if v == nil { + return nil + } + return v.MinData + }).(pulumi.IntPtrOutput) +} + +func (o OceanNpVirtualNodeGroupFiltersPtrOutput) MinGpu() pulumi.Float64PtrOutput { + return o.ApplyT(func(v *OceanNpVirtualNodeGroupFilters) *float64 { + if v == nil { + return nil + } + return v.MinGpu + }).(pulumi.Float64PtrOutput) +} + func (o OceanNpVirtualNodeGroupFiltersPtrOutput) MinMemoryGib() pulumi.Float64PtrOutput { return o.ApplyT(func(v *OceanNpVirtualNodeGroupFilters) *float64 { if v == nil { @@ -7633,6 +7825,15 @@ func (o OceanNpVirtualNodeGroupFiltersPtrOutput) MinMemoryGib() pulumi.Float64Pt }).(pulumi.Float64PtrOutput) } +func (o OceanNpVirtualNodeGroupFiltersPtrOutput) MinNics() pulumi.IntPtrOutput { + return o.ApplyT(func(v *OceanNpVirtualNodeGroupFilters) *int { + if v == nil { + return nil + } + return v.MinNics + }).(pulumi.IntPtrOutput) +} + func (o OceanNpVirtualNodeGroupFiltersPtrOutput) MinVcpu() pulumi.IntPtrOutput { return o.ApplyT(func(v *OceanNpVirtualNodeGroupFilters) *int { if v == nil { @@ -7651,6 +7852,15 @@ func (o OceanNpVirtualNodeGroupFiltersPtrOutput) Series() pulumi.StringArrayOutp }).(pulumi.StringArrayOutput) } +func (o OceanNpVirtualNodeGroupFiltersPtrOutput) VmTypes() pulumi.StringArrayOutput { + return o.ApplyT(func(v *OceanNpVirtualNodeGroupFilters) []string { + if v == nil { + return nil + } + return v.VmTypes + }).(pulumi.StringArrayOutput) +} + type OceanNpVirtualNodeGroupHeadroom struct { CpuPerUnit *int `pulumi:"cpuPerUnit"` GpuPerUnit *int `pulumi:"gpuPerUnit"` diff --git a/sdk/java/src/main/java/com/pulumi/spotinst/azure/OceanNp.java b/sdk/java/src/main/java/com/pulumi/spotinst/azure/OceanNp.java index 6b327e13..47d8de32 100644 --- a/sdk/java/src/main/java/com/pulumi/spotinst/azure/OceanNp.java +++ b/sdk/java/src/main/java/com/pulumi/spotinst/azure/OceanNp.java @@ -159,6 +159,12 @@ public Output> osSku() { public Output> osType() { return Codegen.optional(this.osType); } + @Export(name="podSubnetIds", refs={List.class,String.class}, tree="[0,1]") + private Output> podSubnetIds; + + public Output>> podSubnetIds() { + return Codegen.optional(this.podSubnetIds); + } @Export(name="scheduling", refs={OceanNpScheduling.class}, tree="[0]") private Output scheduling; @@ -183,6 +189,12 @@ public Output>> tags() { public Output>> taints() { return Codegen.optional(this.taints); } + @Export(name="vnetSubnetIds", refs={List.class,String.class}, tree="[0,1]") + private Output> vnetSubnetIds; + + public Output>> vnetSubnetIds() { + return Codegen.optional(this.vnetSubnetIds); + } /** * diff --git a/sdk/java/src/main/java/com/pulumi/spotinst/azure/OceanNpArgs.java b/sdk/java/src/main/java/com/pulumi/spotinst/azure/OceanNpArgs.java index 628bf443..0722e120 100644 --- a/sdk/java/src/main/java/com/pulumi/spotinst/azure/OceanNpArgs.java +++ b/sdk/java/src/main/java/com/pulumi/spotinst/azure/OceanNpArgs.java @@ -180,6 +180,13 @@ public Optional> osType() { return Optional.ofNullable(this.osType); } + @Import(name="podSubnetIds") + private @Nullable Output> podSubnetIds; + + public Optional>> podSubnetIds() { + return Optional.ofNullable(this.podSubnetIds); + } + @Import(name="scheduling") private @Nullable Output scheduling; @@ -208,6 +215,13 @@ public Optional>> taints() { return Optional.ofNullable(this.taints); } + @Import(name="vnetSubnetIds") + private @Nullable Output> vnetSubnetIds; + + public Optional>> vnetSubnetIds() { + return Optional.ofNullable(this.vnetSubnetIds); + } + private OceanNpArgs() {} private OceanNpArgs(OceanNpArgs $) { @@ -233,10 +247,12 @@ private OceanNpArgs(OceanNpArgs $) { this.osDiskType = $.osDiskType; this.osSku = $.osSku; this.osType = $.osType; + this.podSubnetIds = $.podSubnetIds; this.scheduling = $.scheduling; this.spotPercentage = $.spotPercentage; this.tags = $.tags; this.taints = $.taints; + this.vnetSubnetIds = $.vnetSubnetIds; } public static Builder builder() { @@ -463,6 +479,19 @@ public Builder osType(String osType) { return osType(Output.of(osType)); } + public Builder podSubnetIds(@Nullable Output> podSubnetIds) { + $.podSubnetIds = podSubnetIds; + return this; + } + + public Builder podSubnetIds(List podSubnetIds) { + return podSubnetIds(Output.of(podSubnetIds)); + } + + public Builder podSubnetIds(String... podSubnetIds) { + return podSubnetIds(List.of(podSubnetIds)); + } + public Builder scheduling(@Nullable Output scheduling) { $.scheduling = scheduling; return this; @@ -503,6 +532,19 @@ public Builder taints(OceanNpTaintArgs... taints) { return taints(List.of(taints)); } + public Builder vnetSubnetIds(@Nullable Output> vnetSubnetIds) { + $.vnetSubnetIds = vnetSubnetIds; + return this; + } + + public Builder vnetSubnetIds(List vnetSubnetIds) { + return vnetSubnetIds(Output.of(vnetSubnetIds)); + } + + public Builder vnetSubnetIds(String... vnetSubnetIds) { + return vnetSubnetIds(List.of(vnetSubnetIds)); + } + public OceanNpArgs build() { $.aksClusterName = Objects.requireNonNull($.aksClusterName, "expected parameter 'aksClusterName' to be non-null"); $.aksInfrastructureResourceGroupName = Objects.requireNonNull($.aksInfrastructureResourceGroupName, "expected parameter 'aksInfrastructureResourceGroupName' to be non-null"); diff --git a/sdk/java/src/main/java/com/pulumi/spotinst/azure/OceanNpVirtualNodeGroup.java b/sdk/java/src/main/java/com/pulumi/spotinst/azure/OceanNpVirtualNodeGroup.java index bae71821..3d7982a3 100644 --- a/sdk/java/src/main/java/com/pulumi/spotinst/azure/OceanNpVirtualNodeGroup.java +++ b/sdk/java/src/main/java/com/pulumi/spotinst/azure/OceanNpVirtualNodeGroup.java @@ -120,6 +120,12 @@ public Output> osSku() { public Output> osType() { return Codegen.optional(this.osType); } + @Export(name="podSubnetIds", refs={List.class,String.class}, tree="[0,1]") + private Output> podSubnetIds; + + public Output>> podSubnetIds() { + return Codegen.optional(this.podSubnetIds); + } @Export(name="spotPercentage", refs={Integer.class}, tree="[0]") private Output spotPercentage; @@ -138,6 +144,12 @@ public Output>> tags() { public Output>> taints() { return Codegen.optional(this.taints); } + @Export(name="vnetSubnetIds", refs={List.class,String.class}, tree="[0,1]") + private Output> vnetSubnetIds; + + public Output>> vnetSubnetIds() { + return Codegen.optional(this.vnetSubnetIds); + } /** * diff --git a/sdk/java/src/main/java/com/pulumi/spotinst/azure/OceanNpVirtualNodeGroupArgs.java b/sdk/java/src/main/java/com/pulumi/spotinst/azure/OceanNpVirtualNodeGroupArgs.java index c2369dec..163e2bd0 100644 --- a/sdk/java/src/main/java/com/pulumi/spotinst/azure/OceanNpVirtualNodeGroupArgs.java +++ b/sdk/java/src/main/java/com/pulumi/spotinst/azure/OceanNpVirtualNodeGroupArgs.java @@ -135,6 +135,13 @@ public Optional> osType() { return Optional.ofNullable(this.osType); } + @Import(name="podSubnetIds") + private @Nullable Output> podSubnetIds; + + public Optional>> podSubnetIds() { + return Optional.ofNullable(this.podSubnetIds); + } + @Import(name="spotPercentage") private @Nullable Output spotPercentage; @@ -156,6 +163,13 @@ public Optional>> taints() { return Optional.ofNullable(this.taints); } + @Import(name="vnetSubnetIds") + private @Nullable Output> vnetSubnetIds; + + public Optional>> vnetSubnetIds() { + return Optional.ofNullable(this.vnetSubnetIds); + } + private OceanNpVirtualNodeGroupArgs() {} private OceanNpVirtualNodeGroupArgs(OceanNpVirtualNodeGroupArgs $) { @@ -175,9 +189,11 @@ private OceanNpVirtualNodeGroupArgs(OceanNpVirtualNodeGroupArgs $) { this.osDiskType = $.osDiskType; this.osSku = $.osSku; this.osType = $.osType; + this.podSubnetIds = $.podSubnetIds; this.spotPercentage = $.spotPercentage; this.tags = $.tags; this.taints = $.taints; + this.vnetSubnetIds = $.vnetSubnetIds; } public static Builder builder() { @@ -350,6 +366,19 @@ public Builder osType(String osType) { return osType(Output.of(osType)); } + public Builder podSubnetIds(@Nullable Output> podSubnetIds) { + $.podSubnetIds = podSubnetIds; + return this; + } + + public Builder podSubnetIds(List podSubnetIds) { + return podSubnetIds(Output.of(podSubnetIds)); + } + + public Builder podSubnetIds(String... podSubnetIds) { + return podSubnetIds(List.of(podSubnetIds)); + } + public Builder spotPercentage(@Nullable Output spotPercentage) { $.spotPercentage = spotPercentage; return this; @@ -381,6 +410,19 @@ public Builder taints(OceanNpVirtualNodeGroupTaintArgs... taints) { return taints(List.of(taints)); } + public Builder vnetSubnetIds(@Nullable Output> vnetSubnetIds) { + $.vnetSubnetIds = vnetSubnetIds; + return this; + } + + public Builder vnetSubnetIds(List vnetSubnetIds) { + return vnetSubnetIds(Output.of(vnetSubnetIds)); + } + + public Builder vnetSubnetIds(String... vnetSubnetIds) { + return vnetSubnetIds(List.of(vnetSubnetIds)); + } + public OceanNpVirtualNodeGroupArgs build() { $.oceanId = Objects.requireNonNull($.oceanId, "expected parameter 'oceanId' to be non-null"); return $; diff --git a/sdk/java/src/main/java/com/pulumi/spotinst/azure/inputs/OceanNpFiltersArgs.java b/sdk/java/src/main/java/com/pulumi/spotinst/azure/inputs/OceanNpFiltersArgs.java index 7fe88551..f21c1eea 100644 --- a/sdk/java/src/main/java/com/pulumi/spotinst/azure/inputs/OceanNpFiltersArgs.java +++ b/sdk/java/src/main/java/com/pulumi/spotinst/azure/inputs/OceanNpFiltersArgs.java @@ -18,6 +18,13 @@ public final class OceanNpFiltersArgs extends com.pulumi.resources.ResourceArgs public static final OceanNpFiltersArgs Empty = new OceanNpFiltersArgs(); + @Import(name="acceleratedNetworking") + private @Nullable Output acceleratedNetworking; + + public Optional> acceleratedNetworking() { + return Optional.ofNullable(this.acceleratedNetworking); + } + @Import(name="architectures") private @Nullable Output> architectures; @@ -25,6 +32,13 @@ public Optional>> architectures() { return Optional.ofNullable(this.architectures); } + @Import(name="diskPerformance") + private @Nullable Output diskPerformance; + + public Optional> diskPerformance() { + return Optional.ofNullable(this.diskPerformance); + } + @Import(name="excludeSeries") private @Nullable Output> excludeSeries; @@ -32,6 +46,13 @@ public Optional>> excludeSeries() { return Optional.ofNullable(this.excludeSeries); } + @Import(name="maxGpu") + private @Nullable Output maxGpu; + + public Optional> maxGpu() { + return Optional.ofNullable(this.maxGpu); + } + @Import(name="maxMemoryGib") private @Nullable Output maxMemoryGib; @@ -46,6 +67,20 @@ public Optional> maxVcpu() { return Optional.ofNullable(this.maxVcpu); } + @Import(name="minData") + private @Nullable Output minData; + + public Optional> minData() { + return Optional.ofNullable(this.minData); + } + + @Import(name="minGpu") + private @Nullable Output minGpu; + + public Optional> minGpu() { + return Optional.ofNullable(this.minGpu); + } + @Import(name="minMemoryGib") private @Nullable Output minMemoryGib; @@ -53,6 +88,13 @@ public Optional> minMemoryGib() { return Optional.ofNullable(this.minMemoryGib); } + @Import(name="minNics") + private @Nullable Output minNics; + + public Optional> minNics() { + return Optional.ofNullable(this.minNics); + } + @Import(name="minVcpu") private @Nullable Output minVcpu; @@ -67,16 +109,30 @@ public Optional>> series() { return Optional.ofNullable(this.series); } + @Import(name="vmTypes") + private @Nullable Output> vmTypes; + + public Optional>> vmTypes() { + return Optional.ofNullable(this.vmTypes); + } + private OceanNpFiltersArgs() {} private OceanNpFiltersArgs(OceanNpFiltersArgs $) { + this.acceleratedNetworking = $.acceleratedNetworking; this.architectures = $.architectures; + this.diskPerformance = $.diskPerformance; this.excludeSeries = $.excludeSeries; + this.maxGpu = $.maxGpu; this.maxMemoryGib = $.maxMemoryGib; this.maxVcpu = $.maxVcpu; + this.minData = $.minData; + this.minGpu = $.minGpu; this.minMemoryGib = $.minMemoryGib; + this.minNics = $.minNics; this.minVcpu = $.minVcpu; this.series = $.series; + this.vmTypes = $.vmTypes; } public static Builder builder() { @@ -97,6 +153,15 @@ public Builder(OceanNpFiltersArgs defaults) { $ = new OceanNpFiltersArgs(Objects.requireNonNull(defaults)); } + public Builder acceleratedNetworking(@Nullable Output acceleratedNetworking) { + $.acceleratedNetworking = acceleratedNetworking; + return this; + } + + public Builder acceleratedNetworking(String acceleratedNetworking) { + return acceleratedNetworking(Output.of(acceleratedNetworking)); + } + public Builder architectures(@Nullable Output> architectures) { $.architectures = architectures; return this; @@ -110,6 +175,15 @@ public Builder architectures(String... architectures) { return architectures(List.of(architectures)); } + public Builder diskPerformance(@Nullable Output diskPerformance) { + $.diskPerformance = diskPerformance; + return this; + } + + public Builder diskPerformance(String diskPerformance) { + return diskPerformance(Output.of(diskPerformance)); + } + public Builder excludeSeries(@Nullable Output> excludeSeries) { $.excludeSeries = excludeSeries; return this; @@ -123,6 +197,15 @@ public Builder excludeSeries(String... excludeSeries) { return excludeSeries(List.of(excludeSeries)); } + public Builder maxGpu(@Nullable Output maxGpu) { + $.maxGpu = maxGpu; + return this; + } + + public Builder maxGpu(Double maxGpu) { + return maxGpu(Output.of(maxGpu)); + } + public Builder maxMemoryGib(@Nullable Output maxMemoryGib) { $.maxMemoryGib = maxMemoryGib; return this; @@ -141,6 +224,24 @@ public Builder maxVcpu(Integer maxVcpu) { return maxVcpu(Output.of(maxVcpu)); } + public Builder minData(@Nullable Output minData) { + $.minData = minData; + return this; + } + + public Builder minData(Integer minData) { + return minData(Output.of(minData)); + } + + public Builder minGpu(@Nullable Output minGpu) { + $.minGpu = minGpu; + return this; + } + + public Builder minGpu(Double minGpu) { + return minGpu(Output.of(minGpu)); + } + public Builder minMemoryGib(@Nullable Output minMemoryGib) { $.minMemoryGib = minMemoryGib; return this; @@ -150,6 +251,15 @@ public Builder minMemoryGib(Double minMemoryGib) { return minMemoryGib(Output.of(minMemoryGib)); } + public Builder minNics(@Nullable Output minNics) { + $.minNics = minNics; + return this; + } + + public Builder minNics(Integer minNics) { + return minNics(Output.of(minNics)); + } + public Builder minVcpu(@Nullable Output minVcpu) { $.minVcpu = minVcpu; return this; @@ -172,6 +282,19 @@ public Builder series(String... series) { return series(List.of(series)); } + public Builder vmTypes(@Nullable Output> vmTypes) { + $.vmTypes = vmTypes; + return this; + } + + public Builder vmTypes(List vmTypes) { + return vmTypes(Output.of(vmTypes)); + } + + public Builder vmTypes(String... vmTypes) { + return vmTypes(List.of(vmTypes)); + } + public OceanNpFiltersArgs build() { return $; } diff --git a/sdk/java/src/main/java/com/pulumi/spotinst/azure/inputs/OceanNpState.java b/sdk/java/src/main/java/com/pulumi/spotinst/azure/inputs/OceanNpState.java index 0cf98363..2ac1a8d5 100644 --- a/sdk/java/src/main/java/com/pulumi/spotinst/azure/inputs/OceanNpState.java +++ b/sdk/java/src/main/java/com/pulumi/spotinst/azure/inputs/OceanNpState.java @@ -180,6 +180,13 @@ public Optional> osType() { return Optional.ofNullable(this.osType); } + @Import(name="podSubnetIds") + private @Nullable Output> podSubnetIds; + + public Optional>> podSubnetIds() { + return Optional.ofNullable(this.podSubnetIds); + } + @Import(name="scheduling") private @Nullable Output scheduling; @@ -208,6 +215,13 @@ public Optional>> taints() { return Optional.ofNullable(this.taints); } + @Import(name="vnetSubnetIds") + private @Nullable Output> vnetSubnetIds; + + public Optional>> vnetSubnetIds() { + return Optional.ofNullable(this.vnetSubnetIds); + } + private OceanNpState() {} private OceanNpState(OceanNpState $) { @@ -233,10 +247,12 @@ private OceanNpState(OceanNpState $) { this.osDiskType = $.osDiskType; this.osSku = $.osSku; this.osType = $.osType; + this.podSubnetIds = $.podSubnetIds; this.scheduling = $.scheduling; this.spotPercentage = $.spotPercentage; this.tags = $.tags; this.taints = $.taints; + this.vnetSubnetIds = $.vnetSubnetIds; } public static Builder builder() { @@ -463,6 +479,19 @@ public Builder osType(String osType) { return osType(Output.of(osType)); } + public Builder podSubnetIds(@Nullable Output> podSubnetIds) { + $.podSubnetIds = podSubnetIds; + return this; + } + + public Builder podSubnetIds(List podSubnetIds) { + return podSubnetIds(Output.of(podSubnetIds)); + } + + public Builder podSubnetIds(String... podSubnetIds) { + return podSubnetIds(List.of(podSubnetIds)); + } + public Builder scheduling(@Nullable Output scheduling) { $.scheduling = scheduling; return this; @@ -503,6 +532,19 @@ public Builder taints(OceanNpTaintArgs... taints) { return taints(List.of(taints)); } + public Builder vnetSubnetIds(@Nullable Output> vnetSubnetIds) { + $.vnetSubnetIds = vnetSubnetIds; + return this; + } + + public Builder vnetSubnetIds(List vnetSubnetIds) { + return vnetSubnetIds(Output.of(vnetSubnetIds)); + } + + public Builder vnetSubnetIds(String... vnetSubnetIds) { + return vnetSubnetIds(List.of(vnetSubnetIds)); + } + public OceanNpState build() { return $; } diff --git a/sdk/java/src/main/java/com/pulumi/spotinst/azure/inputs/OceanNpVirtualNodeGroupFiltersArgs.java b/sdk/java/src/main/java/com/pulumi/spotinst/azure/inputs/OceanNpVirtualNodeGroupFiltersArgs.java index 7fb1b7f6..2209a17d 100644 --- a/sdk/java/src/main/java/com/pulumi/spotinst/azure/inputs/OceanNpVirtualNodeGroupFiltersArgs.java +++ b/sdk/java/src/main/java/com/pulumi/spotinst/azure/inputs/OceanNpVirtualNodeGroupFiltersArgs.java @@ -18,6 +18,13 @@ public final class OceanNpVirtualNodeGroupFiltersArgs extends com.pulumi.resourc public static final OceanNpVirtualNodeGroupFiltersArgs Empty = new OceanNpVirtualNodeGroupFiltersArgs(); + @Import(name="acceleratedNetworking") + private @Nullable Output acceleratedNetworking; + + public Optional> acceleratedNetworking() { + return Optional.ofNullable(this.acceleratedNetworking); + } + @Import(name="architectures") private @Nullable Output> architectures; @@ -25,6 +32,13 @@ public Optional>> architectures() { return Optional.ofNullable(this.architectures); } + @Import(name="diskPerformance") + private @Nullable Output diskPerformance; + + public Optional> diskPerformance() { + return Optional.ofNullable(this.diskPerformance); + } + @Import(name="excludeSeries") private @Nullable Output> excludeSeries; @@ -32,6 +46,13 @@ public Optional>> excludeSeries() { return Optional.ofNullable(this.excludeSeries); } + @Import(name="maxGpu") + private @Nullable Output maxGpu; + + public Optional> maxGpu() { + return Optional.ofNullable(this.maxGpu); + } + @Import(name="maxMemoryGib") private @Nullable Output maxMemoryGib; @@ -46,6 +67,20 @@ public Optional> maxVcpu() { return Optional.ofNullable(this.maxVcpu); } + @Import(name="minData") + private @Nullable Output minData; + + public Optional> minData() { + return Optional.ofNullable(this.minData); + } + + @Import(name="minGpu") + private @Nullable Output minGpu; + + public Optional> minGpu() { + return Optional.ofNullable(this.minGpu); + } + @Import(name="minMemoryGib") private @Nullable Output minMemoryGib; @@ -53,6 +88,13 @@ public Optional> minMemoryGib() { return Optional.ofNullable(this.minMemoryGib); } + @Import(name="minNics") + private @Nullable Output minNics; + + public Optional> minNics() { + return Optional.ofNullable(this.minNics); + } + @Import(name="minVcpu") private @Nullable Output minVcpu; @@ -67,16 +109,30 @@ public Optional>> series() { return Optional.ofNullable(this.series); } + @Import(name="vmTypes") + private @Nullable Output> vmTypes; + + public Optional>> vmTypes() { + return Optional.ofNullable(this.vmTypes); + } + private OceanNpVirtualNodeGroupFiltersArgs() {} private OceanNpVirtualNodeGroupFiltersArgs(OceanNpVirtualNodeGroupFiltersArgs $) { + this.acceleratedNetworking = $.acceleratedNetworking; this.architectures = $.architectures; + this.diskPerformance = $.diskPerformance; this.excludeSeries = $.excludeSeries; + this.maxGpu = $.maxGpu; this.maxMemoryGib = $.maxMemoryGib; this.maxVcpu = $.maxVcpu; + this.minData = $.minData; + this.minGpu = $.minGpu; this.minMemoryGib = $.minMemoryGib; + this.minNics = $.minNics; this.minVcpu = $.minVcpu; this.series = $.series; + this.vmTypes = $.vmTypes; } public static Builder builder() { @@ -97,6 +153,15 @@ public Builder(OceanNpVirtualNodeGroupFiltersArgs defaults) { $ = new OceanNpVirtualNodeGroupFiltersArgs(Objects.requireNonNull(defaults)); } + public Builder acceleratedNetworking(@Nullable Output acceleratedNetworking) { + $.acceleratedNetworking = acceleratedNetworking; + return this; + } + + public Builder acceleratedNetworking(String acceleratedNetworking) { + return acceleratedNetworking(Output.of(acceleratedNetworking)); + } + public Builder architectures(@Nullable Output> architectures) { $.architectures = architectures; return this; @@ -110,6 +175,15 @@ public Builder architectures(String... architectures) { return architectures(List.of(architectures)); } + public Builder diskPerformance(@Nullable Output diskPerformance) { + $.diskPerformance = diskPerformance; + return this; + } + + public Builder diskPerformance(String diskPerformance) { + return diskPerformance(Output.of(diskPerformance)); + } + public Builder excludeSeries(@Nullable Output> excludeSeries) { $.excludeSeries = excludeSeries; return this; @@ -123,6 +197,15 @@ public Builder excludeSeries(String... excludeSeries) { return excludeSeries(List.of(excludeSeries)); } + public Builder maxGpu(@Nullable Output maxGpu) { + $.maxGpu = maxGpu; + return this; + } + + public Builder maxGpu(Double maxGpu) { + return maxGpu(Output.of(maxGpu)); + } + public Builder maxMemoryGib(@Nullable Output maxMemoryGib) { $.maxMemoryGib = maxMemoryGib; return this; @@ -141,6 +224,24 @@ public Builder maxVcpu(Integer maxVcpu) { return maxVcpu(Output.of(maxVcpu)); } + public Builder minData(@Nullable Output minData) { + $.minData = minData; + return this; + } + + public Builder minData(Integer minData) { + return minData(Output.of(minData)); + } + + public Builder minGpu(@Nullable Output minGpu) { + $.minGpu = minGpu; + return this; + } + + public Builder minGpu(Double minGpu) { + return minGpu(Output.of(minGpu)); + } + public Builder minMemoryGib(@Nullable Output minMemoryGib) { $.minMemoryGib = minMemoryGib; return this; @@ -150,6 +251,15 @@ public Builder minMemoryGib(Double minMemoryGib) { return minMemoryGib(Output.of(minMemoryGib)); } + public Builder minNics(@Nullable Output minNics) { + $.minNics = minNics; + return this; + } + + public Builder minNics(Integer minNics) { + return minNics(Output.of(minNics)); + } + public Builder minVcpu(@Nullable Output minVcpu) { $.minVcpu = minVcpu; return this; @@ -172,6 +282,19 @@ public Builder series(String... series) { return series(List.of(series)); } + public Builder vmTypes(@Nullable Output> vmTypes) { + $.vmTypes = vmTypes; + return this; + } + + public Builder vmTypes(List vmTypes) { + return vmTypes(Output.of(vmTypes)); + } + + public Builder vmTypes(String... vmTypes) { + return vmTypes(List.of(vmTypes)); + } + public OceanNpVirtualNodeGroupFiltersArgs build() { return $; } diff --git a/sdk/java/src/main/java/com/pulumi/spotinst/azure/inputs/OceanNpVirtualNodeGroupState.java b/sdk/java/src/main/java/com/pulumi/spotinst/azure/inputs/OceanNpVirtualNodeGroupState.java index 953a08b8..360530c3 100644 --- a/sdk/java/src/main/java/com/pulumi/spotinst/azure/inputs/OceanNpVirtualNodeGroupState.java +++ b/sdk/java/src/main/java/com/pulumi/spotinst/azure/inputs/OceanNpVirtualNodeGroupState.java @@ -135,6 +135,13 @@ public Optional> osType() { return Optional.ofNullable(this.osType); } + @Import(name="podSubnetIds") + private @Nullable Output> podSubnetIds; + + public Optional>> podSubnetIds() { + return Optional.ofNullable(this.podSubnetIds); + } + @Import(name="spotPercentage") private @Nullable Output spotPercentage; @@ -156,6 +163,13 @@ public Optional>> taints() { return Optional.ofNullable(this.taints); } + @Import(name="vnetSubnetIds") + private @Nullable Output> vnetSubnetIds; + + public Optional>> vnetSubnetIds() { + return Optional.ofNullable(this.vnetSubnetIds); + } + private OceanNpVirtualNodeGroupState() {} private OceanNpVirtualNodeGroupState(OceanNpVirtualNodeGroupState $) { @@ -175,9 +189,11 @@ private OceanNpVirtualNodeGroupState(OceanNpVirtualNodeGroupState $) { this.osDiskType = $.osDiskType; this.osSku = $.osSku; this.osType = $.osType; + this.podSubnetIds = $.podSubnetIds; this.spotPercentage = $.spotPercentage; this.tags = $.tags; this.taints = $.taints; + this.vnetSubnetIds = $.vnetSubnetIds; } public static Builder builder() { @@ -350,6 +366,19 @@ public Builder osType(String osType) { return osType(Output.of(osType)); } + public Builder podSubnetIds(@Nullable Output> podSubnetIds) { + $.podSubnetIds = podSubnetIds; + return this; + } + + public Builder podSubnetIds(List podSubnetIds) { + return podSubnetIds(Output.of(podSubnetIds)); + } + + public Builder podSubnetIds(String... podSubnetIds) { + return podSubnetIds(List.of(podSubnetIds)); + } + public Builder spotPercentage(@Nullable Output spotPercentage) { $.spotPercentage = spotPercentage; return this; @@ -381,6 +410,19 @@ public Builder taints(OceanNpVirtualNodeGroupTaintArgs... taints) { return taints(List.of(taints)); } + public Builder vnetSubnetIds(@Nullable Output> vnetSubnetIds) { + $.vnetSubnetIds = vnetSubnetIds; + return this; + } + + public Builder vnetSubnetIds(List vnetSubnetIds) { + return vnetSubnetIds(Output.of(vnetSubnetIds)); + } + + public Builder vnetSubnetIds(String... vnetSubnetIds) { + return vnetSubnetIds(List.of(vnetSubnetIds)); + } + public OceanNpVirtualNodeGroupState build() { return $; } diff --git a/sdk/java/src/main/java/com/pulumi/spotinst/azure/outputs/OceanNpFilters.java b/sdk/java/src/main/java/com/pulumi/spotinst/azure/outputs/OceanNpFilters.java index 3fcbcc05..1de2f535 100644 --- a/sdk/java/src/main/java/com/pulumi/spotinst/azure/outputs/OceanNpFilters.java +++ b/sdk/java/src/main/java/com/pulumi/spotinst/azure/outputs/OceanNpFilters.java @@ -14,36 +14,64 @@ @CustomType public final class OceanNpFilters { + private @Nullable String acceleratedNetworking; private @Nullable List architectures; + private @Nullable String diskPerformance; private @Nullable List excludeSeries; + private @Nullable Double maxGpu; private @Nullable Double maxMemoryGib; private @Nullable Integer maxVcpu; + private @Nullable Integer minData; + private @Nullable Double minGpu; private @Nullable Double minMemoryGib; + private @Nullable Integer minNics; private @Nullable Integer minVcpu; private @Nullable List series; + private @Nullable List vmTypes; private OceanNpFilters() {} + public Optional acceleratedNetworking() { + return Optional.ofNullable(this.acceleratedNetworking); + } public List architectures() { return this.architectures == null ? List.of() : this.architectures; } + public Optional diskPerformance() { + return Optional.ofNullable(this.diskPerformance); + } public List excludeSeries() { return this.excludeSeries == null ? List.of() : this.excludeSeries; } + public Optional maxGpu() { + return Optional.ofNullable(this.maxGpu); + } public Optional maxMemoryGib() { return Optional.ofNullable(this.maxMemoryGib); } public Optional maxVcpu() { return Optional.ofNullable(this.maxVcpu); } + public Optional minData() { + return Optional.ofNullable(this.minData); + } + public Optional minGpu() { + return Optional.ofNullable(this.minGpu); + } public Optional minMemoryGib() { return Optional.ofNullable(this.minMemoryGib); } + public Optional minNics() { + return Optional.ofNullable(this.minNics); + } public Optional minVcpu() { return Optional.ofNullable(this.minVcpu); } public List series() { return this.series == null ? List.of() : this.series; } + public List vmTypes() { + return this.vmTypes == null ? List.of() : this.vmTypes; + } public static Builder builder() { return new Builder(); @@ -54,25 +82,44 @@ public static Builder builder(OceanNpFilters defaults) { } @CustomType.Builder public static final class Builder { + private @Nullable String acceleratedNetworking; private @Nullable List architectures; + private @Nullable String diskPerformance; private @Nullable List excludeSeries; + private @Nullable Double maxGpu; private @Nullable Double maxMemoryGib; private @Nullable Integer maxVcpu; + private @Nullable Integer minData; + private @Nullable Double minGpu; private @Nullable Double minMemoryGib; + private @Nullable Integer minNics; private @Nullable Integer minVcpu; private @Nullable List series; + private @Nullable List vmTypes; public Builder() {} public Builder(OceanNpFilters defaults) { Objects.requireNonNull(defaults); + this.acceleratedNetworking = defaults.acceleratedNetworking; this.architectures = defaults.architectures; + this.diskPerformance = defaults.diskPerformance; this.excludeSeries = defaults.excludeSeries; + this.maxGpu = defaults.maxGpu; this.maxMemoryGib = defaults.maxMemoryGib; this.maxVcpu = defaults.maxVcpu; + this.minData = defaults.minData; + this.minGpu = defaults.minGpu; this.minMemoryGib = defaults.minMemoryGib; + this.minNics = defaults.minNics; this.minVcpu = defaults.minVcpu; this.series = defaults.series; + this.vmTypes = defaults.vmTypes; } + @CustomType.Setter + public Builder acceleratedNetworking(@Nullable String acceleratedNetworking) { + this.acceleratedNetworking = acceleratedNetworking; + return this; + } @CustomType.Setter public Builder architectures(@Nullable List architectures) { this.architectures = architectures; @@ -82,6 +129,11 @@ public Builder architectures(String... architectures) { return architectures(List.of(architectures)); } @CustomType.Setter + public Builder diskPerformance(@Nullable String diskPerformance) { + this.diskPerformance = diskPerformance; + return this; + } + @CustomType.Setter public Builder excludeSeries(@Nullable List excludeSeries) { this.excludeSeries = excludeSeries; return this; @@ -90,6 +142,11 @@ public Builder excludeSeries(String... excludeSeries) { return excludeSeries(List.of(excludeSeries)); } @CustomType.Setter + public Builder maxGpu(@Nullable Double maxGpu) { + this.maxGpu = maxGpu; + return this; + } + @CustomType.Setter public Builder maxMemoryGib(@Nullable Double maxMemoryGib) { this.maxMemoryGib = maxMemoryGib; return this; @@ -100,11 +157,26 @@ public Builder maxVcpu(@Nullable Integer maxVcpu) { return this; } @CustomType.Setter + public Builder minData(@Nullable Integer minData) { + this.minData = minData; + return this; + } + @CustomType.Setter + public Builder minGpu(@Nullable Double minGpu) { + this.minGpu = minGpu; + return this; + } + @CustomType.Setter public Builder minMemoryGib(@Nullable Double minMemoryGib) { this.minMemoryGib = minMemoryGib; return this; } @CustomType.Setter + public Builder minNics(@Nullable Integer minNics) { + this.minNics = minNics; + return this; + } + @CustomType.Setter public Builder minVcpu(@Nullable Integer minVcpu) { this.minVcpu = minVcpu; return this; @@ -117,15 +189,30 @@ public Builder series(@Nullable List series) { public Builder series(String... series) { return series(List.of(series)); } + @CustomType.Setter + public Builder vmTypes(@Nullable List vmTypes) { + this.vmTypes = vmTypes; + return this; + } + public Builder vmTypes(String... vmTypes) { + return vmTypes(List.of(vmTypes)); + } public OceanNpFilters build() { final var o = new OceanNpFilters(); + o.acceleratedNetworking = acceleratedNetworking; o.architectures = architectures; + o.diskPerformance = diskPerformance; o.excludeSeries = excludeSeries; + o.maxGpu = maxGpu; o.maxMemoryGib = maxMemoryGib; o.maxVcpu = maxVcpu; + o.minData = minData; + o.minGpu = minGpu; o.minMemoryGib = minMemoryGib; + o.minNics = minNics; o.minVcpu = minVcpu; o.series = series; + o.vmTypes = vmTypes; return o; } } diff --git a/sdk/java/src/main/java/com/pulumi/spotinst/azure/outputs/OceanNpVirtualNodeGroupFilters.java b/sdk/java/src/main/java/com/pulumi/spotinst/azure/outputs/OceanNpVirtualNodeGroupFilters.java index 4ceb7cfb..30698aa8 100644 --- a/sdk/java/src/main/java/com/pulumi/spotinst/azure/outputs/OceanNpVirtualNodeGroupFilters.java +++ b/sdk/java/src/main/java/com/pulumi/spotinst/azure/outputs/OceanNpVirtualNodeGroupFilters.java @@ -14,36 +14,64 @@ @CustomType public final class OceanNpVirtualNodeGroupFilters { + private @Nullable String acceleratedNetworking; private @Nullable List architectures; + private @Nullable String diskPerformance; private @Nullable List excludeSeries; + private @Nullable Double maxGpu; private @Nullable Double maxMemoryGib; private @Nullable Integer maxVcpu; + private @Nullable Integer minData; + private @Nullable Double minGpu; private @Nullable Double minMemoryGib; + private @Nullable Integer minNics; private @Nullable Integer minVcpu; private @Nullable List series; + private @Nullable List vmTypes; private OceanNpVirtualNodeGroupFilters() {} + public Optional acceleratedNetworking() { + return Optional.ofNullable(this.acceleratedNetworking); + } public List architectures() { return this.architectures == null ? List.of() : this.architectures; } + public Optional diskPerformance() { + return Optional.ofNullable(this.diskPerformance); + } public List excludeSeries() { return this.excludeSeries == null ? List.of() : this.excludeSeries; } + public Optional maxGpu() { + return Optional.ofNullable(this.maxGpu); + } public Optional maxMemoryGib() { return Optional.ofNullable(this.maxMemoryGib); } public Optional maxVcpu() { return Optional.ofNullable(this.maxVcpu); } + public Optional minData() { + return Optional.ofNullable(this.minData); + } + public Optional minGpu() { + return Optional.ofNullable(this.minGpu); + } public Optional minMemoryGib() { return Optional.ofNullable(this.minMemoryGib); } + public Optional minNics() { + return Optional.ofNullable(this.minNics); + } public Optional minVcpu() { return Optional.ofNullable(this.minVcpu); } public List series() { return this.series == null ? List.of() : this.series; } + public List vmTypes() { + return this.vmTypes == null ? List.of() : this.vmTypes; + } public static Builder builder() { return new Builder(); @@ -54,25 +82,44 @@ public static Builder builder(OceanNpVirtualNodeGroupFilters defaults) { } @CustomType.Builder public static final class Builder { + private @Nullable String acceleratedNetworking; private @Nullable List architectures; + private @Nullable String diskPerformance; private @Nullable List excludeSeries; + private @Nullable Double maxGpu; private @Nullable Double maxMemoryGib; private @Nullable Integer maxVcpu; + private @Nullable Integer minData; + private @Nullable Double minGpu; private @Nullable Double minMemoryGib; + private @Nullable Integer minNics; private @Nullable Integer minVcpu; private @Nullable List series; + private @Nullable List vmTypes; public Builder() {} public Builder(OceanNpVirtualNodeGroupFilters defaults) { Objects.requireNonNull(defaults); + this.acceleratedNetworking = defaults.acceleratedNetworking; this.architectures = defaults.architectures; + this.diskPerformance = defaults.diskPerformance; this.excludeSeries = defaults.excludeSeries; + this.maxGpu = defaults.maxGpu; this.maxMemoryGib = defaults.maxMemoryGib; this.maxVcpu = defaults.maxVcpu; + this.minData = defaults.minData; + this.minGpu = defaults.minGpu; this.minMemoryGib = defaults.minMemoryGib; + this.minNics = defaults.minNics; this.minVcpu = defaults.minVcpu; this.series = defaults.series; + this.vmTypes = defaults.vmTypes; } + @CustomType.Setter + public Builder acceleratedNetworking(@Nullable String acceleratedNetworking) { + this.acceleratedNetworking = acceleratedNetworking; + return this; + } @CustomType.Setter public Builder architectures(@Nullable List architectures) { this.architectures = architectures; @@ -82,6 +129,11 @@ public Builder architectures(String... architectures) { return architectures(List.of(architectures)); } @CustomType.Setter + public Builder diskPerformance(@Nullable String diskPerformance) { + this.diskPerformance = diskPerformance; + return this; + } + @CustomType.Setter public Builder excludeSeries(@Nullable List excludeSeries) { this.excludeSeries = excludeSeries; return this; @@ -90,6 +142,11 @@ public Builder excludeSeries(String... excludeSeries) { return excludeSeries(List.of(excludeSeries)); } @CustomType.Setter + public Builder maxGpu(@Nullable Double maxGpu) { + this.maxGpu = maxGpu; + return this; + } + @CustomType.Setter public Builder maxMemoryGib(@Nullable Double maxMemoryGib) { this.maxMemoryGib = maxMemoryGib; return this; @@ -100,11 +157,26 @@ public Builder maxVcpu(@Nullable Integer maxVcpu) { return this; } @CustomType.Setter + public Builder minData(@Nullable Integer minData) { + this.minData = minData; + return this; + } + @CustomType.Setter + public Builder minGpu(@Nullable Double minGpu) { + this.minGpu = minGpu; + return this; + } + @CustomType.Setter public Builder minMemoryGib(@Nullable Double minMemoryGib) { this.minMemoryGib = minMemoryGib; return this; } @CustomType.Setter + public Builder minNics(@Nullable Integer minNics) { + this.minNics = minNics; + return this; + } + @CustomType.Setter public Builder minVcpu(@Nullable Integer minVcpu) { this.minVcpu = minVcpu; return this; @@ -117,15 +189,30 @@ public Builder series(@Nullable List series) { public Builder series(String... series) { return series(List.of(series)); } + @CustomType.Setter + public Builder vmTypes(@Nullable List vmTypes) { + this.vmTypes = vmTypes; + return this; + } + public Builder vmTypes(String... vmTypes) { + return vmTypes(List.of(vmTypes)); + } public OceanNpVirtualNodeGroupFilters build() { final var o = new OceanNpVirtualNodeGroupFilters(); + o.acceleratedNetworking = acceleratedNetworking; o.architectures = architectures; + o.diskPerformance = diskPerformance; o.excludeSeries = excludeSeries; + o.maxGpu = maxGpu; o.maxMemoryGib = maxMemoryGib; o.maxVcpu = maxVcpu; + o.minData = minData; + o.minGpu = minGpu; o.minMemoryGib = minMemoryGib; + o.minNics = minNics; o.minVcpu = minVcpu; o.series = series; + o.vmTypes = vmTypes; return o; } } diff --git a/sdk/nodejs/azure/oceanNp.ts b/sdk/nodejs/azure/oceanNp.ts index 8af906f8..8a0b470e 100644 --- a/sdk/nodejs/azure/oceanNp.ts +++ b/sdk/nodejs/azure/oceanNp.ts @@ -56,10 +56,12 @@ export class OceanNp extends pulumi.CustomResource { public readonly osDiskType!: pulumi.Output; public readonly osSku!: pulumi.Output; public readonly osType!: pulumi.Output; + public readonly podSubnetIds!: pulumi.Output; public readonly scheduling!: pulumi.Output; public readonly spotPercentage!: pulumi.Output; public readonly tags!: pulumi.Output<{[key: string]: any} | undefined>; public readonly taints!: pulumi.Output; + public readonly vnetSubnetIds!: pulumi.Output; /** * Create a OceanNp resource with the given unique name, arguments, and options. @@ -96,10 +98,12 @@ export class OceanNp extends pulumi.CustomResource { resourceInputs["osDiskType"] = state ? state.osDiskType : undefined; resourceInputs["osSku"] = state ? state.osSku : undefined; resourceInputs["osType"] = state ? state.osType : undefined; + resourceInputs["podSubnetIds"] = state ? state.podSubnetIds : undefined; resourceInputs["scheduling"] = state ? state.scheduling : undefined; resourceInputs["spotPercentage"] = state ? state.spotPercentage : undefined; resourceInputs["tags"] = state ? state.tags : undefined; resourceInputs["taints"] = state ? state.taints : undefined; + resourceInputs["vnetSubnetIds"] = state ? state.vnetSubnetIds : undefined; } else { const args = argsOrState as OceanNpArgs | undefined; if ((!args || args.aksClusterName === undefined) && !opts.urn) { @@ -139,10 +143,12 @@ export class OceanNp extends pulumi.CustomResource { resourceInputs["osDiskType"] = args ? args.osDiskType : undefined; resourceInputs["osSku"] = args ? args.osSku : undefined; resourceInputs["osType"] = args ? args.osType : undefined; + resourceInputs["podSubnetIds"] = args ? args.podSubnetIds : undefined; resourceInputs["scheduling"] = args ? args.scheduling : undefined; resourceInputs["spotPercentage"] = args ? args.spotPercentage : undefined; resourceInputs["tags"] = args ? args.tags : undefined; resourceInputs["taints"] = args ? args.taints : undefined; + resourceInputs["vnetSubnetIds"] = args ? args.vnetSubnetIds : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(OceanNp.__pulumiType, name, resourceInputs, opts); @@ -175,10 +181,12 @@ export interface OceanNpState { osDiskType?: pulumi.Input; osSku?: pulumi.Input; osType?: pulumi.Input; + podSubnetIds?: pulumi.Input[]>; scheduling?: pulumi.Input; spotPercentage?: pulumi.Input; tags?: pulumi.Input<{[key: string]: any}>; taints?: pulumi.Input[]>; + vnetSubnetIds?: pulumi.Input[]>; } /** @@ -207,8 +215,10 @@ export interface OceanNpArgs { osDiskType?: pulumi.Input; osSku?: pulumi.Input; osType?: pulumi.Input; + podSubnetIds?: pulumi.Input[]>; scheduling?: pulumi.Input; spotPercentage?: pulumi.Input; tags?: pulumi.Input<{[key: string]: any}>; taints?: pulumi.Input[]>; + vnetSubnetIds?: pulumi.Input[]>; } diff --git a/sdk/nodejs/azure/oceanNpVirtualNodeGroup.ts b/sdk/nodejs/azure/oceanNpVirtualNodeGroup.ts index a5b842eb..7cfc49e5 100644 --- a/sdk/nodejs/azure/oceanNpVirtualNodeGroup.ts +++ b/sdk/nodejs/azure/oceanNpVirtualNodeGroup.ts @@ -50,9 +50,11 @@ export class OceanNpVirtualNodeGroup extends pulumi.CustomResource { public readonly osDiskType!: pulumi.Output; public readonly osSku!: pulumi.Output; public readonly osType!: pulumi.Output; + public readonly podSubnetIds!: pulumi.Output; public readonly spotPercentage!: pulumi.Output; public readonly tags!: pulumi.Output<{[key: string]: any} | undefined>; public readonly taints!: pulumi.Output; + public readonly vnetSubnetIds!: pulumi.Output; /** * Create a OceanNpVirtualNodeGroup resource with the given unique name, arguments, and options. @@ -83,9 +85,11 @@ export class OceanNpVirtualNodeGroup extends pulumi.CustomResource { resourceInputs["osDiskType"] = state ? state.osDiskType : undefined; resourceInputs["osSku"] = state ? state.osSku : undefined; resourceInputs["osType"] = state ? state.osType : undefined; + resourceInputs["podSubnetIds"] = state ? state.podSubnetIds : undefined; resourceInputs["spotPercentage"] = state ? state.spotPercentage : undefined; resourceInputs["tags"] = state ? state.tags : undefined; resourceInputs["taints"] = state ? state.taints : undefined; + resourceInputs["vnetSubnetIds"] = state ? state.vnetSubnetIds : undefined; } else { const args = argsOrState as OceanNpVirtualNodeGroupArgs | undefined; if ((!args || args.oceanId === undefined) && !opts.urn) { @@ -107,9 +111,11 @@ export class OceanNpVirtualNodeGroup extends pulumi.CustomResource { resourceInputs["osDiskType"] = args ? args.osDiskType : undefined; resourceInputs["osSku"] = args ? args.osSku : undefined; resourceInputs["osType"] = args ? args.osType : undefined; + resourceInputs["podSubnetIds"] = args ? args.podSubnetIds : undefined; resourceInputs["spotPercentage"] = args ? args.spotPercentage : undefined; resourceInputs["tags"] = args ? args.tags : undefined; resourceInputs["taints"] = args ? args.taints : undefined; + resourceInputs["vnetSubnetIds"] = args ? args.vnetSubnetIds : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(OceanNpVirtualNodeGroup.__pulumiType, name, resourceInputs, opts); @@ -136,9 +142,11 @@ export interface OceanNpVirtualNodeGroupState { osDiskType?: pulumi.Input; osSku?: pulumi.Input; osType?: pulumi.Input; + podSubnetIds?: pulumi.Input[]>; spotPercentage?: pulumi.Input; tags?: pulumi.Input<{[key: string]: any}>; taints?: pulumi.Input[]>; + vnetSubnetIds?: pulumi.Input[]>; } /** @@ -161,7 +169,9 @@ export interface OceanNpVirtualNodeGroupArgs { osDiskType?: pulumi.Input; osSku?: pulumi.Input; osType?: pulumi.Input; + podSubnetIds?: pulumi.Input[]>; spotPercentage?: pulumi.Input; tags?: pulumi.Input<{[key: string]: any}>; taints?: pulumi.Input[]>; + vnetSubnetIds?: pulumi.Input[]>; } diff --git a/sdk/nodejs/types/input.ts b/sdk/nodejs/types/input.ts index 0f23c375..535cebf0 100644 --- a/sdk/nodejs/types/input.ts +++ b/sdk/nodejs/types/input.ts @@ -3565,13 +3565,20 @@ export namespace azure { } export interface OceanNpFilters { + acceleratedNetworking?: pulumi.Input; architectures?: pulumi.Input[]>; + diskPerformance?: pulumi.Input; excludeSeries?: pulumi.Input[]>; + maxGpu?: pulumi.Input; maxMemoryGib?: pulumi.Input; maxVcpu?: pulumi.Input; + minData?: pulumi.Input; + minGpu?: pulumi.Input; minMemoryGib?: pulumi.Input; + minNics?: pulumi.Input; minVcpu?: pulumi.Input; series?: pulumi.Input[]>; + vmTypes?: pulumi.Input[]>; } export interface OceanNpHeadroom { @@ -3601,13 +3608,20 @@ export namespace azure { } export interface OceanNpVirtualNodeGroupFilters { + acceleratedNetworking?: pulumi.Input; architectures?: pulumi.Input[]>; + diskPerformance?: pulumi.Input; excludeSeries?: pulumi.Input[]>; + maxGpu?: pulumi.Input; maxMemoryGib?: pulumi.Input; maxVcpu?: pulumi.Input; + minData?: pulumi.Input; + minGpu?: pulumi.Input; minMemoryGib?: pulumi.Input; + minNics?: pulumi.Input; minVcpu?: pulumi.Input; series?: pulumi.Input[]>; + vmTypes?: pulumi.Input[]>; } export interface OceanNpVirtualNodeGroupHeadroom { diff --git a/sdk/nodejs/types/output.ts b/sdk/nodejs/types/output.ts index 80b50e41..724aa637 100644 --- a/sdk/nodejs/types/output.ts +++ b/sdk/nodejs/types/output.ts @@ -3567,13 +3567,20 @@ export namespace azure { } export interface OceanNpFilters { + acceleratedNetworking?: string; architectures?: string[]; + diskPerformance?: string; excludeSeries?: string[]; + maxGpu?: number; maxMemoryGib?: number; maxVcpu?: number; + minData?: number; + minGpu?: number; minMemoryGib?: number; + minNics?: number; minVcpu?: number; series?: string[]; + vmTypes?: string[]; } export interface OceanNpHeadroom { @@ -3603,13 +3610,20 @@ export namespace azure { } export interface OceanNpVirtualNodeGroupFilters { + acceleratedNetworking?: string; architectures?: string[]; + diskPerformance?: string; excludeSeries?: string[]; + maxGpu?: number; maxMemoryGib?: number; maxVcpu?: number; + minData?: number; + minGpu?: number; minMemoryGib?: number; + minNics?: number; minVcpu?: number; series?: string[]; + vmTypes?: string[]; } export interface OceanNpVirtualNodeGroupHeadroom { diff --git a/sdk/python/pulumi_spotinst/_inputs.py b/sdk/python/pulumi_spotinst/_inputs.py index 1ece58ec..8896a8a1 100644 --- a/sdk/python/pulumi_spotinst/_inputs.py +++ b/sdk/python/pulumi_spotinst/_inputs.py @@ -76,7 +76,11 @@ def _configure( _setter: Callable[[Any, Any], None], bucket_name: pulumi.Input[str], subdir: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'bucketName' in kwargs: + bucket_name = kwargs['bucketName'] + _setter("bucket_name", bucket_name) if subdir is not None: _setter("subdir", subdir) @@ -118,7 +122,9 @@ def _configure( _setter: Callable[[Any, Any], None], customs: Optional[pulumi.Input[Sequence[pulumi.Input['ElastigroupAzureV3ImageCustomArgs']]]] = None, marketplaces: Optional[pulumi.Input[Sequence[pulumi.Input['ElastigroupAzureV3ImageMarketplaceArgs']]]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if customs is not None: _setter("customs", customs) if marketplaces is not None: @@ -158,7 +164,13 @@ def _configure( _setter: Callable[[Any, Any], None], image_name: pulumi.Input[str], resource_group_name: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'imageName' in kwargs: + image_name = kwargs['imageName'] + if 'resourceGroupName' in kwargs: + resource_group_name = kwargs['resourceGroupName'] + _setter("image_name", image_name) _setter("resource_group_name", resource_group_name) @@ -202,7 +214,9 @@ def _configure( publisher: pulumi.Input[str], sku: pulumi.Input[str], version: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("offer", offer) _setter("publisher", publisher) _setter("sku", sku) @@ -263,7 +277,13 @@ def _configure( user_name: pulumi.Input[str], password: Optional[pulumi.Input[str]] = None, ssh_public_key: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'userName' in kwargs: + user_name = kwargs['userName'] + if 'sshPublicKey' in kwargs: + ssh_public_key = kwargs['sshPublicKey'] + _setter("user_name", user_name) if password is not None: _setter("password", password) @@ -313,7 +333,11 @@ def _configure( _setter: Callable[[Any, Any], None], name: pulumi.Input[str], resource_group_name: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'resourceGroupName' in kwargs: + resource_group_name = kwargs['resourceGroupName'] + _setter("name", name) _setter("resource_group_name", resource_group_name) @@ -354,7 +378,15 @@ def _configure( network_interfaces: pulumi.Input[Sequence[pulumi.Input['ElastigroupAzureV3NetworkNetworkInterfaceArgs']]], resource_group_name: pulumi.Input[str], virtual_network_name: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'networkInterfaces' in kwargs: + network_interfaces = kwargs['networkInterfaces'] + if 'resourceGroupName' in kwargs: + resource_group_name = kwargs['resourceGroupName'] + if 'virtualNetworkName' in kwargs: + virtual_network_name = kwargs['virtualNetworkName'] + _setter("network_interfaces", network_interfaces) _setter("resource_group_name", resource_group_name) _setter("virtual_network_name", virtual_network_name) @@ -411,7 +443,19 @@ def _configure( subnet_name: pulumi.Input[str], additional_ip_configs: Optional[pulumi.Input[Sequence[pulumi.Input['ElastigroupAzureV3NetworkNetworkInterfaceAdditionalIpConfigArgs']]]] = None, application_security_groups: Optional[pulumi.Input[Sequence[pulumi.Input['ElastigroupAzureV3NetworkNetworkInterfaceApplicationSecurityGroupArgs']]]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'assignPublicIp' in kwargs: + assign_public_ip = kwargs['assignPublicIp'] + if 'isPrimary' in kwargs: + is_primary = kwargs['isPrimary'] + if 'subnetName' in kwargs: + subnet_name = kwargs['subnetName'] + if 'additionalIpConfigs' in kwargs: + additional_ip_configs = kwargs['additionalIpConfigs'] + if 'applicationSecurityGroups' in kwargs: + application_security_groups = kwargs['applicationSecurityGroups'] + _setter("assign_public_ip", assign_public_ip) _setter("is_primary", is_primary) _setter("subnet_name", subnet_name) @@ -481,7 +525,11 @@ def _configure( _setter: Callable[[Any, Any], None], name: pulumi.Input[str], private_ip_version: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'privateIpVersion' in kwargs: + private_ip_version = kwargs['privateIpVersion'] + _setter("name", name) if private_ip_version is not None: _setter("private_ip_version", private_ip_version) @@ -520,7 +568,11 @@ def _configure( _setter: Callable[[Any, Any], None], name: pulumi.Input[str], resource_group_name: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'resourceGroupName' in kwargs: + resource_group_name = kwargs['resourceGroupName'] + _setter("name", name) _setter("resource_group_name", resource_group_name) @@ -558,7 +610,9 @@ def _configure( _setter: Callable[[Any, Any], None], key: pulumi.Input[str], value: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("key", key) _setter("value", value) @@ -626,7 +680,13 @@ def _configure( endpoint: Optional[pulumi.Input[str]] = None, time_out: Optional[pulumi.Input[int]] = None, timeout: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'endPoint' in kwargs: + end_point = kwargs['endPoint'] + if 'timeOut' in kwargs: + time_out = kwargs['timeOut'] + _setter("healthy", healthy) _setter("interval", interval) _setter("port", port) @@ -771,7 +831,17 @@ def _configure( storage_account_type: pulumi.Input[str], lun: Optional[pulumi.Input[int]] = None, zone: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'dataDiskName' in kwargs: + data_disk_name = kwargs['dataDiskName'] + if 'dataDiskResourceGroupName' in kwargs: + data_disk_resource_group_name = kwargs['dataDiskResourceGroupName'] + if 'sizeGb' in kwargs: + size_gb = kwargs['sizeGb'] + if 'storageAccountType' in kwargs: + storage_account_type = kwargs['storageAccountType'] + _setter("data_disk_name", data_disk_name) _setter("data_disk_resource_group_name", data_disk_resource_group_name) _setter("size_gb", size_gb) @@ -854,7 +924,13 @@ def _configure( is_enabled: Optional[pulumi.Input[bool]] = None, storage_url: Optional[pulumi.Input[str]] = None, type: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'isEnabled' in kwargs: + is_enabled = kwargs['isEnabled'] + if 'storageUrl' in kwargs: + storage_url = kwargs['storageUrl'] + if is_enabled is not None: _setter("is_enabled", is_enabled) if storage_url is not None: @@ -908,7 +984,11 @@ def _configure( lun: pulumi.Input[int], size_gb: pulumi.Input[int], type: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'sizeGb' in kwargs: + size_gb = kwargs['sizeGb'] + _setter("lun", lun) _setter("size_gb", size_gb) _setter("type", type) @@ -977,7 +1057,27 @@ def _configure( network_ttl_in_hours: Optional[pulumi.Input[int]] = None, public_ip_ttl_in_hours: Optional[pulumi.Input[int]] = None, snapshot_ttl_in_hours: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'diskShouldDeallocate' in kwargs: + disk_should_deallocate = kwargs['diskShouldDeallocate'] + if 'networkShouldDeallocate' in kwargs: + network_should_deallocate = kwargs['networkShouldDeallocate'] + if 'publicIpShouldDeallocate' in kwargs: + public_ip_should_deallocate = kwargs['publicIpShouldDeallocate'] + if 'shouldTerminateVm' in kwargs: + should_terminate_vm = kwargs['shouldTerminateVm'] + if 'snapshotShouldDeallocate' in kwargs: + snapshot_should_deallocate = kwargs['snapshotShouldDeallocate'] + if 'diskTtlInHours' in kwargs: + disk_ttl_in_hours = kwargs['diskTtlInHours'] + if 'networkTtlInHours' in kwargs: + network_ttl_in_hours = kwargs['networkTtlInHours'] + if 'publicIpTtlInHours' in kwargs: + public_ip_ttl_in_hours = kwargs['publicIpTtlInHours'] + if 'snapshotTtlInHours' in kwargs: + snapshot_ttl_in_hours = kwargs['snapshotTtlInHours'] + _setter("disk_should_deallocate", disk_should_deallocate) _setter("network_should_deallocate", network_should_deallocate) _setter("public_ip_should_deallocate", public_ip_should_deallocate) @@ -1095,7 +1195,17 @@ def _configure( data_disk_resource_group_name: pulumi.Input[str], should_deallocate: pulumi.Input[bool], ttl_in_hours: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'dataDiskName' in kwargs: + data_disk_name = kwargs['dataDiskName'] + if 'dataDiskResourceGroupName' in kwargs: + data_disk_resource_group_name = kwargs['dataDiskResourceGroupName'] + if 'shouldDeallocate' in kwargs: + should_deallocate = kwargs['shouldDeallocate'] + if 'ttlInHours' in kwargs: + ttl_in_hours = kwargs['ttlInHours'] + _setter("data_disk_name", data_disk_name) _setter("data_disk_resource_group_name", data_disk_resource_group_name) _setter("should_deallocate", should_deallocate) @@ -1169,7 +1279,17 @@ def _configure( type: pulumi.Input[str], protected_settings: Optional[pulumi.Input[Mapping[str, Any]]] = None, public_settings: Optional[pulumi.Input[Mapping[str, Any]]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'apiVersion' in kwargs: + api_version = kwargs['apiVersion'] + if 'minorVersionAutoUpgrade' in kwargs: + minor_version_auto_upgrade = kwargs['minorVersionAutoUpgrade'] + if 'protectedSettings' in kwargs: + protected_settings = kwargs['protectedSettings'] + if 'publicSettings' in kwargs: + public_settings = kwargs['publicSettings'] + _setter("api_version", api_version) _setter("minor_version_auto_upgrade", minor_version_auto_upgrade) _setter("name", name) @@ -1265,7 +1385,17 @@ def _configure( health_check_types: pulumi.Input[Sequence[pulumi.Input[str]]], grace_period: Optional[pulumi.Input[int]] = None, unhealthy_duration: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'autoHealing' in kwargs: + auto_healing = kwargs['autoHealing'] + if 'healthCheckTypes' in kwargs: + health_check_types = kwargs['healthCheckTypes'] + if 'gracePeriod' in kwargs: + grace_period = kwargs['gracePeriod'] + if 'unhealthyDuration' in kwargs: + unhealthy_duration = kwargs['unhealthyDuration'] + _setter("auto_healing", auto_healing) _setter("health_check_types", health_check_types) if grace_period is not None: @@ -1328,7 +1458,13 @@ def _configure( custom_images: Optional[pulumi.Input[Sequence[pulumi.Input['StatefulNodeAzureImageCustomImageArgs']]]] = None, galleries: Optional[pulumi.Input[Sequence[pulumi.Input['StatefulNodeAzureImageGalleryArgs']]]] = None, marketplace_images: Optional[pulumi.Input[Sequence[pulumi.Input['StatefulNodeAzureImageMarketplaceImageArgs']]]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'customImages' in kwargs: + custom_images = kwargs['customImages'] + if 'marketplaceImages' in kwargs: + marketplace_images = kwargs['marketplaceImages'] + if custom_images is not None: _setter("custom_images", custom_images) if galleries is not None: @@ -1379,7 +1515,11 @@ def _configure( _setter: Callable[[Any, Any], None], custom_image_resource_group_name: pulumi.Input[str], name: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'customImageResourceGroupName' in kwargs: + custom_image_resource_group_name = kwargs['customImageResourceGroupName'] + _setter("custom_image_resource_group_name", custom_image_resource_group_name) _setter("name", name) @@ -1423,7 +1563,17 @@ def _configure( gallery_resource_group_name: pulumi.Input[str], image_name: pulumi.Input[str], version_name: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'galleryName' in kwargs: + gallery_name = kwargs['galleryName'] + if 'galleryResourceGroupName' in kwargs: + gallery_resource_group_name = kwargs['galleryResourceGroupName'] + if 'imageName' in kwargs: + image_name = kwargs['imageName'] + if 'versionName' in kwargs: + version_name = kwargs['versionName'] + _setter("gallery_name", gallery_name) _setter("gallery_resource_group_name", gallery_resource_group_name) _setter("image_name", image_name) @@ -1487,7 +1637,9 @@ def _configure( publisher: pulumi.Input[str], sku: pulumi.Input[str], version: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("offer", offer) _setter("publisher", publisher) _setter("sku", sku) @@ -1551,7 +1703,17 @@ def _configure( resource_group_name: pulumi.Input[str], draining_timeout: Optional[pulumi.Input[int]] = None, resources_retention_time: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'originalVmName' in kwargs: + original_vm_name = kwargs['originalVmName'] + if 'resourceGroupName' in kwargs: + resource_group_name = kwargs['resourceGroupName'] + if 'drainingTimeout' in kwargs: + draining_timeout = kwargs['drainingTimeout'] + if 'resourcesRetentionTime' in kwargs: + resources_retention_time = kwargs['resourcesRetentionTime'] + _setter("original_vm_name", original_vm_name) _setter("resource_group_name", resource_group_name) if draining_timeout is not None: @@ -1620,7 +1782,13 @@ def _configure( resource_group_name: pulumi.Input[str], type: pulumi.Input[str], sku: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'backendPoolNames' in kwargs: + backend_pool_names = kwargs['backendPoolNames'] + if 'resourceGroupName' in kwargs: + resource_group_name = kwargs['resourceGroupName'] + _setter("backend_pool_names", backend_pool_names) _setter("name", name) _setter("resource_group_name", resource_group_name) @@ -1692,7 +1860,13 @@ def _configure( user_name: pulumi.Input[str], password: Optional[pulumi.Input[str]] = None, ssh_public_key: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'userName' in kwargs: + user_name = kwargs['userName'] + if 'sshPublicKey' in kwargs: + ssh_public_key = kwargs['sshPublicKey'] + _setter("user_name", user_name) if password is not None: _setter("password", password) @@ -1742,7 +1916,11 @@ def _configure( _setter: Callable[[Any, Any], None], name: pulumi.Input[str], resource_group_name: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'resourceGroupName' in kwargs: + resource_group_name = kwargs['resourceGroupName'] + _setter("name", name) _setter("resource_group_name", resource_group_name) @@ -1783,7 +1961,15 @@ def _configure( network_interfaces: pulumi.Input[Sequence[pulumi.Input['StatefulNodeAzureNetworkNetworkInterfaceArgs']]], network_resource_group_name: pulumi.Input[str], virtual_network_name: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'networkInterfaces' in kwargs: + network_interfaces = kwargs['networkInterfaces'] + if 'networkResourceGroupName' in kwargs: + network_resource_group_name = kwargs['networkResourceGroupName'] + if 'virtualNetworkName' in kwargs: + virtual_network_name = kwargs['virtualNetworkName'] + _setter("network_interfaces", network_interfaces) _setter("network_resource_group_name", network_resource_group_name) _setter("virtual_network_name", virtual_network_name) @@ -1855,7 +2041,29 @@ def _configure( private_ip_addresses: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, public_ip_sku: Optional[pulumi.Input[str]] = None, public_ips: Optional[pulumi.Input[Sequence[pulumi.Input['StatefulNodeAzureNetworkNetworkInterfacePublicIpArgs']]]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'isPrimary' in kwargs: + is_primary = kwargs['isPrimary'] + if 'subnetName' in kwargs: + subnet_name = kwargs['subnetName'] + if 'additionalIpConfigurations' in kwargs: + additional_ip_configurations = kwargs['additionalIpConfigurations'] + if 'applicationSecurityGroups' in kwargs: + application_security_groups = kwargs['applicationSecurityGroups'] + if 'assignPublicIp' in kwargs: + assign_public_ip = kwargs['assignPublicIp'] + if 'enableIpForwarding' in kwargs: + enable_ip_forwarding = kwargs['enableIpForwarding'] + if 'networkSecurityGroups' in kwargs: + network_security_groups = kwargs['networkSecurityGroups'] + if 'privateIpAddresses' in kwargs: + private_ip_addresses = kwargs['privateIpAddresses'] + if 'publicIpSku' in kwargs: + public_ip_sku = kwargs['publicIpSku'] + if 'publicIps' in kwargs: + public_ips = kwargs['publicIps'] + _setter("is_primary", is_primary) _setter("subnet_name", subnet_name) if additional_ip_configurations is not None: @@ -1981,7 +2189,11 @@ def _configure( _setter: Callable[[Any, Any], None], name: pulumi.Input[str], private_ip_address_version: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'privateIpAddressVersion' in kwargs: + private_ip_address_version = kwargs['privateIpAddressVersion'] + _setter("name", name) _setter("private_ip_address_version", private_ip_address_version) @@ -2019,7 +2231,11 @@ def _configure( _setter: Callable[[Any, Any], None], name: pulumi.Input[str], network_resource_group_name: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'networkResourceGroupName' in kwargs: + network_resource_group_name = kwargs['networkResourceGroupName'] + _setter("name", name) _setter("network_resource_group_name", network_resource_group_name) @@ -2057,7 +2273,11 @@ def _configure( _setter: Callable[[Any, Any], None], name: Optional[pulumi.Input[str]] = None, network_resource_group_name: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'networkResourceGroupName' in kwargs: + network_resource_group_name = kwargs['networkResourceGroupName'] + if name is not None: _setter("name", name) if network_resource_group_name is not None: @@ -2097,7 +2317,11 @@ def _configure( _setter: Callable[[Any, Any], None], name: pulumi.Input[str], network_resource_group_name: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'networkResourceGroupName' in kwargs: + network_resource_group_name = kwargs['networkResourceGroupName'] + _setter("name", name) _setter("network_resource_group_name", network_resource_group_name) @@ -2135,7 +2359,11 @@ def _configure( _setter: Callable[[Any, Any], None], type: pulumi.Input[str], size_gb: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'sizeGb' in kwargs: + size_gb = kwargs['sizeGb'] + _setter("type", type) if size_gb is not None: _setter("size_gb", size_gb) @@ -2177,7 +2405,13 @@ def _configure( cron_expression: pulumi.Input[str], is_enabled: pulumi.Input[bool], type: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'cronExpression' in kwargs: + cron_expression = kwargs['cronExpression'] + if 'isEnabled' in kwargs: + is_enabled = kwargs['isEnabled'] + _setter("cron_expression", cron_expression) _setter("is_enabled", is_enabled) _setter("type", type) @@ -2225,7 +2459,13 @@ def _configure( _setter: Callable[[Any, Any], None], source_vaults: pulumi.Input[Sequence[pulumi.Input['StatefulNodeAzureSecretSourceVaultArgs']]], vault_certificates: pulumi.Input[Sequence[pulumi.Input['StatefulNodeAzureSecretVaultCertificateArgs']]], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'sourceVaults' in kwargs: + source_vaults = kwargs['sourceVaults'] + if 'vaultCertificates' in kwargs: + vault_certificates = kwargs['vaultCertificates'] + _setter("source_vaults", source_vaults) _setter("vault_certificates", vault_certificates) @@ -2263,7 +2503,11 @@ def _configure( _setter: Callable[[Any, Any], None], name: pulumi.Input[str], resource_group_name: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'resourceGroupName' in kwargs: + resource_group_name = kwargs['resourceGroupName'] + _setter("name", name) _setter("resource_group_name", resource_group_name) @@ -2301,7 +2545,13 @@ def _configure( _setter: Callable[[Any, Any], None], certificate_store: Optional[pulumi.Input[str]] = None, certificate_url: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'certificateStore' in kwargs: + certificate_store = kwargs['certificateStore'] + if 'certificateUrl' in kwargs: + certificate_url = kwargs['certificateUrl'] + if certificate_store is not None: _setter("certificate_store", certificate_store) if certificate_url is not None: @@ -2344,7 +2594,15 @@ def _configure( secure_boot_enabled: Optional[pulumi.Input[bool]] = None, security_type: Optional[pulumi.Input[str]] = None, vtpm_enabled: Optional[pulumi.Input[bool]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'secureBootEnabled' in kwargs: + secure_boot_enabled = kwargs['secureBootEnabled'] + if 'securityType' in kwargs: + security_type = kwargs['securityType'] + if 'vtpmEnabled' in kwargs: + vtpm_enabled = kwargs['vtpmEnabled'] + if secure_boot_enabled is not None: _setter("secure_boot_enabled", secure_boot_enabled) if security_type is not None: @@ -2395,7 +2653,9 @@ def _configure( _setter: Callable[[Any, Any], None], timeout: pulumi.Input[int], type: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("timeout", timeout) _setter("type", type) @@ -2445,7 +2705,21 @@ def _configure( optimization_windows: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, preferred_life_cycle: Optional[pulumi.Input[str]] = None, revert_to_spot: Optional[pulumi.Input['StatefulNodeAzureStrategyRevertToSpotArgs']] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'fallbackToOnDemand' in kwargs: + fallback_to_on_demand = kwargs['fallbackToOnDemand'] + if 'capacityReservations' in kwargs: + capacity_reservations = kwargs['capacityReservations'] + if 'drainingTimeout' in kwargs: + draining_timeout = kwargs['drainingTimeout'] + if 'optimizationWindows' in kwargs: + optimization_windows = kwargs['optimizationWindows'] + if 'preferredLifeCycle' in kwargs: + preferred_life_cycle = kwargs['preferredLifeCycle'] + if 'revertToSpot' in kwargs: + revert_to_spot = kwargs['revertToSpot'] + _setter("fallback_to_on_demand", fallback_to_on_demand) if capacity_reservations is not None: _setter("capacity_reservations", capacity_reservations) @@ -2531,7 +2805,15 @@ def _configure( should_utilize: pulumi.Input[bool], utilization_strategy: pulumi.Input[str], capacity_reservation_groups: Optional[pulumi.Input[Sequence[pulumi.Input['StatefulNodeAzureStrategyCapacityReservationCapacityReservationGroupArgs']]]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'shouldUtilize' in kwargs: + should_utilize = kwargs['shouldUtilize'] + if 'utilizationStrategy' in kwargs: + utilization_strategy = kwargs['utilizationStrategy'] + if 'capacityReservationGroups' in kwargs: + capacity_reservation_groups = kwargs['capacityReservationGroups'] + _setter("should_utilize", should_utilize) _setter("utilization_strategy", utilization_strategy) if capacity_reservation_groups is not None: @@ -2583,7 +2865,15 @@ def _configure( crg_name: pulumi.Input[str], crg_resource_group_name: pulumi.Input[str], crg_should_prioritize: Optional[pulumi.Input[bool]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'crgName' in kwargs: + crg_name = kwargs['crgName'] + if 'crgResourceGroupName' in kwargs: + crg_resource_group_name = kwargs['crgResourceGroupName'] + if 'crgShouldPrioritize' in kwargs: + crg_should_prioritize = kwargs['crgShouldPrioritize'] + _setter("crg_name", crg_name) _setter("crg_resource_group_name", crg_resource_group_name) if crg_should_prioritize is not None: @@ -2629,7 +2919,11 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], perform_at: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'performAt' in kwargs: + perform_at = kwargs['performAt'] + _setter("perform_at", perform_at) @property @@ -2657,7 +2951,13 @@ def _configure( _setter: Callable[[Any, Any], None], tag_key: pulumi.Input[str], tag_value: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'tagKey' in kwargs: + tag_key = kwargs['tagKey'] + if 'tagValue' in kwargs: + tag_value = kwargs['tagValue'] + _setter("tag_key", tag_key) if tag_value is not None: _setter("tag_value", tag_value) @@ -2693,7 +2993,9 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], state: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("state", state) @property diff --git a/sdk/python/pulumi_spotinst/aws/_inputs.py b/sdk/python/pulumi_spotinst/aws/_inputs.py index 9f1e3f97..60a0d755 100644 --- a/sdk/python/pulumi_spotinst/aws/_inputs.py +++ b/sdk/python/pulumi_spotinst/aws/_inputs.py @@ -195,7 +195,15 @@ def _configure( batch_size_percentage: Optional[pulumi.Input[int]] = None, grace_period: Optional[pulumi.Input[int]] = None, strategies: Optional[pulumi.Input[Sequence[pulumi.Input['BeanstalkDeploymentPreferencesStrategyArgs']]]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'automaticRoll' in kwargs: + automatic_roll = kwargs['automaticRoll'] + if 'batchSizePercentage' in kwargs: + batch_size_percentage = kwargs['batchSizePercentage'] + if 'gracePeriod' in kwargs: + grace_period = kwargs['gracePeriod'] + if automatic_roll is not None: _setter("automatic_roll", automatic_roll) if batch_size_percentage is not None: @@ -273,7 +281,11 @@ def _configure( _setter: Callable[[Any, Any], None], action: Optional[pulumi.Input[str]] = None, should_drain_instances: Optional[pulumi.Input[bool]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'shouldDrainInstances' in kwargs: + should_drain_instances = kwargs['shouldDrainInstances'] + if action is not None: _setter("action", action) if should_drain_instances is not None: @@ -319,7 +331,11 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], platform_update: Optional[pulumi.Input['BeanstalkManagedActionsPlatformUpdateArgs']] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'platformUpdate' in kwargs: + platform_update = kwargs['platformUpdate'] + if platform_update is not None: _setter("platform_update", platform_update) @@ -359,7 +375,15 @@ def _configure( perform_at: Optional[pulumi.Input[str]] = None, time_window: Optional[pulumi.Input[str]] = None, update_level: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'performAt' in kwargs: + perform_at = kwargs['performAt'] + if 'timeWindow' in kwargs: + time_window = kwargs['timeWindow'] + if 'updateLevel' in kwargs: + update_level = kwargs['updateLevel'] + if perform_at is not None: _setter("perform_at", perform_at) if time_window is not None: @@ -481,7 +505,35 @@ def _configure( scale_target_capacity: Optional[pulumi.Input[str]] = None, start_time: Optional[pulumi.Input[str]] = None, target_capacity: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'taskType' in kwargs: + task_type = kwargs['taskType'] + if 'adjustmentPercentage' in kwargs: + adjustment_percentage = kwargs['adjustmentPercentage'] + if 'batchSizePercentage' in kwargs: + batch_size_percentage = kwargs['batchSizePercentage'] + if 'cronExpression' in kwargs: + cron_expression = kwargs['cronExpression'] + if 'gracePeriod' in kwargs: + grace_period = kwargs['gracePeriod'] + if 'isEnabled' in kwargs: + is_enabled = kwargs['isEnabled'] + if 'maxCapacity' in kwargs: + max_capacity = kwargs['maxCapacity'] + if 'minCapacity' in kwargs: + min_capacity = kwargs['minCapacity'] + if 'scaleMaxCapacity' in kwargs: + scale_max_capacity = kwargs['scaleMaxCapacity'] + if 'scaleMinCapacity' in kwargs: + scale_min_capacity = kwargs['scaleMinCapacity'] + if 'scaleTargetCapacity' in kwargs: + scale_target_capacity = kwargs['scaleTargetCapacity'] + if 'startTime' in kwargs: + start_time = kwargs['startTime'] + if 'targetCapacity' in kwargs: + target_capacity = kwargs['targetCapacity'] + _setter("task_type", task_type) if adjustment is not None: _setter("adjustment", adjustment) @@ -714,7 +766,11 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], threads_per_core: pulumi.Input[int], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'threadsPerCore' in kwargs: + threads_per_core = kwargs['threadsPerCore'] + _setter("threads_per_core", threads_per_core) @property @@ -785,7 +841,21 @@ def _configure( throughput: Optional[pulumi.Input[int]] = None, volume_size: Optional[pulumi.Input[int]] = None, volume_type: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'deviceName' in kwargs: + device_name = kwargs['deviceName'] + if 'deleteOnTermination' in kwargs: + delete_on_termination = kwargs['deleteOnTermination'] + if 'kmsKeyId' in kwargs: + kms_key_id = kwargs['kmsKeyId'] + if 'snapshotId' in kwargs: + snapshot_id = kwargs['snapshotId'] + if 'volumeSize' in kwargs: + volume_size = kwargs['volumeSize'] + if 'volumeType' in kwargs: + volume_type = kwargs['volumeType'] + _setter("device_name", device_name) if delete_on_termination is not None: _setter("delete_on_termination", delete_on_termination) @@ -947,7 +1017,13 @@ def _configure( _setter: Callable[[Any, Any], None], device_name: pulumi.Input[str], virtual_name: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'deviceName' in kwargs: + device_name = kwargs['deviceName'] + if 'virtualName' in kwargs: + virtual_name = kwargs['virtualName'] + _setter("device_name", device_name) _setter("virtual_name", virtual_name) @@ -995,7 +1071,9 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], images: pulumi.Input[Sequence[pulumi.Input['ElastigroupImageImageArgs']]], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("images", images) @property @@ -1023,7 +1101,9 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], id: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("id", id) @property @@ -1058,7 +1138,11 @@ def _configure( _setter: Callable[[Any, Any], None], instance_type: pulumi.Input[str], weight: pulumi.Input[int], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'instanceType' in kwargs: + instance_type = kwargs['instanceType'] + _setter("instance_type", instance_type) _setter("weight", weight) @@ -1109,7 +1193,15 @@ def _configure( deployment_preferences: Optional[pulumi.Input['ElastigroupIntegrationBeanstalkDeploymentPreferencesArgs']] = None, environment_id: Optional[pulumi.Input[str]] = None, managed_actions: Optional[pulumi.Input['ElastigroupIntegrationBeanstalkManagedActionsArgs']] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'deploymentPreferences' in kwargs: + deployment_preferences = kwargs['deploymentPreferences'] + if 'environmentId' in kwargs: + environment_id = kwargs['environmentId'] + if 'managedActions' in kwargs: + managed_actions = kwargs['managedActions'] + if deployment_preferences is not None: _setter("deployment_preferences", deployment_preferences) if environment_id is not None: @@ -1178,7 +1270,15 @@ def _configure( batch_size_percentage: Optional[pulumi.Input[int]] = None, grace_period: Optional[pulumi.Input[int]] = None, strategy: Optional[pulumi.Input['ElastigroupIntegrationBeanstalkDeploymentPreferencesStrategyArgs']] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'automaticRoll' in kwargs: + automatic_roll = kwargs['automaticRoll'] + if 'batchSizePercentage' in kwargs: + batch_size_percentage = kwargs['batchSizePercentage'] + if 'gracePeriod' in kwargs: + grace_period = kwargs['gracePeriod'] + if automatic_roll is not None: _setter("automatic_roll", automatic_roll) if batch_size_percentage is not None: @@ -1256,7 +1356,11 @@ def _configure( _setter: Callable[[Any, Any], None], action: Optional[pulumi.Input[str]] = None, should_drain_instances: Optional[pulumi.Input[bool]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'shouldDrainInstances' in kwargs: + should_drain_instances = kwargs['shouldDrainInstances'] + if action is not None: _setter("action", action) if should_drain_instances is not None: @@ -1302,7 +1406,11 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], platform_update: Optional[pulumi.Input['ElastigroupIntegrationBeanstalkManagedActionsPlatformUpdateArgs']] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'platformUpdate' in kwargs: + platform_update = kwargs['platformUpdate'] + if platform_update is not None: _setter("platform_update", platform_update) @@ -1348,7 +1456,15 @@ def _configure( perform_at: Optional[pulumi.Input[str]] = None, time_window: Optional[pulumi.Input[str]] = None, update_level: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'performAt' in kwargs: + perform_at = kwargs['performAt'] + if 'timeWindow' in kwargs: + time_window = kwargs['timeWindow'] + if 'updateLevel' in kwargs: + update_level = kwargs['updateLevel'] + if perform_at is not None: _setter("perform_at", perform_at) if time_window is not None: @@ -1422,7 +1538,15 @@ def _configure( cleanup_on_failure: pulumi.Input[bool], deployment_groups: pulumi.Input[Sequence[pulumi.Input['ElastigroupIntegrationCodedeployDeploymentGroupArgs']]], terminate_instance_on_failure: pulumi.Input[bool], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'cleanupOnFailure' in kwargs: + cleanup_on_failure = kwargs['cleanupOnFailure'] + if 'deploymentGroups' in kwargs: + deployment_groups = kwargs['deploymentGroups'] + if 'terminateInstanceOnFailure' in kwargs: + terminate_instance_on_failure = kwargs['terminateInstanceOnFailure'] + _setter("cleanup_on_failure", cleanup_on_failure) _setter("deployment_groups", deployment_groups) _setter("terminate_instance_on_failure", terminate_instance_on_failure) @@ -1489,7 +1613,13 @@ def _configure( _setter: Callable[[Any, Any], None], application_name: pulumi.Input[str], deployment_group_name: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'applicationName' in kwargs: + application_name = kwargs['applicationName'] + if 'deploymentGroupName' in kwargs: + deployment_group_name = kwargs['deploymentGroupName'] + _setter("application_name", application_name) _setter("deployment_group_name", deployment_group_name) @@ -1559,7 +1689,21 @@ def _configure( autoscale_down: Optional[pulumi.Input['ElastigroupIntegrationDockerSwarmAutoscaleDownArgs']] = None, autoscale_headroom: Optional[pulumi.Input['ElastigroupIntegrationDockerSwarmAutoscaleHeadroomArgs']] = None, autoscale_is_enabled: Optional[pulumi.Input[bool]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'masterHost' in kwargs: + master_host = kwargs['masterHost'] + if 'masterPort' in kwargs: + master_port = kwargs['masterPort'] + if 'autoscaleCooldown' in kwargs: + autoscale_cooldown = kwargs['autoscaleCooldown'] + if 'autoscaleDown' in kwargs: + autoscale_down = kwargs['autoscaleDown'] + if 'autoscaleHeadroom' in kwargs: + autoscale_headroom = kwargs['autoscaleHeadroom'] + if 'autoscaleIsEnabled' in kwargs: + autoscale_is_enabled = kwargs['autoscaleIsEnabled'] + _setter("master_host", master_host) _setter("master_port", master_port) if autoscale_cooldown is not None: @@ -1663,7 +1807,13 @@ def _configure( _setter: Callable[[Any, Any], None], evaluation_periods: Optional[pulumi.Input[int]] = None, max_scale_down_percentage: Optional[pulumi.Input[float]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'evaluationPeriods' in kwargs: + evaluation_periods = kwargs['evaluationPeriods'] + if 'maxScaleDownPercentage' in kwargs: + max_scale_down_percentage = kwargs['maxScaleDownPercentage'] + if evaluation_periods is not None: _setter("evaluation_periods", evaluation_periods) if max_scale_down_percentage is not None: @@ -1717,7 +1867,15 @@ def _configure( cpu_per_unit: Optional[pulumi.Input[int]] = None, memory_per_unit: Optional[pulumi.Input[int]] = None, num_of_units: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'cpuPerUnit' in kwargs: + cpu_per_unit = kwargs['cpuPerUnit'] + if 'memoryPerUnit' in kwargs: + memory_per_unit = kwargs['memoryPerUnit'] + if 'numOfUnits' in kwargs: + num_of_units = kwargs['numOfUnits'] + if cpu_per_unit is not None: _setter("cpu_per_unit", cpu_per_unit) if memory_per_unit is not None: @@ -1809,7 +1967,25 @@ def _configure( autoscale_is_enabled: Optional[pulumi.Input[bool]] = None, autoscale_scale_down_non_service_tasks: Optional[pulumi.Input[bool]] = None, batch: Optional[pulumi.Input['ElastigroupIntegrationEcsBatchArgs']] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'clusterName' in kwargs: + cluster_name = kwargs['clusterName'] + if 'autoscaleAttributes' in kwargs: + autoscale_attributes = kwargs['autoscaleAttributes'] + if 'autoscaleCooldown' in kwargs: + autoscale_cooldown = kwargs['autoscaleCooldown'] + if 'autoscaleDown' in kwargs: + autoscale_down = kwargs['autoscaleDown'] + if 'autoscaleHeadroom' in kwargs: + autoscale_headroom = kwargs['autoscaleHeadroom'] + if 'autoscaleIsAutoConfig' in kwargs: + autoscale_is_auto_config = kwargs['autoscaleIsAutoConfig'] + if 'autoscaleIsEnabled' in kwargs: + autoscale_is_enabled = kwargs['autoscaleIsEnabled'] + if 'autoscaleScaleDownNonServiceTasks' in kwargs: + autoscale_scale_down_non_service_tasks = kwargs['autoscaleScaleDownNonServiceTasks'] + _setter("cluster_name", cluster_name) if autoscale_attributes is not None: _setter("autoscale_attributes", autoscale_attributes) @@ -1955,7 +2131,9 @@ def _configure( _setter: Callable[[Any, Any], None], key: pulumi.Input[str], value: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("key", key) _setter("value", value) @@ -2000,7 +2178,13 @@ def _configure( _setter: Callable[[Any, Any], None], evaluation_periods: Optional[pulumi.Input[int]] = None, max_scale_down_percentage: Optional[pulumi.Input[float]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'evaluationPeriods' in kwargs: + evaluation_periods = kwargs['evaluationPeriods'] + if 'maxScaleDownPercentage' in kwargs: + max_scale_down_percentage = kwargs['maxScaleDownPercentage'] + if evaluation_periods is not None: _setter("evaluation_periods", evaluation_periods) if max_scale_down_percentage is not None: @@ -2054,7 +2238,15 @@ def _configure( cpu_per_unit: Optional[pulumi.Input[int]] = None, memory_per_unit: Optional[pulumi.Input[int]] = None, num_of_units: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'cpuPerUnit' in kwargs: + cpu_per_unit = kwargs['cpuPerUnit'] + if 'memoryPerUnit' in kwargs: + memory_per_unit = kwargs['memoryPerUnit'] + if 'numOfUnits' in kwargs: + num_of_units = kwargs['numOfUnits'] + if cpu_per_unit is not None: _setter("cpu_per_unit", cpu_per_unit) if memory_per_unit is not None: @@ -2120,7 +2312,11 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], job_queue_names: pulumi.Input[Sequence[pulumi.Input[str]]], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'jobQueueNames' in kwargs: + job_queue_names = kwargs['jobQueueNames'] + _setter("job_queue_names", job_queue_names) @property @@ -2157,7 +2353,9 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], runner: Optional[pulumi.Input['ElastigroupIntegrationGitlabRunnerArgs']] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if runner is not None: _setter("runner", runner) @@ -2189,7 +2387,11 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], is_enabled: Optional[pulumi.Input[bool]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'isEnabled' in kwargs: + is_enabled = kwargs['isEnabled'] + if is_enabled is not None: _setter("is_enabled", is_enabled) @@ -2268,7 +2470,27 @@ def _configure( cluster_identifier: Optional[pulumi.Input[str]] = None, integration_mode: Optional[pulumi.Input[str]] = None, token: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'apiServer' in kwargs: + api_server = kwargs['apiServer'] + if 'autoscaleCooldown' in kwargs: + autoscale_cooldown = kwargs['autoscaleCooldown'] + if 'autoscaleDown' in kwargs: + autoscale_down = kwargs['autoscaleDown'] + if 'autoscaleHeadroom' in kwargs: + autoscale_headroom = kwargs['autoscaleHeadroom'] + if 'autoscaleIsAutoConfig' in kwargs: + autoscale_is_auto_config = kwargs['autoscaleIsAutoConfig'] + if 'autoscaleIsEnabled' in kwargs: + autoscale_is_enabled = kwargs['autoscaleIsEnabled'] + if 'autoscaleLabels' in kwargs: + autoscale_labels = kwargs['autoscaleLabels'] + if 'clusterIdentifier' in kwargs: + cluster_identifier = kwargs['clusterIdentifier'] + if 'integrationMode' in kwargs: + integration_mode = kwargs['integrationMode'] + if api_server is not None: _setter("api_server", api_server) if autoscale_cooldown is not None: @@ -2439,7 +2661,13 @@ def _configure( _setter: Callable[[Any, Any], None], evaluation_periods: Optional[pulumi.Input[int]] = None, max_scale_down_percentage: Optional[pulumi.Input[float]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'evaluationPeriods' in kwargs: + evaluation_periods = kwargs['evaluationPeriods'] + if 'maxScaleDownPercentage' in kwargs: + max_scale_down_percentage = kwargs['maxScaleDownPercentage'] + if evaluation_periods is not None: _setter("evaluation_periods", evaluation_periods) if max_scale_down_percentage is not None: @@ -2493,7 +2721,15 @@ def _configure( cpu_per_unit: Optional[pulumi.Input[int]] = None, memory_per_unit: Optional[pulumi.Input[int]] = None, num_of_units: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'cpuPerUnit' in kwargs: + cpu_per_unit = kwargs['cpuPerUnit'] + if 'memoryPerUnit' in kwargs: + memory_per_unit = kwargs['memoryPerUnit'] + if 'numOfUnits' in kwargs: + num_of_units = kwargs['numOfUnits'] + if cpu_per_unit is not None: _setter("cpu_per_unit", cpu_per_unit) if memory_per_unit is not None: @@ -2556,7 +2792,9 @@ def _configure( _setter: Callable[[Any, Any], None], key: pulumi.Input[str], value: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("key", key) _setter("value", value) @@ -2603,7 +2841,11 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], api_server: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'apiServer' in kwargs: + api_server = kwargs['apiServer'] + _setter("api_server", api_server) @property @@ -2646,7 +2888,11 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], deployment_id: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'deploymentId' in kwargs: + deployment_id = kwargs['deploymentId'] + _setter("deployment_id", deployment_id) @property @@ -2717,7 +2963,25 @@ def _configure( autoscale_down: Optional[pulumi.Input['ElastigroupIntegrationNomadAutoscaleDownArgs']] = None, autoscale_headroom: Optional[pulumi.Input['ElastigroupIntegrationNomadAutoscaleHeadroomArgs']] = None, autoscale_is_enabled: Optional[pulumi.Input[bool]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'masterHost' in kwargs: + master_host = kwargs['masterHost'] + if 'masterPort' in kwargs: + master_port = kwargs['masterPort'] + if 'aclToken' in kwargs: + acl_token = kwargs['aclToken'] + if 'autoscaleConstraints' in kwargs: + autoscale_constraints = kwargs['autoscaleConstraints'] + if 'autoscaleCooldown' in kwargs: + autoscale_cooldown = kwargs['autoscaleCooldown'] + if 'autoscaleDown' in kwargs: + autoscale_down = kwargs['autoscaleDown'] + if 'autoscaleHeadroom' in kwargs: + autoscale_headroom = kwargs['autoscaleHeadroom'] + if 'autoscaleIsEnabled' in kwargs: + autoscale_is_enabled = kwargs['autoscaleIsEnabled'] + _setter("master_host", master_host) _setter("master_port", master_port) if acl_token is not None: @@ -2854,7 +3118,9 @@ def _configure( _setter: Callable[[Any, Any], None], key: pulumi.Input[str], value: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("key", key) _setter("value", value) @@ -2895,7 +3161,11 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], evaluation_periods: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'evaluationPeriods' in kwargs: + evaluation_periods = kwargs['evaluationPeriods'] + if evaluation_periods is not None: _setter("evaluation_periods", evaluation_periods) @@ -2935,7 +3205,15 @@ def _configure( cpu_per_unit: Optional[pulumi.Input[int]] = None, memory_per_unit: Optional[pulumi.Input[int]] = None, num_of_units: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'cpuPerUnit' in kwargs: + cpu_per_unit = kwargs['cpuPerUnit'] + if 'memoryPerUnit' in kwargs: + memory_per_unit = kwargs['memoryPerUnit'] + if 'numOfUnits' in kwargs: + num_of_units = kwargs['numOfUnits'] + if cpu_per_unit is not None: _setter("cpu_per_unit", cpu_per_unit) if memory_per_unit is not None: @@ -3012,7 +3290,15 @@ def _configure( master_host: pulumi.Input[str], secret_key: pulumi.Input[str], version: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'accessKey' in kwargs: + access_key = kwargs['accessKey'] + if 'masterHost' in kwargs: + master_host = kwargs['masterHost'] + if 'secretKey' in kwargs: + secret_key = kwargs['secretKey'] + _setter("access_key", access_key) _setter("master_host", master_host) _setter("secret_key", secret_key) @@ -3088,7 +3374,9 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], domains: pulumi.Input[Sequence[pulumi.Input['ElastigroupIntegrationRoute53DomainArgs']]], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("domains", domains) @property @@ -3131,7 +3419,17 @@ def _configure( record_sets: pulumi.Input[Sequence[pulumi.Input['ElastigroupIntegrationRoute53DomainRecordSetArgs']]], record_set_type: Optional[pulumi.Input[str]] = None, spotinst_acct_id: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'hostedZoneId' in kwargs: + hosted_zone_id = kwargs['hostedZoneId'] + if 'recordSets' in kwargs: + record_sets = kwargs['recordSets'] + if 'recordSetType' in kwargs: + record_set_type = kwargs['recordSetType'] + if 'spotinstAcctId' in kwargs: + spotinst_acct_id = kwargs['spotinstAcctId'] + _setter("hosted_zone_id", hosted_zone_id) _setter("record_sets", record_sets) if record_set_type is not None: @@ -3217,7 +3515,13 @@ def _configure( name: pulumi.Input[str], use_public_dns: Optional[pulumi.Input[bool]] = None, use_public_ip: Optional[pulumi.Input[bool]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'usePublicDns' in kwargs: + use_public_dns = kwargs['usePublicDns'] + if 'usePublicIp' in kwargs: + use_public_ip = kwargs['usePublicIp'] + _setter("name", name) if use_public_dns is not None: _setter("use_public_dns", use_public_dns) @@ -3294,7 +3598,21 @@ def _configure( weight_strategy: pulumi.Input[str], default_static_target_group: Optional[pulumi.Input['ElastigroupItfDefaultStaticTargetGroupArgs']] = None, migration_healthiness_threshold: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'fixedTargetGroups' in kwargs: + fixed_target_groups = kwargs['fixedTargetGroups'] + if 'loadBalancers' in kwargs: + load_balancers = kwargs['loadBalancers'] + if 'targetGroupConfigs' in kwargs: + target_group_configs = kwargs['targetGroupConfigs'] + if 'weightStrategy' in kwargs: + weight_strategy = kwargs['weightStrategy'] + if 'defaultStaticTargetGroup' in kwargs: + default_static_target_group = kwargs['defaultStaticTargetGroup'] + if 'migrationHealthinessThreshold' in kwargs: + migration_healthiness_threshold = kwargs['migrationHealthinessThreshold'] + _setter("fixed_target_groups", fixed_target_groups) _setter("load_balancers", load_balancers) _setter("target_group_configs", target_group_configs) @@ -3374,7 +3692,9 @@ def _configure( _setter: Callable[[Any, Any], None], arn: pulumi.Input[str], percentage: pulumi.Input[float], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("arn", arn) _setter("percentage", percentage) @@ -3412,7 +3732,13 @@ def _configure( _setter: Callable[[Any, Any], None], listener_rules: pulumi.Input[Sequence[pulumi.Input['ElastigroupItfLoadBalancerListenerRuleArgs']]], load_balancer_arn: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'listenerRules' in kwargs: + listener_rules = kwargs['listenerRules'] + if 'loadBalancerArn' in kwargs: + load_balancer_arn = kwargs['loadBalancerArn'] + _setter("listener_rules", listener_rules) _setter("load_balancer_arn", load_balancer_arn) @@ -3450,7 +3776,13 @@ def _configure( _setter: Callable[[Any, Any], None], rule_arn: pulumi.Input[str], static_target_group: Optional[pulumi.Input['ElastigroupItfLoadBalancerListenerRuleStaticTargetGroupArgs']] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'ruleArn' in kwargs: + rule_arn = kwargs['ruleArn'] + if 'staticTargetGroup' in kwargs: + static_target_group = kwargs['staticTargetGroup'] + _setter("rule_arn", rule_arn) if static_target_group is not None: _setter("static_target_group", static_target_group) @@ -3489,7 +3821,9 @@ def _configure( _setter: Callable[[Any, Any], None], arn: pulumi.Input[str], percentage: pulumi.Input[float], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("arn", arn) _setter("percentage", percentage) @@ -3563,7 +3897,27 @@ def _configure( protocol_version: Optional[pulumi.Input[str]] = None, tags: Optional[pulumi.Input[Sequence[pulumi.Input['ElastigroupItfTargetGroupConfigTagArgs']]]] = None, unhealthy_threshold_count: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'healthCheckPath' in kwargs: + health_check_path = kwargs['healthCheckPath'] + if 'vpcId' in kwargs: + vpc_id = kwargs['vpcId'] + if 'healthCheckIntervalSeconds' in kwargs: + health_check_interval_seconds = kwargs['healthCheckIntervalSeconds'] + if 'healthCheckPort' in kwargs: + health_check_port = kwargs['healthCheckPort'] + if 'healthCheckProtocol' in kwargs: + health_check_protocol = kwargs['healthCheckProtocol'] + if 'healthCheckTimeoutSeconds' in kwargs: + health_check_timeout_seconds = kwargs['healthCheckTimeoutSeconds'] + if 'healthyThresholdCount' in kwargs: + healthy_threshold_count = kwargs['healthyThresholdCount'] + if 'protocolVersion' in kwargs: + protocol_version = kwargs['protocolVersion'] + if 'unhealthyThresholdCount' in kwargs: + unhealthy_threshold_count = kwargs['unhealthyThresholdCount'] + _setter("health_check_path", health_check_path) _setter("port", port) _setter("protocol", protocol) @@ -3723,7 +4077,13 @@ def _configure( _setter: Callable[[Any, Any], None], grpc_code: Optional[pulumi.Input[str]] = None, http_code: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'grpcCode' in kwargs: + grpc_code = kwargs['grpcCode'] + if 'httpCode' in kwargs: + http_code = kwargs['httpCode'] + if grpc_code is not None: _setter("grpc_code", grpc_code) if http_code is not None: @@ -3763,7 +4123,13 @@ def _configure( _setter: Callable[[Any, Any], None], tag_key: pulumi.Input[str], tag_value: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'tagKey' in kwargs: + tag_key = kwargs['tagKey'] + if 'tagValue' in kwargs: + tag_value = kwargs['tagValue'] + _setter("tag_key", tag_key) if tag_value is not None: _setter("tag_value", tag_value) @@ -3810,7 +4176,15 @@ def _configure( http_tokens: pulumi.Input[str], http_put_response_hop_limit: Optional[pulumi.Input[int]] = None, instance_metadata_tags: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'httpTokens' in kwargs: + http_tokens = kwargs['httpTokens'] + if 'httpPutResponseHopLimit' in kwargs: + http_put_response_hop_limit = kwargs['httpPutResponseHopLimit'] + if 'instanceMetadataTags' in kwargs: + instance_metadata_tags = kwargs['instanceMetadataTags'] + _setter("http_tokens", http_tokens) if http_put_response_hop_limit is not None: _setter("http_put_response_hop_limit", http_put_response_hop_limit) @@ -3879,7 +4253,13 @@ def _configure( _setter: Callable[[Any, Any], None], balancer_id: pulumi.Input[str], target_set_id: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'balancerId' in kwargs: + balancer_id = kwargs['balancerId'] + if 'targetSetId' in kwargs: + target_set_id = kwargs['targetSetId'] + _setter("balancer_id", balancer_id) _setter("target_set_id", target_set_id) @@ -3933,7 +4313,9 @@ def _configure( _setter: Callable[[Any, Any], None], expressions: Optional[pulumi.Input[Sequence[pulumi.Input['ElastigroupMultipleMetricsExpressionArgs']]]] = None, metrics: Optional[pulumi.Input[Sequence[pulumi.Input['ElastigroupMultipleMetricsMetricArgs']]]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if expressions is not None: _setter("expressions", expressions) if metrics is not None: @@ -3983,7 +4365,9 @@ def _configure( _setter: Callable[[Any, Any], None], expression: pulumi.Input[str], name: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("expression", expression) _setter("name", name) @@ -4051,7 +4435,13 @@ def _configure( extended_statistic: Optional[pulumi.Input[str]] = None, statistic: Optional[pulumi.Input[str]] = None, unit: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'metricName' in kwargs: + metric_name = kwargs['metricName'] + if 'extendedStatistic' in kwargs: + extended_statistic = kwargs['extendedStatistic'] + _setter("metric_name", metric_name) _setter("name", name) _setter("namespace", namespace) @@ -4168,7 +4558,9 @@ def _configure( _setter: Callable[[Any, Any], None], name: pulumi.Input[str], value: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("name", name) if value is not None: _setter("value", value) @@ -4247,7 +4639,23 @@ def _configure( network_interface_id: Optional[pulumi.Input[str]] = None, private_ip_address: Optional[pulumi.Input[str]] = None, secondary_private_ip_address_count: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'deviceIndex' in kwargs: + device_index = kwargs['deviceIndex'] + if 'associateIpv6Address' in kwargs: + associate_ipv6_address = kwargs['associateIpv6Address'] + if 'associatePublicIpAddress' in kwargs: + associate_public_ip_address = kwargs['associatePublicIpAddress'] + if 'deleteOnTermination' in kwargs: + delete_on_termination = kwargs['deleteOnTermination'] + if 'networkInterfaceId' in kwargs: + network_interface_id = kwargs['networkInterfaceId'] + if 'privateIpAddress' in kwargs: + private_ip_address = kwargs['privateIpAddress'] + if 'secondaryPrivateIpAddressCount' in kwargs: + secondary_private_ip_address_count = kwargs['secondaryPrivateIpAddressCount'] + _setter("device_index", device_index) if associate_ipv6_address is not None: _setter("associate_ipv6_address", associate_ipv6_address) @@ -4414,7 +4822,27 @@ def _configure( excluded_instance_types: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, required_gpu_maximum: Optional[pulumi.Input[int]] = None, required_gpu_minimum: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'requiredMemoryMaximum' in kwargs: + required_memory_maximum = kwargs['requiredMemoryMaximum'] + if 'requiredMemoryMinimum' in kwargs: + required_memory_minimum = kwargs['requiredMemoryMinimum'] + if 'requiredVcpuMaximum' in kwargs: + required_vcpu_maximum = kwargs['requiredVcpuMaximum'] + if 'requiredVcpuMinimum' in kwargs: + required_vcpu_minimum = kwargs['requiredVcpuMinimum'] + if 'excludedInstanceFamilies' in kwargs: + excluded_instance_families = kwargs['excludedInstanceFamilies'] + if 'excludedInstanceGenerations' in kwargs: + excluded_instance_generations = kwargs['excludedInstanceGenerations'] + if 'excludedInstanceTypes' in kwargs: + excluded_instance_types = kwargs['excludedInstanceTypes'] + if 'requiredGpuMaximum' in kwargs: + required_gpu_maximum = kwargs['requiredGpuMaximum'] + if 'requiredGpuMinimum' in kwargs: + required_gpu_minimum = kwargs['requiredGpuMinimum'] + _setter("required_memory_maximum", required_memory_maximum) _setter("required_memory_minimum", required_memory_minimum) _setter("required_vcpu_maximum", required_vcpu_maximum) @@ -4566,7 +4994,17 @@ def _configure( should_tag_enis: Optional[pulumi.Input[bool]] = None, should_tag_snapshots: Optional[pulumi.Input[bool]] = None, should_tag_volumes: Optional[pulumi.Input[bool]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'shouldTagAmis' in kwargs: + should_tag_amis = kwargs['shouldTagAmis'] + if 'shouldTagEnis' in kwargs: + should_tag_enis = kwargs['shouldTagEnis'] + if 'shouldTagSnapshots' in kwargs: + should_tag_snapshots = kwargs['shouldTagSnapshots'] + if 'shouldTagVolumes' in kwargs: + should_tag_volumes = kwargs['shouldTagVolumes'] + if should_tag_amis is not None: _setter("should_tag_amis", should_tag_amis) if should_tag_enis is not None: @@ -4644,7 +5082,13 @@ def _configure( _setter: Callable[[Any, Any], None], perform_at: pulumi.Input[str], time_windows: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'performAt' in kwargs: + perform_at = kwargs['performAt'] + if 'timeWindows' in kwargs: + time_windows = kwargs['timeWindows'] + _setter("perform_at", perform_at) if time_windows is not None: _setter("time_windows", time_windows) @@ -4775,7 +5219,25 @@ def _configure( target: Optional[pulumi.Input[str]] = None, threshold: Optional[pulumi.Input[float]] = None, unit: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'metricName' in kwargs: + metric_name = kwargs['metricName'] + if 'policyName' in kwargs: + policy_name = kwargs['policyName'] + if 'actionType' in kwargs: + action_type = kwargs['actionType'] + if 'evaluationPeriods' in kwargs: + evaluation_periods = kwargs['evaluationPeriods'] + if 'isEnabled' in kwargs: + is_enabled = kwargs['isEnabled'] + if 'maxTargetCapacity' in kwargs: + max_target_capacity = kwargs['maxTargetCapacity'] + if 'minTargetCapacity' in kwargs: + min_target_capacity = kwargs['minTargetCapacity'] + if 'stepAdjustments' in kwargs: + step_adjustments = kwargs['stepAdjustments'] + _setter("metric_name", metric_name) _setter("namespace", namespace) _setter("policy_name", policy_name) @@ -5092,7 +5554,9 @@ def _configure( _setter: Callable[[Any, Any], None], name: pulumi.Input[str], value: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("name", name) if value is not None: _setter("value", value) @@ -5148,7 +5612,9 @@ def _configure( _setter: Callable[[Any, Any], None], action: pulumi.Input['ElastigroupScalingDownPolicyStepAdjustmentActionArgs'], threshold: pulumi.Input[int], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("action", action) _setter("threshold", threshold) @@ -5223,7 +5689,13 @@ def _configure( min_target_capacity: Optional[pulumi.Input[str]] = None, minimum: Optional[pulumi.Input[str]] = None, target: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'maxTargetCapacity' in kwargs: + max_target_capacity = kwargs['maxTargetCapacity'] + if 'minTargetCapacity' in kwargs: + min_target_capacity = kwargs['minTargetCapacity'] + _setter("type", type) if adjustment is not None: _setter("adjustment", adjustment) @@ -5342,7 +5814,13 @@ def _configure( _setter: Callable[[Any, Any], None], terminate_at_end_of_billing_hour: Optional[pulumi.Input[bool]] = None, termination_policy: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'terminateAtEndOfBillingHour' in kwargs: + terminate_at_end_of_billing_hour = kwargs['terminateAtEndOfBillingHour'] + if 'terminationPolicy' in kwargs: + termination_policy = kwargs['terminationPolicy'] + if terminate_at_end_of_billing_hour is not None: _setter("terminate_at_end_of_billing_hour", terminate_at_end_of_billing_hour) if termination_policy is not None: @@ -5448,7 +5926,19 @@ def _configure( source: Optional[pulumi.Input[str]] = None, statistic: Optional[pulumi.Input[str]] = None, unit: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'metricName' in kwargs: + metric_name = kwargs['metricName'] + if 'policyName' in kwargs: + policy_name = kwargs['policyName'] + if 'evaluationPeriods' in kwargs: + evaluation_periods = kwargs['evaluationPeriods'] + if 'maxCapacityPerScale' in kwargs: + max_capacity_per_scale = kwargs['maxCapacityPerScale'] + if 'predictiveMode' in kwargs: + predictive_mode = kwargs['predictiveMode'] + _setter("metric_name", metric_name) _setter("namespace", namespace) _setter("policy_name", policy_name) @@ -5660,7 +6150,9 @@ def _configure( _setter: Callable[[Any, Any], None], name: pulumi.Input[str], value: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("name", name) if value is not None: _setter("value", value) @@ -5792,7 +6284,25 @@ def _configure( target: Optional[pulumi.Input[str]] = None, threshold: Optional[pulumi.Input[float]] = None, unit: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'metricName' in kwargs: + metric_name = kwargs['metricName'] + if 'policyName' in kwargs: + policy_name = kwargs['policyName'] + if 'actionType' in kwargs: + action_type = kwargs['actionType'] + if 'evaluationPeriods' in kwargs: + evaluation_periods = kwargs['evaluationPeriods'] + if 'isEnabled' in kwargs: + is_enabled = kwargs['isEnabled'] + if 'maxTargetCapacity' in kwargs: + max_target_capacity = kwargs['maxTargetCapacity'] + if 'minTargetCapacity' in kwargs: + min_target_capacity = kwargs['minTargetCapacity'] + if 'stepAdjustments' in kwargs: + step_adjustments = kwargs['stepAdjustments'] + _setter("metric_name", metric_name) _setter("namespace", namespace) _setter("policy_name", policy_name) @@ -6110,7 +6620,9 @@ def _configure( _setter: Callable[[Any, Any], None], name: pulumi.Input[str], value: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("name", name) if value is not None: _setter("value", value) @@ -6166,7 +6678,9 @@ def _configure( _setter: Callable[[Any, Any], None], action: pulumi.Input['ElastigroupScalingUpPolicyStepAdjustmentActionArgs'], threshold: pulumi.Input[int], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("action", action) _setter("threshold", threshold) @@ -6241,7 +6755,13 @@ def _configure( min_target_capacity: Optional[pulumi.Input[str]] = None, minimum: Optional[pulumi.Input[str]] = None, target: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'maxTargetCapacity' in kwargs: + max_target_capacity = kwargs['maxTargetCapacity'] + if 'minTargetCapacity' in kwargs: + min_target_capacity = kwargs['minTargetCapacity'] + _setter("type", type) if adjustment is not None: _setter("adjustment", adjustment) @@ -6418,7 +6938,35 @@ def _configure( scale_target_capacity: Optional[pulumi.Input[str]] = None, start_time: Optional[pulumi.Input[str]] = None, target_capacity: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'taskType' in kwargs: + task_type = kwargs['taskType'] + if 'adjustmentPercentage' in kwargs: + adjustment_percentage = kwargs['adjustmentPercentage'] + if 'batchSizePercentage' in kwargs: + batch_size_percentage = kwargs['batchSizePercentage'] + if 'cronExpression' in kwargs: + cron_expression = kwargs['cronExpression'] + if 'gracePeriod' in kwargs: + grace_period = kwargs['gracePeriod'] + if 'isEnabled' in kwargs: + is_enabled = kwargs['isEnabled'] + if 'maxCapacity' in kwargs: + max_capacity = kwargs['maxCapacity'] + if 'minCapacity' in kwargs: + min_capacity = kwargs['minCapacity'] + if 'scaleMaxCapacity' in kwargs: + scale_max_capacity = kwargs['scaleMaxCapacity'] + if 'scaleMinCapacity' in kwargs: + scale_min_capacity = kwargs['scaleMinCapacity'] + if 'scaleTargetCapacity' in kwargs: + scale_target_capacity = kwargs['scaleTargetCapacity'] + if 'startTime' in kwargs: + start_time = kwargs['startTime'] + if 'targetCapacity' in kwargs: + target_capacity = kwargs['targetCapacity'] + _setter("task_type", task_type) if adjustment is not None: _setter("adjustment", adjustment) @@ -6661,7 +7209,9 @@ def _configure( _setter: Callable[[Any, Any], None], name: pulumi.Input[str], timeout: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("name", name) if timeout is not None: _setter("timeout", timeout) @@ -6730,7 +7280,17 @@ def _configure( should_delete_network_interfaces: Optional[pulumi.Input[bool]] = None, should_delete_snapshots: Optional[pulumi.Input[bool]] = None, should_delete_volumes: Optional[pulumi.Input[bool]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'shouldDeleteImages' in kwargs: + should_delete_images = kwargs['shouldDeleteImages'] + if 'shouldDeleteNetworkInterfaces' in kwargs: + should_delete_network_interfaces = kwargs['shouldDeleteNetworkInterfaces'] + if 'shouldDeleteSnapshots' in kwargs: + should_delete_snapshots = kwargs['shouldDeleteSnapshots'] + if 'shouldDeleteVolumes' in kwargs: + should_delete_volumes = kwargs['shouldDeleteVolumes'] + if should_delete_images is not None: _setter("should_delete_images", should_delete_images) if should_delete_network_interfaces is not None: @@ -6820,7 +7380,11 @@ def _configure( _setter: Callable[[Any, Any], None], stateful_instance_id: pulumi.Input[str], type: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'statefulInstanceId' in kwargs: + stateful_instance_id = kwargs['statefulInstanceId'] + _setter("stateful_instance_id", stateful_instance_id) _setter("type", type) @@ -6873,7 +7437,9 @@ def _configure( _setter: Callable[[Any, Any], None], key: Optional[pulumi.Input[str]] = None, value: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if key is not None: _setter("key", key) if value is not None: @@ -6928,7 +7494,17 @@ def _configure( should_roll: pulumi.Input[bool], auto_apply_tags: Optional[pulumi.Input[bool]] = None, roll_config: Optional[pulumi.Input['ElastigroupUpdatePolicyRollConfigArgs']] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'shouldResumeStateful' in kwargs: + should_resume_stateful = kwargs['shouldResumeStateful'] + if 'shouldRoll' in kwargs: + should_roll = kwargs['shouldRoll'] + if 'autoApplyTags' in kwargs: + auto_apply_tags = kwargs['autoApplyTags'] + if 'rollConfig' in kwargs: + roll_config = kwargs['rollConfig'] + _setter("should_resume_stateful", should_resume_stateful) _setter("should_roll", should_roll) if auto_apply_tags is not None: @@ -7020,7 +7596,19 @@ def _configure( strategy: Optional[pulumi.Input['ElastigroupUpdatePolicyRollConfigStrategyArgs']] = None, wait_for_roll_percentage: Optional[pulumi.Input[float]] = None, wait_for_roll_timeout: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'batchSizePercentage' in kwargs: + batch_size_percentage = kwargs['batchSizePercentage'] + if 'gracePeriod' in kwargs: + grace_period = kwargs['gracePeriod'] + if 'healthCheckType' in kwargs: + health_check_type = kwargs['healthCheckType'] + if 'waitForRollPercentage' in kwargs: + wait_for_roll_percentage = kwargs['waitForRollPercentage'] + if 'waitForRollTimeout' in kwargs: + wait_for_roll_timeout = kwargs['waitForRollTimeout'] + _setter("batch_size_percentage", batch_size_percentage) if grace_period is not None: _setter("grace_period", grace_period) @@ -7133,7 +7721,15 @@ def _configure( batch_min_healthy_percentage: Optional[pulumi.Input[int]] = None, on_failure: Optional[pulumi.Input['ElastigroupUpdatePolicyRollConfigStrategyOnFailureArgs']] = None, should_drain_instances: Optional[pulumi.Input[bool]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'batchMinHealthyPercentage' in kwargs: + batch_min_healthy_percentage = kwargs['batchMinHealthyPercentage'] + if 'onFailure' in kwargs: + on_failure = kwargs['onFailure'] + if 'shouldDrainInstances' in kwargs: + should_drain_instances = kwargs['shouldDrainInstances'] + _setter("action", action) if batch_min_healthy_percentage is not None: _setter("batch_min_healthy_percentage", batch_min_healthy_percentage) @@ -7225,7 +7821,19 @@ def _configure( draining_timeout: Optional[pulumi.Input[int]] = None, should_decrement_target_capacity: Optional[pulumi.Input[bool]] = None, should_handle_all_batches: Optional[pulumi.Input[bool]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'actionType' in kwargs: + action_type = kwargs['actionType'] + if 'batchNum' in kwargs: + batch_num = kwargs['batchNum'] + if 'drainingTimeout' in kwargs: + draining_timeout = kwargs['drainingTimeout'] + if 'shouldDecrementTargetCapacity' in kwargs: + should_decrement_target_capacity = kwargs['shouldDecrementTargetCapacity'] + if 'shouldHandleAllBatches' in kwargs: + should_handle_all_batches = kwargs['shouldHandleAllBatches'] + _setter("action_type", action_type) if batch_num is not None: _setter("batch_num", batch_num) @@ -7313,7 +7921,11 @@ def _configure( _setter: Callable[[Any, Any], None], device_name: pulumi.Input[str], ebs: Optional[pulumi.Input['ManagedInstanceBlockDeviceMappingEbsArgs']] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'deviceName' in kwargs: + device_name = kwargs['deviceName'] + _setter("device_name", device_name) if ebs is not None: _setter("ebs", ebs) @@ -7361,7 +7973,15 @@ def _configure( throughput: Optional[pulumi.Input[int]] = None, volume_size: Optional[pulumi.Input[int]] = None, volume_type: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'deleteOnTermination' in kwargs: + delete_on_termination = kwargs['deleteOnTermination'] + if 'volumeSize' in kwargs: + volume_size = kwargs['volumeSize'] + if 'volumeType' in kwargs: + volume_type = kwargs['volumeType'] + if delete_on_termination is not None: _setter("delete_on_termination", delete_on_termination) if iops is not None: @@ -7446,7 +8066,21 @@ def _configure( should_delete_snapshots: Optional[pulumi.Input[bool]] = None, should_delete_volumes: Optional[pulumi.Input[bool]] = None, should_terminate_instance: Optional[pulumi.Input[bool]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'amiBackupShouldDeleteImages' in kwargs: + ami_backup_should_delete_images = kwargs['amiBackupShouldDeleteImages'] + if 'deallocationConfigShouldDeleteImages' in kwargs: + deallocation_config_should_delete_images = kwargs['deallocationConfigShouldDeleteImages'] + if 'shouldDeleteNetworkInterfaces' in kwargs: + should_delete_network_interfaces = kwargs['shouldDeleteNetworkInterfaces'] + if 'shouldDeleteSnapshots' in kwargs: + should_delete_snapshots = kwargs['shouldDeleteSnapshots'] + if 'shouldDeleteVolumes' in kwargs: + should_delete_volumes = kwargs['shouldDeleteVolumes'] + if 'shouldTerminateInstance' in kwargs: + should_terminate_instance = kwargs['shouldTerminateInstance'] + if ami_backup_should_delete_images is not None: _setter("ami_backup_should_delete_images", ami_backup_should_delete_images) if deallocation_config_should_delete_images is not None: @@ -7527,7 +8161,9 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], domains: pulumi.Input[Sequence[pulumi.Input['ManagedInstanceIntegrationRoute53DomainArgs']]], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("domains", domains) @property @@ -7561,7 +8197,17 @@ def _configure( record_sets: pulumi.Input[Sequence[pulumi.Input['ManagedInstanceIntegrationRoute53DomainRecordSetArgs']]], record_set_type: Optional[pulumi.Input[str]] = None, spotinst_acct_id: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'hostedZoneId' in kwargs: + hosted_zone_id = kwargs['hostedZoneId'] + if 'recordSets' in kwargs: + record_sets = kwargs['recordSets'] + if 'recordSetType' in kwargs: + record_set_type = kwargs['recordSetType'] + if 'spotinstAcctId' in kwargs: + spotinst_acct_id = kwargs['spotinstAcctId'] + _setter("hosted_zone_id", hosted_zone_id) _setter("record_sets", record_sets) if record_set_type is not None: @@ -7624,7 +8270,13 @@ def _configure( name: pulumi.Input[str], use_public_dns: Optional[pulumi.Input[bool]] = None, use_public_ip: Optional[pulumi.Input[bool]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'usePublicDns' in kwargs: + use_public_dns = kwargs['usePublicDns'] + if 'usePublicIp' in kwargs: + use_public_ip = kwargs['usePublicIp'] + _setter("name", name) if use_public_dns is not None: _setter("use_public_dns", use_public_dns) @@ -7689,7 +8341,17 @@ def _configure( balancer_id: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, target_set_id: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'autoWeight' in kwargs: + auto_weight = kwargs['autoWeight'] + if 'azAwareness' in kwargs: + az_awareness = kwargs['azAwareness'] + if 'balancerId' in kwargs: + balancer_id = kwargs['balancerId'] + if 'targetSetId' in kwargs: + target_set_id = kwargs['targetSetId'] + _setter("type", type) if arn is not None: _setter("arn", arn) @@ -7780,7 +8442,9 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], type: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("type", type) @property @@ -7811,7 +8475,15 @@ def _configure( device_index: pulumi.Input[str], associate_ipv6_address: Optional[pulumi.Input[bool]] = None, associate_public_ip_address: Optional[pulumi.Input[bool]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'deviceIndex' in kwargs: + device_index = kwargs['deviceIndex'] + if 'associateIpv6Address' in kwargs: + associate_ipv6_address = kwargs['associateIpv6Address'] + if 'associatePublicIpAddress' in kwargs: + associate_public_ip_address = kwargs['associatePublicIpAddress'] + _setter("device_index", device_index) if associate_ipv6_address is not None: _setter("associate_ipv6_address", associate_ipv6_address) @@ -7867,7 +8539,17 @@ def _configure( should_tag_enis: Optional[pulumi.Input[bool]] = None, should_tag_snapshots: Optional[pulumi.Input[bool]] = None, should_tag_volumes: Optional[pulumi.Input[bool]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'shouldTagAmis' in kwargs: + should_tag_amis = kwargs['shouldTagAmis'] + if 'shouldTagEnis' in kwargs: + should_tag_enis = kwargs['shouldTagEnis'] + if 'shouldTagSnapshots' in kwargs: + should_tag_snapshots = kwargs['shouldTagSnapshots'] + if 'shouldTagVolumes' in kwargs: + should_tag_volumes = kwargs['shouldTagVolumes'] + if should_tag_amis is not None: _setter("should_tag_amis", should_tag_amis) if should_tag_enis is not None: @@ -7926,7 +8608,11 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], perform_at: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'performAt' in kwargs: + perform_at = kwargs['performAt'] + _setter("perform_at", perform_at) @property @@ -7963,7 +8649,17 @@ def _configure( frequency: Optional[pulumi.Input[str]] = None, is_enabled: Optional[pulumi.Input[bool]] = None, start_time: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'taskType' in kwargs: + task_type = kwargs['taskType'] + if 'cronExpression' in kwargs: + cron_expression = kwargs['cronExpression'] + if 'isEnabled' in kwargs: + is_enabled = kwargs['isEnabled'] + if 'startTime' in kwargs: + start_time = kwargs['startTime'] + _setter("task_type", task_type) if cron_expression is not None: _setter("cron_expression", cron_expression) @@ -8035,7 +8731,9 @@ def _configure( _setter: Callable[[Any, Any], None], key: Optional[pulumi.Input[str]] = None, value: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if key is not None: _setter("key", key) if value is not None: @@ -8083,7 +8781,9 @@ def _configure( name: pulumi.Input[str], args: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, version: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("name", name) if args is not None: _setter("args", args) @@ -8146,7 +8846,9 @@ def _configure( _setter: Callable[[Any, Any], None], bucket: pulumi.Input[str], key: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("bucket", bucket) _setter("key", key) @@ -8194,7 +8896,9 @@ def _configure( _setter: Callable[[Any, Any], None], bucket: pulumi.Input[str], key: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("bucket", bucket) _setter("key", key) @@ -8250,7 +8954,15 @@ def _configure( volume_type: pulumi.Input[str], iops: Optional[pulumi.Input[int]] = None, volumes_per_instance: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'sizeInGb' in kwargs: + size_in_gb = kwargs['sizeInGb'] + if 'volumeType' in kwargs: + volume_type = kwargs['volumeType'] + if 'volumesPerInstance' in kwargs: + volumes_per_instance = kwargs['volumesPerInstance'] + _setter("size_in_gb", size_in_gb) _setter("volume_type", volume_type) if iops is not None: @@ -8390,7 +9102,21 @@ def _configure( period: Optional[pulumi.Input[int]] = None, statistic: Optional[pulumi.Input[str]] = None, target: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'metricName' in kwargs: + metric_name = kwargs['metricName'] + if 'policyName' in kwargs: + policy_name = kwargs['policyName'] + if 'actionType' in kwargs: + action_type = kwargs['actionType'] + if 'evaluationPeriods' in kwargs: + evaluation_periods = kwargs['evaluationPeriods'] + if 'maxTargetCapacity' in kwargs: + max_target_capacity = kwargs['maxTargetCapacity'] + if 'minTargetCapacity' in kwargs: + min_target_capacity = kwargs['minTargetCapacity'] + _setter("metric_name", metric_name) _setter("namespace", namespace) _setter("policy_name", policy_name) @@ -8723,7 +9449,21 @@ def _configure( period: Optional[pulumi.Input[int]] = None, statistic: Optional[pulumi.Input[str]] = None, target: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'metricName' in kwargs: + metric_name = kwargs['metricName'] + if 'policyName' in kwargs: + policy_name = kwargs['policyName'] + if 'actionType' in kwargs: + action_type = kwargs['actionType'] + if 'evaluationPeriods' in kwargs: + evaluation_periods = kwargs['evaluationPeriods'] + if 'maxTargetCapacity' in kwargs: + max_target_capacity = kwargs['maxTargetCapacity'] + if 'minTargetCapacity' in kwargs: + min_target_capacity = kwargs['minTargetCapacity'] + _setter("metric_name", metric_name) _setter("namespace", namespace) _setter("policy_name", policy_name) @@ -8992,7 +9732,13 @@ def _configure( _setter: Callable[[Any, Any], None], instance_type: pulumi.Input[str], weighted_capacity: pulumi.Input[int], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'instanceType' in kwargs: + instance_type = kwargs['instanceType'] + if 'weightedCapacity' in kwargs: + weighted_capacity = kwargs['weightedCapacity'] + _setter("instance_type", instance_type) _setter("weighted_capacity", weighted_capacity) @@ -9048,7 +9794,15 @@ def _configure( volume_type: pulumi.Input[str], iops: Optional[pulumi.Input[int]] = None, volumes_per_instance: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'sizeInGb' in kwargs: + size_in_gb = kwargs['sizeInGb'] + if 'volumeType' in kwargs: + volume_type = kwargs['volumeType'] + if 'volumesPerInstance' in kwargs: + volumes_per_instance = kwargs['volumesPerInstance'] + _setter("size_in_gb", size_in_gb) _setter("volume_type", volume_type) if iops is not None: @@ -9124,7 +9878,11 @@ def _configure( _setter: Callable[[Any, Any], None], timeout: pulumi.Input[int], timeout_action: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'timeoutAction' in kwargs: + timeout_action = kwargs['timeoutAction'] + _setter("timeout", timeout) _setter("timeout_action", timeout_action) @@ -9192,7 +9950,21 @@ def _configure( is_enabled: Optional[pulumi.Input[bool]] = None, max_capacity: Optional[pulumi.Input[str]] = None, min_capacity: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'instanceGroupType' in kwargs: + instance_group_type = kwargs['instanceGroupType'] + if 'taskType' in kwargs: + task_type = kwargs['taskType'] + if 'desiredCapacity' in kwargs: + desired_capacity = kwargs['desiredCapacity'] + if 'isEnabled' in kwargs: + is_enabled = kwargs['isEnabled'] + if 'maxCapacity' in kwargs: + max_capacity = kwargs['maxCapacity'] + if 'minCapacity' in kwargs: + min_capacity = kwargs['minCapacity'] + _setter("cron", cron) _setter("instance_group_type", instance_group_type) _setter("task_type", task_type) @@ -9309,7 +10081,9 @@ def _configure( _setter: Callable[[Any, Any], None], bucket: pulumi.Input[str], key: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("bucket", bucket) _setter("key", key) @@ -9357,7 +10131,9 @@ def _configure( _setter: Callable[[Any, Any], None], key: pulumi.Input[str], value: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("key", key) _setter("value", value) @@ -9413,7 +10189,15 @@ def _configure( volume_type: pulumi.Input[str], iops: Optional[pulumi.Input[int]] = None, volumes_per_instance: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'sizeInGb' in kwargs: + size_in_gb = kwargs['sizeInGb'] + if 'volumeType' in kwargs: + volume_type = kwargs['volumeType'] + if 'volumesPerInstance' in kwargs: + volumes_per_instance = kwargs['volumesPerInstance'] + _setter("size_in_gb", size_in_gb) _setter("volume_type", volume_type) if iops is not None: @@ -9553,7 +10337,21 @@ def _configure( period: Optional[pulumi.Input[int]] = None, statistic: Optional[pulumi.Input[str]] = None, target: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'metricName' in kwargs: + metric_name = kwargs['metricName'] + if 'policyName' in kwargs: + policy_name = kwargs['policyName'] + if 'actionType' in kwargs: + action_type = kwargs['actionType'] + if 'evaluationPeriods' in kwargs: + evaluation_periods = kwargs['evaluationPeriods'] + if 'maxTargetCapacity' in kwargs: + max_target_capacity = kwargs['maxTargetCapacity'] + if 'minTargetCapacity' in kwargs: + min_target_capacity = kwargs['minTargetCapacity'] + _setter("metric_name", metric_name) _setter("namespace", namespace) _setter("policy_name", policy_name) @@ -9886,7 +10684,21 @@ def _configure( period: Optional[pulumi.Input[int]] = None, statistic: Optional[pulumi.Input[str]] = None, target: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'metricName' in kwargs: + metric_name = kwargs['metricName'] + if 'policyName' in kwargs: + policy_name = kwargs['policyName'] + if 'actionType' in kwargs: + action_type = kwargs['actionType'] + if 'evaluationPeriods' in kwargs: + evaluation_periods = kwargs['evaluationPeriods'] + if 'maxTargetCapacity' in kwargs: + max_target_capacity = kwargs['maxTargetCapacity'] + if 'minTargetCapacity' in kwargs: + min_target_capacity = kwargs['minTargetCapacity'] + _setter("metric_name", metric_name) _setter("namespace", namespace) _setter("policy_name", policy_name) @@ -10148,7 +10960,9 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], statements: pulumi.Input[Sequence[pulumi.Input['MrScalarTerminationPolicyStatementArgs']]], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("statements", statements) @property @@ -10204,7 +11018,13 @@ def _configure( period: Optional[pulumi.Input[int]] = None, statistic: Optional[pulumi.Input[str]] = None, unit: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'metricName' in kwargs: + metric_name = kwargs['metricName'] + if 'evaluationPeriods' in kwargs: + evaluation_periods = kwargs['evaluationPeriods'] + _setter("metric_name", metric_name) _setter("namespace", namespace) _setter("threshold", threshold) @@ -10352,7 +11172,27 @@ def _configure( enable_automatic_and_manual_headroom: Optional[pulumi.Input[bool]] = None, extended_resource_definitions: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, resource_limits: Optional[pulumi.Input['OceanAutoscalerResourceLimitsArgs']] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'autoHeadroomPercentage' in kwargs: + auto_headroom_percentage = kwargs['autoHeadroomPercentage'] + if 'autoscaleCooldown' in kwargs: + autoscale_cooldown = kwargs['autoscaleCooldown'] + if 'autoscaleDown' in kwargs: + autoscale_down = kwargs['autoscaleDown'] + if 'autoscaleHeadroom' in kwargs: + autoscale_headroom = kwargs['autoscaleHeadroom'] + if 'autoscaleIsAutoConfig' in kwargs: + autoscale_is_auto_config = kwargs['autoscaleIsAutoConfig'] + if 'autoscaleIsEnabled' in kwargs: + autoscale_is_enabled = kwargs['autoscaleIsEnabled'] + if 'enableAutomaticAndManualHeadroom' in kwargs: + enable_automatic_and_manual_headroom = kwargs['enableAutomaticAndManualHeadroom'] + if 'extendedResourceDefinitions' in kwargs: + extended_resource_definitions = kwargs['extendedResourceDefinitions'] + if 'resourceLimits' in kwargs: + resource_limits = kwargs['resourceLimits'] + if auto_headroom_percentage is not None: _setter("auto_headroom_percentage", auto_headroom_percentage) if autoscale_cooldown is not None: @@ -10469,7 +11309,13 @@ def _configure( _setter: Callable[[Any, Any], None], evaluation_periods: Optional[pulumi.Input[int]] = None, max_scale_down_percentage: Optional[pulumi.Input[float]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'evaluationPeriods' in kwargs: + evaluation_periods = kwargs['evaluationPeriods'] + if 'maxScaleDownPercentage' in kwargs: + max_scale_down_percentage = kwargs['maxScaleDownPercentage'] + if evaluation_periods is not None: _setter("evaluation_periods", evaluation_periods) if max_scale_down_percentage is not None: @@ -10515,7 +11361,17 @@ def _configure( gpu_per_unit: Optional[pulumi.Input[int]] = None, memory_per_unit: Optional[pulumi.Input[int]] = None, num_of_units: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'cpuPerUnit' in kwargs: + cpu_per_unit = kwargs['cpuPerUnit'] + if 'gpuPerUnit' in kwargs: + gpu_per_unit = kwargs['gpuPerUnit'] + if 'memoryPerUnit' in kwargs: + memory_per_unit = kwargs['memoryPerUnit'] + if 'numOfUnits' in kwargs: + num_of_units = kwargs['numOfUnits'] + if cpu_per_unit is not None: _setter("cpu_per_unit", cpu_per_unit) if gpu_per_unit is not None: @@ -10581,7 +11437,13 @@ def _configure( _setter: Callable[[Any, Any], None], max_memory_gib: Optional[pulumi.Input[int]] = None, max_vcpu: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'maxMemoryGib' in kwargs: + max_memory_gib = kwargs['maxMemoryGib'] + if 'maxVcpu' in kwargs: + max_vcpu = kwargs['maxVcpu'] + if max_memory_gib is not None: _setter("max_memory_gib", max_memory_gib) if max_vcpu is not None: @@ -10631,7 +11493,11 @@ def _configure( _setter: Callable[[Any, Any], None], device_name: Optional[pulumi.Input[str]] = None, ebs: Optional[pulumi.Input['OceanBlockDeviceMappingEbsArgs']] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'deviceName' in kwargs: + device_name = kwargs['deviceName'] + if device_name is not None: _setter("device_name", device_name) if ebs is not None: @@ -10713,7 +11579,23 @@ def _configure( throughput: Optional[pulumi.Input[int]] = None, volume_size: Optional[pulumi.Input[int]] = None, volume_type: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'deleteOnTermination' in kwargs: + delete_on_termination = kwargs['deleteOnTermination'] + if 'dynamicIops' in kwargs: + dynamic_iops = kwargs['dynamicIops'] + if 'dynamicVolumeSize' in kwargs: + dynamic_volume_size = kwargs['dynamicVolumeSize'] + if 'kmsKeyId' in kwargs: + kms_key_id = kwargs['kmsKeyId'] + if 'snapshotId' in kwargs: + snapshot_id = kwargs['snapshotId'] + if 'volumeSize' in kwargs: + volume_size = kwargs['volumeSize'] + if 'volumeType' in kwargs: + volume_type = kwargs['volumeType'] + if delete_on_termination is not None: _setter("delete_on_termination", delete_on_termination) if dynamic_iops is not None: @@ -10878,7 +11760,13 @@ def _configure( base_size: pulumi.Input[int], resource: pulumi.Input[str], size_per_resource_unit: pulumi.Input[int], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'baseSize' in kwargs: + base_size = kwargs['baseSize'] + if 'sizePerResourceUnit' in kwargs: + size_per_resource_unit = kwargs['sizePerResourceUnit'] + _setter("base_size", base_size) _setter("resource", resource) _setter("size_per_resource_unit", size_per_resource_unit) @@ -10939,7 +11827,13 @@ def _configure( base_size: pulumi.Input[int], resource: pulumi.Input[str], size_per_resource_unit: pulumi.Input[int], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'baseSize' in kwargs: + base_size = kwargs['baseSize'] + if 'sizePerResourceUnit' in kwargs: + size_per_resource_unit = kwargs['sizePerResourceUnit'] + _setter("base_size", base_size) _setter("resource", resource) _setter("size_per_resource_unit", size_per_resource_unit) @@ -10993,7 +11887,11 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], availability_vs_cost: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'availabilityVsCost' in kwargs: + availability_vs_cost = kwargs['availabilityVsCost'] + if availability_vs_cost is not None: _setter("availability_vs_cost", availability_vs_cost) @@ -11097,7 +11995,41 @@ def _configure( min_vcpu: Optional[pulumi.Input[int]] = None, root_device_types: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, virtualization_types: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'diskTypes' in kwargs: + disk_types = kwargs['diskTypes'] + if 'excludeFamilies' in kwargs: + exclude_families = kwargs['excludeFamilies'] + if 'excludeMetal' in kwargs: + exclude_metal = kwargs['excludeMetal'] + if 'includeFamilies' in kwargs: + include_families = kwargs['includeFamilies'] + if 'isEnaSupported' in kwargs: + is_ena_supported = kwargs['isEnaSupported'] + if 'maxGpu' in kwargs: + max_gpu = kwargs['maxGpu'] + if 'maxMemoryGib' in kwargs: + max_memory_gib = kwargs['maxMemoryGib'] + if 'maxNetworkPerformance' in kwargs: + max_network_performance = kwargs['maxNetworkPerformance'] + if 'maxVcpu' in kwargs: + max_vcpu = kwargs['maxVcpu'] + if 'minEnis' in kwargs: + min_enis = kwargs['minEnis'] + if 'minGpu' in kwargs: + min_gpu = kwargs['minGpu'] + if 'minMemoryGib' in kwargs: + min_memory_gib = kwargs['minMemoryGib'] + if 'minNetworkPerformance' in kwargs: + min_network_performance = kwargs['minNetworkPerformance'] + if 'minVcpu' in kwargs: + min_vcpu = kwargs['minVcpu'] + if 'rootDeviceTypes' in kwargs: + root_device_types = kwargs['rootDeviceTypes'] + if 'virtualizationTypes' in kwargs: + virtualization_types = kwargs['virtualizationTypes'] + if architectures is not None: _setter("architectures", architectures) if categories is not None: @@ -11385,7 +12317,13 @@ def _configure( _setter: Callable[[Any, Any], None], http_tokens: pulumi.Input[str], http_put_response_hop_limit: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'httpTokens' in kwargs: + http_tokens = kwargs['httpTokens'] + if 'httpPutResponseHopLimit' in kwargs: + http_put_response_hop_limit = kwargs['httpPutResponseHopLimit'] + _setter("http_tokens", http_tokens) if http_put_response_hop_limit is not None: _setter("http_put_response_hop_limit", http_put_response_hop_limit) @@ -11430,7 +12368,11 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], max_scale_down_percentage: Optional[pulumi.Input[float]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'maxScaleDownPercentage' in kwargs: + max_scale_down_percentage = kwargs['maxScaleDownPercentage'] + if max_scale_down_percentage is not None: _setter("max_scale_down_percentage", max_scale_down_percentage) @@ -11474,7 +12416,17 @@ def _configure( cpu_per_unit: Optional[pulumi.Input[int]] = None, gpu_per_unit: Optional[pulumi.Input[int]] = None, memory_per_unit: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'numOfUnits' in kwargs: + num_of_units = kwargs['numOfUnits'] + if 'cpuPerUnit' in kwargs: + cpu_per_unit = kwargs['cpuPerUnit'] + if 'gpuPerUnit' in kwargs: + gpu_per_unit = kwargs['gpuPerUnit'] + if 'memoryPerUnit' in kwargs: + memory_per_unit = kwargs['memoryPerUnit'] + _setter("num_of_units", num_of_units) if cpu_per_unit is not None: _setter("cpu_per_unit", cpu_per_unit) @@ -11547,7 +12499,11 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], auto_headroom_percentage: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'autoHeadroomPercentage' in kwargs: + auto_headroom_percentage = kwargs['autoHeadroomPercentage'] + if auto_headroom_percentage is not None: _setter("auto_headroom_percentage", auto_headroom_percentage) @@ -11590,7 +12546,15 @@ def _configure( ebs: Optional[pulumi.Input['OceanLaunchSpecBlockDeviceMappingEbsArgs']] = None, no_device: Optional[pulumi.Input[str]] = None, virtual_name: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'deviceName' in kwargs: + device_name = kwargs['deviceName'] + if 'noDevice' in kwargs: + no_device = kwargs['noDevice'] + if 'virtualName' in kwargs: + virtual_name = kwargs['virtualName'] + if device_name is not None: _setter("device_name", device_name) if ebs is not None: @@ -11693,7 +12657,21 @@ def _configure( throughput: Optional[pulumi.Input[int]] = None, volume_size: Optional[pulumi.Input[int]] = None, volume_type: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'deleteOnTermination' in kwargs: + delete_on_termination = kwargs['deleteOnTermination'] + if 'dynamicVolumeSize' in kwargs: + dynamic_volume_size = kwargs['dynamicVolumeSize'] + if 'kmsKeyId' in kwargs: + kms_key_id = kwargs['kmsKeyId'] + if 'snapshotId' in kwargs: + snapshot_id = kwargs['snapshotId'] + if 'volumeSize' in kwargs: + volume_size = kwargs['volumeSize'] + if 'volumeType' in kwargs: + volume_type = kwargs['volumeType'] + if delete_on_termination is not None: _setter("delete_on_termination", delete_on_termination) if dynamic_volume_size is not None: @@ -11845,7 +12823,13 @@ def _configure( base_size: pulumi.Input[int], resource: pulumi.Input[str], size_per_resource_unit: pulumi.Input[int], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'baseSize' in kwargs: + base_size = kwargs['baseSize'] + if 'sizePerResourceUnit' in kwargs: + size_per_resource_unit = kwargs['sizePerResourceUnit'] + _setter("base_size", base_size) _setter("resource", resource) _setter("size_per_resource_unit", size_per_resource_unit) @@ -11902,7 +12886,11 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], initial_nodes: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'initialNodes' in kwargs: + initial_nodes = kwargs['initialNodes'] + if initial_nodes is not None: _setter("initial_nodes", initial_nodes) @@ -11938,7 +12926,13 @@ def _configure( _setter: Callable[[Any, Any], None], force_delete: pulumi.Input[bool], delete_nodes: Optional[pulumi.Input[bool]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'forceDelete' in kwargs: + force_delete = kwargs['forceDelete'] + if 'deleteNodes' in kwargs: + delete_nodes = kwargs['deleteNodes'] + _setter("force_delete", force_delete) if delete_nodes is not None: _setter("delete_nodes", delete_nodes) @@ -11983,7 +12977,11 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], tag_selector: Optional[pulumi.Input['OceanLaunchSpecElasticIpPoolTagSelectorArgs']] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'tagSelector' in kwargs: + tag_selector = kwargs['tagSelector'] + if tag_selector is not None: _setter("tag_selector", tag_selector) @@ -12019,7 +13017,13 @@ def _configure( _setter: Callable[[Any, Any], None], tag_key: pulumi.Input[str], tag_value: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'tagKey' in kwargs: + tag_key = kwargs['tagKey'] + if 'tagValue' in kwargs: + tag_value = kwargs['tagValue'] + _setter("tag_key", tag_key) if tag_value is not None: _setter("tag_value", tag_value) @@ -12064,7 +13068,11 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], image_id: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'imageId' in kwargs: + image_id = kwargs['imageId'] + if image_id is not None: _setter("image_id", image_id) @@ -12100,7 +13108,13 @@ def _configure( _setter: Callable[[Any, Any], None], http_tokens: pulumi.Input[str], http_put_response_hop_limit: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'httpTokens' in kwargs: + http_tokens = kwargs['httpTokens'] + if 'httpPutResponseHopLimit' in kwargs: + http_put_response_hop_limit = kwargs['httpPutResponseHopLimit'] + _setter("http_tokens", http_tokens) if http_put_response_hop_limit is not None: _setter("http_put_response_hop_limit", http_put_response_hop_limit) @@ -12216,7 +13230,41 @@ def _configure( min_vcpu: Optional[pulumi.Input[int]] = None, root_device_types: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, virtualization_types: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'diskTypes' in kwargs: + disk_types = kwargs['diskTypes'] + if 'excludeFamilies' in kwargs: + exclude_families = kwargs['excludeFamilies'] + if 'excludeMetal' in kwargs: + exclude_metal = kwargs['excludeMetal'] + if 'includeFamilies' in kwargs: + include_families = kwargs['includeFamilies'] + if 'isEnaSupported' in kwargs: + is_ena_supported = kwargs['isEnaSupported'] + if 'maxGpu' in kwargs: + max_gpu = kwargs['maxGpu'] + if 'maxMemoryGib' in kwargs: + max_memory_gib = kwargs['maxMemoryGib'] + if 'maxNetworkPerformance' in kwargs: + max_network_performance = kwargs['maxNetworkPerformance'] + if 'maxVcpu' in kwargs: + max_vcpu = kwargs['maxVcpu'] + if 'minEnis' in kwargs: + min_enis = kwargs['minEnis'] + if 'minGpu' in kwargs: + min_gpu = kwargs['minGpu'] + if 'minMemoryGib' in kwargs: + min_memory_gib = kwargs['minMemoryGib'] + if 'minNetworkPerformance' in kwargs: + min_network_performance = kwargs['minNetworkPerformance'] + if 'minVcpu' in kwargs: + min_vcpu = kwargs['minVcpu'] + if 'rootDeviceTypes' in kwargs: + root_device_types = kwargs['rootDeviceTypes'] + if 'virtualizationTypes' in kwargs: + virtualization_types = kwargs['virtualizationTypes'] + if categories is not None: _setter("categories", categories) if disk_types is not None: @@ -12493,7 +13541,9 @@ def _configure( _setter: Callable[[Any, Any], None], key: pulumi.Input[str], value: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("key", key) _setter("value", value) @@ -12541,7 +13591,13 @@ def _configure( _setter: Callable[[Any, Any], None], max_instance_count: Optional[pulumi.Input[int]] = None, min_instance_count: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'maxInstanceCount' in kwargs: + max_instance_count = kwargs['maxInstanceCount'] + if 'minInstanceCount' in kwargs: + min_instance_count = kwargs['minInstanceCount'] + if max_instance_count is not None: _setter("max_instance_count", max_instance_count) if min_instance_count is not None: @@ -12591,7 +13647,13 @@ def _configure( _setter: Callable[[Any, Any], None], time_windows: pulumi.Input[Sequence[pulumi.Input[str]]], is_enabled: Optional[pulumi.Input[bool]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'timeWindows' in kwargs: + time_windows = kwargs['timeWindows'] + if 'isEnabled' in kwargs: + is_enabled = kwargs['isEnabled'] + _setter("time_windows", time_windows) if is_enabled is not None: _setter("is_enabled", is_enabled) @@ -12648,7 +13710,17 @@ def _configure( is_enabled: pulumi.Input[bool], task_type: pulumi.Input[str], task_headrooms: Optional[pulumi.Input[Sequence[pulumi.Input['OceanLaunchSpecSchedulingTaskTaskHeadroomArgs']]]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'cronExpression' in kwargs: + cron_expression = kwargs['cronExpression'] + if 'isEnabled' in kwargs: + is_enabled = kwargs['isEnabled'] + if 'taskType' in kwargs: + task_type = kwargs['taskType'] + if 'taskHeadrooms' in kwargs: + task_headrooms = kwargs['taskHeadrooms'] + _setter("cron_expression", cron_expression) _setter("is_enabled", is_enabled) _setter("task_type", task_type) @@ -12731,7 +13803,17 @@ def _configure( cpu_per_unit: Optional[pulumi.Input[int]] = None, gpu_per_unit: Optional[pulumi.Input[int]] = None, memory_per_unit: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'numOfUnits' in kwargs: + num_of_units = kwargs['numOfUnits'] + if 'cpuPerUnit' in kwargs: + cpu_per_unit = kwargs['cpuPerUnit'] + if 'gpuPerUnit' in kwargs: + gpu_per_unit = kwargs['gpuPerUnit'] + if 'memoryPerUnit' in kwargs: + memory_per_unit = kwargs['memoryPerUnit'] + _setter("num_of_units", num_of_units) if cpu_per_unit is not None: _setter("cpu_per_unit", cpu_per_unit) @@ -12804,7 +13886,11 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], spot_percentage: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'spotPercentage' in kwargs: + spot_percentage = kwargs['spotPercentage'] + if spot_percentage is not None: _setter("spot_percentage", spot_percentage) @@ -12840,7 +13926,9 @@ def _configure( _setter: Callable[[Any, Any], None], key: pulumi.Input[str], value: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("key", key) _setter("value", value) @@ -12892,7 +13980,9 @@ def _configure( effect: pulumi.Input[str], key: pulumi.Input[str], value: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("effect", effect) _setter("key", key) _setter("value", value) @@ -12949,7 +14039,13 @@ def _configure( _setter: Callable[[Any, Any], None], should_roll: pulumi.Input[bool], roll_config: Optional[pulumi.Input['OceanLaunchSpecUpdatePolicyRollConfigArgs']] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'shouldRoll' in kwargs: + should_roll = kwargs['shouldRoll'] + if 'rollConfig' in kwargs: + roll_config = kwargs['rollConfig'] + _setter("should_roll", should_roll) if roll_config is not None: _setter("roll_config", roll_config) @@ -12985,7 +14081,11 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], batch_size_percentage: pulumi.Input[int], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'batchSizePercentage' in kwargs: + batch_size_percentage = kwargs['batchSizePercentage'] + _setter("batch_size_percentage", batch_size_percentage) @property @@ -13021,7 +14121,9 @@ def _configure( arn: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, type: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if arn is not None: _setter("arn", arn) if name is not None: @@ -13081,7 +14183,9 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], export: Optional[pulumi.Input['OceanLoggingExportArgs']] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if export is not None: _setter("export", export) @@ -13113,7 +14217,9 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], s3s: Optional[pulumi.Input[Sequence[pulumi.Input['OceanLoggingExportS3Args']]]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if s3s is not None: _setter("s3s", s3s) @@ -13145,7 +14251,9 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], id: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("id", id) @property @@ -13176,7 +14284,11 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], should_tag_volumes: Optional[pulumi.Input[bool]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'shouldTagVolumes' in kwargs: + should_tag_volumes = kwargs['shouldTagVolumes'] + if should_tag_volumes is not None: _setter("should_tag_volumes", should_tag_volumes) @@ -13208,7 +14320,11 @@ def _configure( _setter: Callable[[Any, Any], None], shutdown_hours: Optional[pulumi.Input['OceanScheduledTaskShutdownHoursArgs']] = None, tasks: Optional[pulumi.Input[Sequence[pulumi.Input['OceanScheduledTaskTaskArgs']]]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'shutdownHours' in kwargs: + shutdown_hours = kwargs['shutdownHours'] + if shutdown_hours is not None: _setter("shutdown_hours", shutdown_hours) if tasks is not None: @@ -13248,7 +14364,13 @@ def _configure( _setter: Callable[[Any, Any], None], time_windows: pulumi.Input[Sequence[pulumi.Input[str]]], is_enabled: Optional[pulumi.Input[bool]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'timeWindows' in kwargs: + time_windows = kwargs['timeWindows'] + if 'isEnabled' in kwargs: + is_enabled = kwargs['isEnabled'] + _setter("time_windows", time_windows) if is_enabled is not None: _setter("is_enabled", is_enabled) @@ -13290,7 +14412,15 @@ def _configure( cron_expression: pulumi.Input[str], is_enabled: pulumi.Input[bool], task_type: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'cronExpression' in kwargs: + cron_expression = kwargs['cronExpression'] + if 'isEnabled' in kwargs: + is_enabled = kwargs['isEnabled'] + if 'taskType' in kwargs: + task_type = kwargs['taskType'] + _setter("cron_expression", cron_expression) _setter("is_enabled", is_enabled) _setter("task_type", task_type) @@ -13342,7 +14472,9 @@ def _configure( _setter: Callable[[Any, Any], None], key: pulumi.Input[str], value: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("key", key) _setter("value", value) @@ -13392,7 +14524,17 @@ def _configure( auto_apply_tags: Optional[pulumi.Input[bool]] = None, conditioned_roll: Optional[pulumi.Input[bool]] = None, roll_config: Optional[pulumi.Input['OceanUpdatePolicyRollConfigArgs']] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'shouldRoll' in kwargs: + should_roll = kwargs['shouldRoll'] + if 'autoApplyTags' in kwargs: + auto_apply_tags = kwargs['autoApplyTags'] + if 'conditionedRoll' in kwargs: + conditioned_roll = kwargs['conditionedRoll'] + if 'rollConfig' in kwargs: + roll_config = kwargs['rollConfig'] + _setter("should_roll", should_roll) if auto_apply_tags is not None: _setter("auto_apply_tags", auto_apply_tags) @@ -13459,7 +14601,17 @@ def _configure( batch_min_healthy_percentage: Optional[pulumi.Input[int]] = None, launch_spec_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, respect_pdb: Optional[pulumi.Input[bool]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'batchSizePercentage' in kwargs: + batch_size_percentage = kwargs['batchSizePercentage'] + if 'batchMinHealthyPercentage' in kwargs: + batch_min_healthy_percentage = kwargs['batchMinHealthyPercentage'] + if 'launchSpecIds' in kwargs: + launch_spec_ids = kwargs['launchSpecIds'] + if 'respectPdb' in kwargs: + respect_pdb = kwargs['respectPdb'] + _setter("batch_size_percentage", batch_size_percentage) if batch_min_healthy_percentage is not None: _setter("batch_min_healthy_percentage", batch_min_healthy_percentage) @@ -13520,7 +14672,9 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], name: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("name", name) @property diff --git a/sdk/python/pulumi_spotinst/aws/account.py b/sdk/python/pulumi_spotinst/aws/account.py index b9968f5b..75494489 100644 --- a/sdk/python/pulumi_spotinst/aws/account.py +++ b/sdk/python/pulumi_spotinst/aws/account.py @@ -27,7 +27,9 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], name: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if name is not None: _setter("name", name) @@ -60,7 +62,9 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], name: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if name is not None: _setter("name", name) diff --git a/sdk/python/pulumi_spotinst/aws/beanstalk.py b/sdk/python/pulumi_spotinst/aws/beanstalk.py index 36aa730e..07b3f850 100644 --- a/sdk/python/pulumi_spotinst/aws/beanstalk.py +++ b/sdk/python/pulumi_spotinst/aws/beanstalk.py @@ -76,7 +76,27 @@ def _configure( managed_actions: Optional[pulumi.Input['BeanstalkManagedActionsArgs']] = None, name: Optional[pulumi.Input[str]] = None, scheduled_tasks: Optional[pulumi.Input[Sequence[pulumi.Input['BeanstalkScheduledTaskArgs']]]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'desiredCapacity' in kwargs: + desired_capacity = kwargs['desiredCapacity'] + if 'instanceTypesSpots' in kwargs: + instance_types_spots = kwargs['instanceTypesSpots'] + if 'maxSize' in kwargs: + max_size = kwargs['maxSize'] + if 'minSize' in kwargs: + min_size = kwargs['minSize'] + if 'beanstalkEnvironmentId' in kwargs: + beanstalk_environment_id = kwargs['beanstalkEnvironmentId'] + if 'beanstalkEnvironmentName' in kwargs: + beanstalk_environment_name = kwargs['beanstalkEnvironmentName'] + if 'deploymentPreferences' in kwargs: + deployment_preferences = kwargs['deploymentPreferences'] + if 'managedActions' in kwargs: + managed_actions = kwargs['managedActions'] + if 'scheduledTasks' in kwargs: + scheduled_tasks = kwargs['scheduledTasks'] + _setter("desired_capacity", desired_capacity) _setter("instance_types_spots", instance_types_spots) _setter("max_size", max_size) @@ -313,7 +333,27 @@ def _configure( product: Optional[pulumi.Input[str]] = None, region: Optional[pulumi.Input[str]] = None, scheduled_tasks: Optional[pulumi.Input[Sequence[pulumi.Input['BeanstalkScheduledTaskArgs']]]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'beanstalkEnvironmentId' in kwargs: + beanstalk_environment_id = kwargs['beanstalkEnvironmentId'] + if 'beanstalkEnvironmentName' in kwargs: + beanstalk_environment_name = kwargs['beanstalkEnvironmentName'] + if 'deploymentPreferences' in kwargs: + deployment_preferences = kwargs['deploymentPreferences'] + if 'desiredCapacity' in kwargs: + desired_capacity = kwargs['desiredCapacity'] + if 'instanceTypesSpots' in kwargs: + instance_types_spots = kwargs['instanceTypesSpots'] + if 'managedActions' in kwargs: + managed_actions = kwargs['managedActions'] + if 'maxSize' in kwargs: + max_size = kwargs['maxSize'] + if 'minSize' in kwargs: + min_size = kwargs['minSize'] + if 'scheduledTasks' in kwargs: + scheduled_tasks = kwargs['scheduledTasks'] + if beanstalk_environment_id is not None: _setter("beanstalk_environment_id", beanstalk_environment_id) if beanstalk_environment_name is not None: diff --git a/sdk/python/pulumi_spotinst/aws/credentials.py b/sdk/python/pulumi_spotinst/aws/credentials.py index 312abf20..a715e880 100644 --- a/sdk/python/pulumi_spotinst/aws/credentials.py +++ b/sdk/python/pulumi_spotinst/aws/credentials.py @@ -30,7 +30,11 @@ def _configure( _setter: Callable[[Any, Any], None], account_id: pulumi.Input[str], iamrole: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'accountId' in kwargs: + account_id = kwargs['accountId'] + _setter("account_id", account_id) _setter("iamrole", iamrole) @@ -75,7 +79,11 @@ def _configure( _setter: Callable[[Any, Any], None], account_id: Optional[pulumi.Input[str]] = None, iamrole: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'accountId' in kwargs: + account_id = kwargs['accountId'] + if account_id is not None: _setter("account_id", account_id) if iamrole is not None: diff --git a/sdk/python/pulumi_spotinst/aws/elastigroup.py b/sdk/python/pulumi_spotinst/aws/elastigroup.py index 3d48e1a5..99806a91 100644 --- a/sdk/python/pulumi_spotinst/aws/elastigroup.py +++ b/sdk/python/pulumi_spotinst/aws/elastigroup.py @@ -352,7 +352,157 @@ def _configure( utilize_reserved_instances: Optional[pulumi.Input[bool]] = None, wait_for_capacity: Optional[pulumi.Input[int]] = None, wait_for_capacity_timeout: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'fallbackToOndemand' in kwargs: + fallback_to_ondemand = kwargs['fallbackToOndemand'] + if 'securityGroups' in kwargs: + security_groups = kwargs['securityGroups'] + if 'availabilityZones' in kwargs: + availability_zones = kwargs['availabilityZones'] + if 'blockDevicesMode' in kwargs: + block_devices_mode = kwargs['blockDevicesMode'] + if 'capacityUnit' in kwargs: + capacity_unit = kwargs['capacityUnit'] + if 'considerOdPricing' in kwargs: + consider_od_pricing = kwargs['considerOdPricing'] + if 'cpuCredits' in kwargs: + cpu_credits = kwargs['cpuCredits'] + if 'cpuOptions' in kwargs: + cpu_options = kwargs['cpuOptions'] + if 'desiredCapacity' in kwargs: + desired_capacity = kwargs['desiredCapacity'] + if 'drainingTimeout' in kwargs: + draining_timeout = kwargs['drainingTimeout'] + if 'ebsBlockDevices' in kwargs: + ebs_block_devices = kwargs['ebsBlockDevices'] + if 'ebsOptimized' in kwargs: + ebs_optimized = kwargs['ebsOptimized'] + if 'elasticIps' in kwargs: + elastic_ips = kwargs['elasticIps'] + if 'elasticLoadBalancers' in kwargs: + elastic_load_balancers = kwargs['elasticLoadBalancers'] + if 'enableMonitoring' in kwargs: + enable_monitoring = kwargs['enableMonitoring'] + if 'ephemeralBlockDevices' in kwargs: + ephemeral_block_devices = kwargs['ephemeralBlockDevices'] + if 'healthCheckGracePeriod' in kwargs: + health_check_grace_period = kwargs['healthCheckGracePeriod'] + if 'healthCheckType' in kwargs: + health_check_type = kwargs['healthCheckType'] + if 'healthCheckUnhealthyDurationBeforeReplacement' in kwargs: + health_check_unhealthy_duration_before_replacement = kwargs['healthCheckUnhealthyDurationBeforeReplacement'] + if 'iamInstanceProfile' in kwargs: + iam_instance_profile = kwargs['iamInstanceProfile'] + if 'imageId' in kwargs: + image_id = kwargs['imageId'] + if 'immediateOdRecoverThreshold' in kwargs: + immediate_od_recover_threshold = kwargs['immediateOdRecoverThreshold'] + if 'instanceTypesOndemand' in kwargs: + instance_types_ondemand = kwargs['instanceTypesOndemand'] + if 'instanceTypesPreferredSpots' in kwargs: + instance_types_preferred_spots = kwargs['instanceTypesPreferredSpots'] + if 'instanceTypesSpots' in kwargs: + instance_types_spots = kwargs['instanceTypesSpots'] + if 'instanceTypesWeights' in kwargs: + instance_types_weights = kwargs['instanceTypesWeights'] + if 'integrationBeanstalk' in kwargs: + integration_beanstalk = kwargs['integrationBeanstalk'] + if 'integrationCodedeploy' in kwargs: + integration_codedeploy = kwargs['integrationCodedeploy'] + if 'integrationDockerSwarm' in kwargs: + integration_docker_swarm = kwargs['integrationDockerSwarm'] + if 'integrationEcs' in kwargs: + integration_ecs = kwargs['integrationEcs'] + if 'integrationGitlab' in kwargs: + integration_gitlab = kwargs['integrationGitlab'] + if 'integrationKubernetes' in kwargs: + integration_kubernetes = kwargs['integrationKubernetes'] + if 'integrationMesosphere' in kwargs: + integration_mesosphere = kwargs['integrationMesosphere'] + if 'integrationMultaiRuntime' in kwargs: + integration_multai_runtime = kwargs['integrationMultaiRuntime'] + if 'integrationNomad' in kwargs: + integration_nomad = kwargs['integrationNomad'] + if 'integrationRancher' in kwargs: + integration_rancher = kwargs['integrationRancher'] + if 'integrationRoute53' in kwargs: + integration_route53 = kwargs['integrationRoute53'] + if 'keyName' in kwargs: + key_name = kwargs['keyName'] + if 'lifetimePeriod' in kwargs: + lifetime_period = kwargs['lifetimePeriod'] + if 'maxSize' in kwargs: + max_size = kwargs['maxSize'] + if 'metadataOptions' in kwargs: + metadata_options = kwargs['metadataOptions'] + if 'minSize' in kwargs: + min_size = kwargs['minSize'] + if 'minimumInstanceLifetime' in kwargs: + minimum_instance_lifetime = kwargs['minimumInstanceLifetime'] + if 'multaiTargetSets' in kwargs: + multai_target_sets = kwargs['multaiTargetSets'] + if 'multipleMetrics' in kwargs: + multiple_metrics = kwargs['multipleMetrics'] + if 'networkInterfaces' in kwargs: + network_interfaces = kwargs['networkInterfaces'] + if 'onDemandTypes' in kwargs: + on_demand_types = kwargs['onDemandTypes'] + if 'ondemandCount' in kwargs: + ondemand_count = kwargs['ondemandCount'] + if 'persistBlockDevices' in kwargs: + persist_block_devices = kwargs['persistBlockDevices'] + if 'persistPrivateIp' in kwargs: + persist_private_ip = kwargs['persistPrivateIp'] + if 'persistRootDevice' in kwargs: + persist_root_device = kwargs['persistRootDevice'] + if 'placementTenancy' in kwargs: + placement_tenancy = kwargs['placementTenancy'] + if 'preferredAvailabilityZones' in kwargs: + preferred_availability_zones = kwargs['preferredAvailabilityZones'] + if 'privateIps' in kwargs: + private_ips = kwargs['privateIps'] + if 'resourceRequirements' in kwargs: + resource_requirements = kwargs['resourceRequirements'] + if 'resourceTagSpecifications' in kwargs: + resource_tag_specifications = kwargs['resourceTagSpecifications'] + if 'revertToSpot' in kwargs: + revert_to_spot = kwargs['revertToSpot'] + if 'scalingDownPolicies' in kwargs: + scaling_down_policies = kwargs['scalingDownPolicies'] + if 'scalingStrategies' in kwargs: + scaling_strategies = kwargs['scalingStrategies'] + if 'scalingTargetPolicies' in kwargs: + scaling_target_policies = kwargs['scalingTargetPolicies'] + if 'scalingUpPolicies' in kwargs: + scaling_up_policies = kwargs['scalingUpPolicies'] + if 'scheduledTasks' in kwargs: + scheduled_tasks = kwargs['scheduledTasks'] + if 'shutdownScript' in kwargs: + shutdown_script = kwargs['shutdownScript'] + if 'spotPercentage' in kwargs: + spot_percentage = kwargs['spotPercentage'] + if 'statefulDeallocation' in kwargs: + stateful_deallocation = kwargs['statefulDeallocation'] + if 'statefulInstanceActions' in kwargs: + stateful_instance_actions = kwargs['statefulInstanceActions'] + if 'subnetIds' in kwargs: + subnet_ids = kwargs['subnetIds'] + if 'targetGroupArns' in kwargs: + target_group_arns = kwargs['targetGroupArns'] + if 'updatePolicy' in kwargs: + update_policy = kwargs['updatePolicy'] + if 'userData' in kwargs: + user_data = kwargs['userData'] + if 'utilizeCommitments' in kwargs: + utilize_commitments = kwargs['utilizeCommitments'] + if 'utilizeReservedInstances' in kwargs: + utilize_reserved_instances = kwargs['utilizeReservedInstances'] + if 'waitForCapacity' in kwargs: + wait_for_capacity = kwargs['waitForCapacity'] + if 'waitForCapacityTimeout' in kwargs: + wait_for_capacity_timeout = kwargs['waitForCapacityTimeout'] + _setter("fallback_to_ondemand", fallback_to_ondemand) _setter("orientation", orientation) _setter("product", product) @@ -1811,7 +1961,157 @@ def _configure( utilize_reserved_instances: Optional[pulumi.Input[bool]] = None, wait_for_capacity: Optional[pulumi.Input[int]] = None, wait_for_capacity_timeout: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'availabilityZones' in kwargs: + availability_zones = kwargs['availabilityZones'] + if 'blockDevicesMode' in kwargs: + block_devices_mode = kwargs['blockDevicesMode'] + if 'capacityUnit' in kwargs: + capacity_unit = kwargs['capacityUnit'] + if 'considerOdPricing' in kwargs: + consider_od_pricing = kwargs['considerOdPricing'] + if 'cpuCredits' in kwargs: + cpu_credits = kwargs['cpuCredits'] + if 'cpuOptions' in kwargs: + cpu_options = kwargs['cpuOptions'] + if 'desiredCapacity' in kwargs: + desired_capacity = kwargs['desiredCapacity'] + if 'drainingTimeout' in kwargs: + draining_timeout = kwargs['drainingTimeout'] + if 'ebsBlockDevices' in kwargs: + ebs_block_devices = kwargs['ebsBlockDevices'] + if 'ebsOptimized' in kwargs: + ebs_optimized = kwargs['ebsOptimized'] + if 'elasticIps' in kwargs: + elastic_ips = kwargs['elasticIps'] + if 'elasticLoadBalancers' in kwargs: + elastic_load_balancers = kwargs['elasticLoadBalancers'] + if 'enableMonitoring' in kwargs: + enable_monitoring = kwargs['enableMonitoring'] + if 'ephemeralBlockDevices' in kwargs: + ephemeral_block_devices = kwargs['ephemeralBlockDevices'] + if 'fallbackToOndemand' in kwargs: + fallback_to_ondemand = kwargs['fallbackToOndemand'] + if 'healthCheckGracePeriod' in kwargs: + health_check_grace_period = kwargs['healthCheckGracePeriod'] + if 'healthCheckType' in kwargs: + health_check_type = kwargs['healthCheckType'] + if 'healthCheckUnhealthyDurationBeforeReplacement' in kwargs: + health_check_unhealthy_duration_before_replacement = kwargs['healthCheckUnhealthyDurationBeforeReplacement'] + if 'iamInstanceProfile' in kwargs: + iam_instance_profile = kwargs['iamInstanceProfile'] + if 'imageId' in kwargs: + image_id = kwargs['imageId'] + if 'immediateOdRecoverThreshold' in kwargs: + immediate_od_recover_threshold = kwargs['immediateOdRecoverThreshold'] + if 'instanceTypesOndemand' in kwargs: + instance_types_ondemand = kwargs['instanceTypesOndemand'] + if 'instanceTypesPreferredSpots' in kwargs: + instance_types_preferred_spots = kwargs['instanceTypesPreferredSpots'] + if 'instanceTypesSpots' in kwargs: + instance_types_spots = kwargs['instanceTypesSpots'] + if 'instanceTypesWeights' in kwargs: + instance_types_weights = kwargs['instanceTypesWeights'] + if 'integrationBeanstalk' in kwargs: + integration_beanstalk = kwargs['integrationBeanstalk'] + if 'integrationCodedeploy' in kwargs: + integration_codedeploy = kwargs['integrationCodedeploy'] + if 'integrationDockerSwarm' in kwargs: + integration_docker_swarm = kwargs['integrationDockerSwarm'] + if 'integrationEcs' in kwargs: + integration_ecs = kwargs['integrationEcs'] + if 'integrationGitlab' in kwargs: + integration_gitlab = kwargs['integrationGitlab'] + if 'integrationKubernetes' in kwargs: + integration_kubernetes = kwargs['integrationKubernetes'] + if 'integrationMesosphere' in kwargs: + integration_mesosphere = kwargs['integrationMesosphere'] + if 'integrationMultaiRuntime' in kwargs: + integration_multai_runtime = kwargs['integrationMultaiRuntime'] + if 'integrationNomad' in kwargs: + integration_nomad = kwargs['integrationNomad'] + if 'integrationRancher' in kwargs: + integration_rancher = kwargs['integrationRancher'] + if 'integrationRoute53' in kwargs: + integration_route53 = kwargs['integrationRoute53'] + if 'keyName' in kwargs: + key_name = kwargs['keyName'] + if 'lifetimePeriod' in kwargs: + lifetime_period = kwargs['lifetimePeriod'] + if 'maxSize' in kwargs: + max_size = kwargs['maxSize'] + if 'metadataOptions' in kwargs: + metadata_options = kwargs['metadataOptions'] + if 'minSize' in kwargs: + min_size = kwargs['minSize'] + if 'minimumInstanceLifetime' in kwargs: + minimum_instance_lifetime = kwargs['minimumInstanceLifetime'] + if 'multaiTargetSets' in kwargs: + multai_target_sets = kwargs['multaiTargetSets'] + if 'multipleMetrics' in kwargs: + multiple_metrics = kwargs['multipleMetrics'] + if 'networkInterfaces' in kwargs: + network_interfaces = kwargs['networkInterfaces'] + if 'onDemandTypes' in kwargs: + on_demand_types = kwargs['onDemandTypes'] + if 'ondemandCount' in kwargs: + ondemand_count = kwargs['ondemandCount'] + if 'persistBlockDevices' in kwargs: + persist_block_devices = kwargs['persistBlockDevices'] + if 'persistPrivateIp' in kwargs: + persist_private_ip = kwargs['persistPrivateIp'] + if 'persistRootDevice' in kwargs: + persist_root_device = kwargs['persistRootDevice'] + if 'placementTenancy' in kwargs: + placement_tenancy = kwargs['placementTenancy'] + if 'preferredAvailabilityZones' in kwargs: + preferred_availability_zones = kwargs['preferredAvailabilityZones'] + if 'privateIps' in kwargs: + private_ips = kwargs['privateIps'] + if 'resourceRequirements' in kwargs: + resource_requirements = kwargs['resourceRequirements'] + if 'resourceTagSpecifications' in kwargs: + resource_tag_specifications = kwargs['resourceTagSpecifications'] + if 'revertToSpot' in kwargs: + revert_to_spot = kwargs['revertToSpot'] + if 'scalingDownPolicies' in kwargs: + scaling_down_policies = kwargs['scalingDownPolicies'] + if 'scalingStrategies' in kwargs: + scaling_strategies = kwargs['scalingStrategies'] + if 'scalingTargetPolicies' in kwargs: + scaling_target_policies = kwargs['scalingTargetPolicies'] + if 'scalingUpPolicies' in kwargs: + scaling_up_policies = kwargs['scalingUpPolicies'] + if 'scheduledTasks' in kwargs: + scheduled_tasks = kwargs['scheduledTasks'] + if 'securityGroups' in kwargs: + security_groups = kwargs['securityGroups'] + if 'shutdownScript' in kwargs: + shutdown_script = kwargs['shutdownScript'] + if 'spotPercentage' in kwargs: + spot_percentage = kwargs['spotPercentage'] + if 'statefulDeallocation' in kwargs: + stateful_deallocation = kwargs['statefulDeallocation'] + if 'statefulInstanceActions' in kwargs: + stateful_instance_actions = kwargs['statefulInstanceActions'] + if 'subnetIds' in kwargs: + subnet_ids = kwargs['subnetIds'] + if 'targetGroupArns' in kwargs: + target_group_arns = kwargs['targetGroupArns'] + if 'updatePolicy' in kwargs: + update_policy = kwargs['updatePolicy'] + if 'userData' in kwargs: + user_data = kwargs['userData'] + if 'utilizeCommitments' in kwargs: + utilize_commitments = kwargs['utilizeCommitments'] + if 'utilizeReservedInstances' in kwargs: + utilize_reserved_instances = kwargs['utilizeReservedInstances'] + if 'waitForCapacity' in kwargs: + wait_for_capacity = kwargs['waitForCapacity'] + if 'waitForCapacityTimeout' in kwargs: + wait_for_capacity_timeout = kwargs['waitForCapacityTimeout'] + if availability_zones is not None: _setter("availability_zones", availability_zones) if block_devices_mode is not None: diff --git a/sdk/python/pulumi_spotinst/aws/managed_instance.py b/sdk/python/pulumi_spotinst/aws/managed_instance.py index 42b3fdb5..0990d22c 100644 --- a/sdk/python/pulumi_spotinst/aws/managed_instance.py +++ b/sdk/python/pulumi_spotinst/aws/managed_instance.py @@ -160,7 +160,85 @@ def _configure( unhealthy_duration: Optional[pulumi.Input[int]] = None, user_data: Optional[pulumi.Input[str]] = None, utilize_reserved_instances: Optional[pulumi.Input[bool]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'imageId' in kwargs: + image_id = kwargs['imageId'] + if 'instanceTypes' in kwargs: + instance_types = kwargs['instanceTypes'] + if 'persistBlockDevices' in kwargs: + persist_block_devices = kwargs['persistBlockDevices'] + if 'subnetIds' in kwargs: + subnet_ids = kwargs['subnetIds'] + if 'vpcId' in kwargs: + vpc_id = kwargs['vpcId'] + if 'autoHealing' in kwargs: + auto_healing = kwargs['autoHealing'] + if 'blockDeviceMappings' in kwargs: + block_device_mappings = kwargs['blockDeviceMappings'] + if 'blockDevicesMode' in kwargs: + block_devices_mode = kwargs['blockDevicesMode'] + if 'cpuCredits' in kwargs: + cpu_credits = kwargs['cpuCredits'] + if 'drainingTimeout' in kwargs: + draining_timeout = kwargs['drainingTimeout'] + if 'ebsOptimized' in kwargs: + ebs_optimized = kwargs['ebsOptimized'] + if 'elasticIp' in kwargs: + elastic_ip = kwargs['elasticIp'] + if 'enableMonitoring' in kwargs: + enable_monitoring = kwargs['enableMonitoring'] + if 'fallBackToOd' in kwargs: + fall_back_to_od = kwargs['fallBackToOd'] + if 'gracePeriod' in kwargs: + grace_period = kwargs['gracePeriod'] + if 'healthCheckType' in kwargs: + health_check_type = kwargs['healthCheckType'] + if 'iamInstanceProfile' in kwargs: + iam_instance_profile = kwargs['iamInstanceProfile'] + if 'integrationRoute53' in kwargs: + integration_route53 = kwargs['integrationRoute53'] + if 'keyPair' in kwargs: + key_pair = kwargs['keyPair'] + if 'lifeCycle' in kwargs: + life_cycle = kwargs['lifeCycle'] + if 'loadBalancers' in kwargs: + load_balancers = kwargs['loadBalancers'] + if 'managedInstanceAction' in kwargs: + managed_instance_action = kwargs['managedInstanceAction'] + if 'minimumInstanceLifetime' in kwargs: + minimum_instance_lifetime = kwargs['minimumInstanceLifetime'] + if 'networkInterfaces' in kwargs: + network_interfaces = kwargs['networkInterfaces'] + if 'optimizationWindows' in kwargs: + optimization_windows = kwargs['optimizationWindows'] + if 'persistPrivateIp' in kwargs: + persist_private_ip = kwargs['persistPrivateIp'] + if 'persistRootDevice' in kwargs: + persist_root_device = kwargs['persistRootDevice'] + if 'placementTenancy' in kwargs: + placement_tenancy = kwargs['placementTenancy'] + if 'preferredType' in kwargs: + preferred_type = kwargs['preferredType'] + if 'privateIp' in kwargs: + private_ip = kwargs['privateIp'] + if 'resourceTagSpecifications' in kwargs: + resource_tag_specifications = kwargs['resourceTagSpecifications'] + if 'revertToSpot' in kwargs: + revert_to_spot = kwargs['revertToSpot'] + if 'scheduledTasks' in kwargs: + scheduled_tasks = kwargs['scheduledTasks'] + if 'securityGroupIds' in kwargs: + security_group_ids = kwargs['securityGroupIds'] + if 'shutdownScript' in kwargs: + shutdown_script = kwargs['shutdownScript'] + if 'unhealthyDuration' in kwargs: + unhealthy_duration = kwargs['unhealthyDuration'] + if 'userData' in kwargs: + user_data = kwargs['userData'] + if 'utilizeReservedInstances' in kwargs: + utilize_reserved_instances = kwargs['utilizeReservedInstances'] + _setter("image_id", image_id) _setter("instance_types", instance_types) _setter("persist_block_devices", persist_block_devices) @@ -799,7 +877,85 @@ def _configure( user_data: Optional[pulumi.Input[str]] = None, utilize_reserved_instances: Optional[pulumi.Input[bool]] = None, vpc_id: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'autoHealing' in kwargs: + auto_healing = kwargs['autoHealing'] + if 'blockDeviceMappings' in kwargs: + block_device_mappings = kwargs['blockDeviceMappings'] + if 'blockDevicesMode' in kwargs: + block_devices_mode = kwargs['blockDevicesMode'] + if 'cpuCredits' in kwargs: + cpu_credits = kwargs['cpuCredits'] + if 'drainingTimeout' in kwargs: + draining_timeout = kwargs['drainingTimeout'] + if 'ebsOptimized' in kwargs: + ebs_optimized = kwargs['ebsOptimized'] + if 'elasticIp' in kwargs: + elastic_ip = kwargs['elasticIp'] + if 'enableMonitoring' in kwargs: + enable_monitoring = kwargs['enableMonitoring'] + if 'fallBackToOd' in kwargs: + fall_back_to_od = kwargs['fallBackToOd'] + if 'gracePeriod' in kwargs: + grace_period = kwargs['gracePeriod'] + if 'healthCheckType' in kwargs: + health_check_type = kwargs['healthCheckType'] + if 'iamInstanceProfile' in kwargs: + iam_instance_profile = kwargs['iamInstanceProfile'] + if 'imageId' in kwargs: + image_id = kwargs['imageId'] + if 'instanceTypes' in kwargs: + instance_types = kwargs['instanceTypes'] + if 'integrationRoute53' in kwargs: + integration_route53 = kwargs['integrationRoute53'] + if 'keyPair' in kwargs: + key_pair = kwargs['keyPair'] + if 'lifeCycle' in kwargs: + life_cycle = kwargs['lifeCycle'] + if 'loadBalancers' in kwargs: + load_balancers = kwargs['loadBalancers'] + if 'managedInstanceAction' in kwargs: + managed_instance_action = kwargs['managedInstanceAction'] + if 'minimumInstanceLifetime' in kwargs: + minimum_instance_lifetime = kwargs['minimumInstanceLifetime'] + if 'networkInterfaces' in kwargs: + network_interfaces = kwargs['networkInterfaces'] + if 'optimizationWindows' in kwargs: + optimization_windows = kwargs['optimizationWindows'] + if 'persistBlockDevices' in kwargs: + persist_block_devices = kwargs['persistBlockDevices'] + if 'persistPrivateIp' in kwargs: + persist_private_ip = kwargs['persistPrivateIp'] + if 'persistRootDevice' in kwargs: + persist_root_device = kwargs['persistRootDevice'] + if 'placementTenancy' in kwargs: + placement_tenancy = kwargs['placementTenancy'] + if 'preferredType' in kwargs: + preferred_type = kwargs['preferredType'] + if 'privateIp' in kwargs: + private_ip = kwargs['privateIp'] + if 'resourceTagSpecifications' in kwargs: + resource_tag_specifications = kwargs['resourceTagSpecifications'] + if 'revertToSpot' in kwargs: + revert_to_spot = kwargs['revertToSpot'] + if 'scheduledTasks' in kwargs: + scheduled_tasks = kwargs['scheduledTasks'] + if 'securityGroupIds' in kwargs: + security_group_ids = kwargs['securityGroupIds'] + if 'shutdownScript' in kwargs: + shutdown_script = kwargs['shutdownScript'] + if 'subnetIds' in kwargs: + subnet_ids = kwargs['subnetIds'] + if 'unhealthyDuration' in kwargs: + unhealthy_duration = kwargs['unhealthyDuration'] + if 'userData' in kwargs: + user_data = kwargs['userData'] + if 'utilizeReservedInstances' in kwargs: + utilize_reserved_instances = kwargs['utilizeReservedInstances'] + if 'vpcId' in kwargs: + vpc_id = kwargs['vpcId'] + if auto_healing is not None: _setter("auto_healing", auto_healing) if block_device_mappings is not None: diff --git a/sdk/python/pulumi_spotinst/aws/mr_scalar.py b/sdk/python/pulumi_spotinst/aws/mr_scalar.py index 18d80594..8254e877 100644 --- a/sdk/python/pulumi_spotinst/aws/mr_scalar.py +++ b/sdk/python/pulumi_spotinst/aws/mr_scalar.py @@ -259,7 +259,115 @@ def _configure( termination_policies: Optional[pulumi.Input[Sequence[pulumi.Input['MrScalarTerminationPolicyArgs']]]] = None, termination_protected: Optional[pulumi.Input[bool]] = None, visible_to_all_users: Optional[pulumi.Input[bool]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'additionalInfo' in kwargs: + additional_info = kwargs['additionalInfo'] + if 'additionalPrimarySecurityGroups' in kwargs: + additional_primary_security_groups = kwargs['additionalPrimarySecurityGroups'] + if 'additionalReplicaSecurityGroups' in kwargs: + additional_replica_security_groups = kwargs['additionalReplicaSecurityGroups'] + if 'availabilityZones' in kwargs: + availability_zones = kwargs['availabilityZones'] + if 'bootstrapActionsFiles' in kwargs: + bootstrap_actions_files = kwargs['bootstrapActionsFiles'] + if 'clusterId' in kwargs: + cluster_id = kwargs['clusterId'] + if 'configurationsFiles' in kwargs: + configurations_files = kwargs['configurationsFiles'] + if 'coreDesiredCapacity' in kwargs: + core_desired_capacity = kwargs['coreDesiredCapacity'] + if 'coreEbsBlockDevices' in kwargs: + core_ebs_block_devices = kwargs['coreEbsBlockDevices'] + if 'coreEbsOptimized' in kwargs: + core_ebs_optimized = kwargs['coreEbsOptimized'] + if 'coreInstanceTypes' in kwargs: + core_instance_types = kwargs['coreInstanceTypes'] + if 'coreLifecycle' in kwargs: + core_lifecycle = kwargs['coreLifecycle'] + if 'coreMaxSize' in kwargs: + core_max_size = kwargs['coreMaxSize'] + if 'coreMinSize' in kwargs: + core_min_size = kwargs['coreMinSize'] + if 'coreScalingDownPolicies' in kwargs: + core_scaling_down_policies = kwargs['coreScalingDownPolicies'] + if 'coreScalingUpPolicies' in kwargs: + core_scaling_up_policies = kwargs['coreScalingUpPolicies'] + if 'coreUnit' in kwargs: + core_unit = kwargs['coreUnit'] + if 'customAmiId' in kwargs: + custom_ami_id = kwargs['customAmiId'] + if 'ebsRootVolumeSize' in kwargs: + ebs_root_volume_size = kwargs['ebsRootVolumeSize'] + if 'ec2KeyName' in kwargs: + ec2_key_name = kwargs['ec2KeyName'] + if 'exposeClusterId' in kwargs: + expose_cluster_id = kwargs['exposeClusterId'] + if 'instanceWeights' in kwargs: + instance_weights = kwargs['instanceWeights'] + if 'jobFlowRole' in kwargs: + job_flow_role = kwargs['jobFlowRole'] + if 'keepJobFlowAlive' in kwargs: + keep_job_flow_alive = kwargs['keepJobFlowAlive'] + if 'logUri' in kwargs: + log_uri = kwargs['logUri'] + if 'managedPrimarySecurityGroup' in kwargs: + managed_primary_security_group = kwargs['managedPrimarySecurityGroup'] + if 'managedReplicaSecurityGroup' in kwargs: + managed_replica_security_group = kwargs['managedReplicaSecurityGroup'] + if 'masterEbsBlockDevices' in kwargs: + master_ebs_block_devices = kwargs['masterEbsBlockDevices'] + if 'masterEbsOptimized' in kwargs: + master_ebs_optimized = kwargs['masterEbsOptimized'] + if 'masterInstanceTypes' in kwargs: + master_instance_types = kwargs['masterInstanceTypes'] + if 'masterLifecycle' in kwargs: + master_lifecycle = kwargs['masterLifecycle'] + if 'masterTarget' in kwargs: + master_target = kwargs['masterTarget'] + if 'provisioningTimeout' in kwargs: + provisioning_timeout = kwargs['provisioningTimeout'] + if 'releaseLabel' in kwargs: + release_label = kwargs['releaseLabel'] + if 'repoUpgradeOnBoot' in kwargs: + repo_upgrade_on_boot = kwargs['repoUpgradeOnBoot'] + if 'scheduledTasks' in kwargs: + scheduled_tasks = kwargs['scheduledTasks'] + if 'securityConfig' in kwargs: + security_config = kwargs['securityConfig'] + if 'serviceAccessSecurityGroup' in kwargs: + service_access_security_group = kwargs['serviceAccessSecurityGroup'] + if 'serviceRole' in kwargs: + service_role = kwargs['serviceRole'] + if 'stepsFiles' in kwargs: + steps_files = kwargs['stepsFiles'] + if 'taskDesiredCapacity' in kwargs: + task_desired_capacity = kwargs['taskDesiredCapacity'] + if 'taskEbsBlockDevices' in kwargs: + task_ebs_block_devices = kwargs['taskEbsBlockDevices'] + if 'taskEbsOptimized' in kwargs: + task_ebs_optimized = kwargs['taskEbsOptimized'] + if 'taskInstanceTypes' in kwargs: + task_instance_types = kwargs['taskInstanceTypes'] + if 'taskLifecycle' in kwargs: + task_lifecycle = kwargs['taskLifecycle'] + if 'taskMaxSize' in kwargs: + task_max_size = kwargs['taskMaxSize'] + if 'taskMinSize' in kwargs: + task_min_size = kwargs['taskMinSize'] + if 'taskScalingDownPolicies' in kwargs: + task_scaling_down_policies = kwargs['taskScalingDownPolicies'] + if 'taskScalingUpPolicies' in kwargs: + task_scaling_up_policies = kwargs['taskScalingUpPolicies'] + if 'taskUnit' in kwargs: + task_unit = kwargs['taskUnit'] + if 'terminationPolicies' in kwargs: + termination_policies = kwargs['terminationPolicies'] + if 'terminationProtected' in kwargs: + termination_protected = kwargs['terminationProtected'] + if 'visibleToAllUsers' in kwargs: + visible_to_all_users = kwargs['visibleToAllUsers'] + _setter("strategy", strategy) if additional_info is not None: _setter("additional_info", additional_info) @@ -1338,7 +1446,117 @@ def _configure( termination_policies: Optional[pulumi.Input[Sequence[pulumi.Input['MrScalarTerminationPolicyArgs']]]] = None, termination_protected: Optional[pulumi.Input[bool]] = None, visible_to_all_users: Optional[pulumi.Input[bool]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'additionalInfo' in kwargs: + additional_info = kwargs['additionalInfo'] + if 'additionalPrimarySecurityGroups' in kwargs: + additional_primary_security_groups = kwargs['additionalPrimarySecurityGroups'] + if 'additionalReplicaSecurityGroups' in kwargs: + additional_replica_security_groups = kwargs['additionalReplicaSecurityGroups'] + if 'availabilityZones' in kwargs: + availability_zones = kwargs['availabilityZones'] + if 'bootstrapActionsFiles' in kwargs: + bootstrap_actions_files = kwargs['bootstrapActionsFiles'] + if 'clusterId' in kwargs: + cluster_id = kwargs['clusterId'] + if 'configurationsFiles' in kwargs: + configurations_files = kwargs['configurationsFiles'] + if 'coreDesiredCapacity' in kwargs: + core_desired_capacity = kwargs['coreDesiredCapacity'] + if 'coreEbsBlockDevices' in kwargs: + core_ebs_block_devices = kwargs['coreEbsBlockDevices'] + if 'coreEbsOptimized' in kwargs: + core_ebs_optimized = kwargs['coreEbsOptimized'] + if 'coreInstanceTypes' in kwargs: + core_instance_types = kwargs['coreInstanceTypes'] + if 'coreLifecycle' in kwargs: + core_lifecycle = kwargs['coreLifecycle'] + if 'coreMaxSize' in kwargs: + core_max_size = kwargs['coreMaxSize'] + if 'coreMinSize' in kwargs: + core_min_size = kwargs['coreMinSize'] + if 'coreScalingDownPolicies' in kwargs: + core_scaling_down_policies = kwargs['coreScalingDownPolicies'] + if 'coreScalingUpPolicies' in kwargs: + core_scaling_up_policies = kwargs['coreScalingUpPolicies'] + if 'coreUnit' in kwargs: + core_unit = kwargs['coreUnit'] + if 'customAmiId' in kwargs: + custom_ami_id = kwargs['customAmiId'] + if 'ebsRootVolumeSize' in kwargs: + ebs_root_volume_size = kwargs['ebsRootVolumeSize'] + if 'ec2KeyName' in kwargs: + ec2_key_name = kwargs['ec2KeyName'] + if 'exposeClusterId' in kwargs: + expose_cluster_id = kwargs['exposeClusterId'] + if 'instanceWeights' in kwargs: + instance_weights = kwargs['instanceWeights'] + if 'jobFlowRole' in kwargs: + job_flow_role = kwargs['jobFlowRole'] + if 'keepJobFlowAlive' in kwargs: + keep_job_flow_alive = kwargs['keepJobFlowAlive'] + if 'logUri' in kwargs: + log_uri = kwargs['logUri'] + if 'managedPrimarySecurityGroup' in kwargs: + managed_primary_security_group = kwargs['managedPrimarySecurityGroup'] + if 'managedReplicaSecurityGroup' in kwargs: + managed_replica_security_group = kwargs['managedReplicaSecurityGroup'] + if 'masterEbsBlockDevices' in kwargs: + master_ebs_block_devices = kwargs['masterEbsBlockDevices'] + if 'masterEbsOptimized' in kwargs: + master_ebs_optimized = kwargs['masterEbsOptimized'] + if 'masterInstanceTypes' in kwargs: + master_instance_types = kwargs['masterInstanceTypes'] + if 'masterLifecycle' in kwargs: + master_lifecycle = kwargs['masterLifecycle'] + if 'masterTarget' in kwargs: + master_target = kwargs['masterTarget'] + if 'outputClusterId' in kwargs: + output_cluster_id = kwargs['outputClusterId'] + if 'provisioningTimeout' in kwargs: + provisioning_timeout = kwargs['provisioningTimeout'] + if 'releaseLabel' in kwargs: + release_label = kwargs['releaseLabel'] + if 'repoUpgradeOnBoot' in kwargs: + repo_upgrade_on_boot = kwargs['repoUpgradeOnBoot'] + if 'scheduledTasks' in kwargs: + scheduled_tasks = kwargs['scheduledTasks'] + if 'securityConfig' in kwargs: + security_config = kwargs['securityConfig'] + if 'serviceAccessSecurityGroup' in kwargs: + service_access_security_group = kwargs['serviceAccessSecurityGroup'] + if 'serviceRole' in kwargs: + service_role = kwargs['serviceRole'] + if 'stepsFiles' in kwargs: + steps_files = kwargs['stepsFiles'] + if 'taskDesiredCapacity' in kwargs: + task_desired_capacity = kwargs['taskDesiredCapacity'] + if 'taskEbsBlockDevices' in kwargs: + task_ebs_block_devices = kwargs['taskEbsBlockDevices'] + if 'taskEbsOptimized' in kwargs: + task_ebs_optimized = kwargs['taskEbsOptimized'] + if 'taskInstanceTypes' in kwargs: + task_instance_types = kwargs['taskInstanceTypes'] + if 'taskLifecycle' in kwargs: + task_lifecycle = kwargs['taskLifecycle'] + if 'taskMaxSize' in kwargs: + task_max_size = kwargs['taskMaxSize'] + if 'taskMinSize' in kwargs: + task_min_size = kwargs['taskMinSize'] + if 'taskScalingDownPolicies' in kwargs: + task_scaling_down_policies = kwargs['taskScalingDownPolicies'] + if 'taskScalingUpPolicies' in kwargs: + task_scaling_up_policies = kwargs['taskScalingUpPolicies'] + if 'taskUnit' in kwargs: + task_unit = kwargs['taskUnit'] + if 'terminationPolicies' in kwargs: + termination_policies = kwargs['terminationPolicies'] + if 'terminationProtected' in kwargs: + termination_protected = kwargs['terminationProtected'] + if 'visibleToAllUsers' in kwargs: + visible_to_all_users = kwargs['visibleToAllUsers'] + if additional_info is not None: _setter("additional_info", additional_info) if additional_primary_security_groups is not None: diff --git a/sdk/python/pulumi_spotinst/aws/ocean.py b/sdk/python/pulumi_spotinst/aws/ocean.py index 2704b140..ac676455 100644 --- a/sdk/python/pulumi_spotinst/aws/ocean.py +++ b/sdk/python/pulumi_spotinst/aws/ocean.py @@ -174,7 +174,67 @@ def _configure( utilize_commitments: Optional[pulumi.Input[bool]] = None, utilize_reserved_instances: Optional[pulumi.Input[bool]] = None, whitelists: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'securityGroups' in kwargs: + security_groups = kwargs['securityGroups'] + if 'subnetIds' in kwargs: + subnet_ids = kwargs['subnetIds'] + if 'associateIpv6Address' in kwargs: + associate_ipv6_address = kwargs['associateIpv6Address'] + if 'associatePublicIpAddress' in kwargs: + associate_public_ip_address = kwargs['associatePublicIpAddress'] + if 'blockDeviceMappings' in kwargs: + block_device_mappings = kwargs['blockDeviceMappings'] + if 'clusterOrientations' in kwargs: + cluster_orientations = kwargs['clusterOrientations'] + if 'controllerId' in kwargs: + controller_id = kwargs['controllerId'] + if 'desiredCapacity' in kwargs: + desired_capacity = kwargs['desiredCapacity'] + if 'drainingTimeout' in kwargs: + draining_timeout = kwargs['drainingTimeout'] + if 'ebsOptimized' in kwargs: + ebs_optimized = kwargs['ebsOptimized'] + if 'fallbackToOndemand' in kwargs: + fallback_to_ondemand = kwargs['fallbackToOndemand'] + if 'gracePeriod' in kwargs: + grace_period = kwargs['gracePeriod'] + if 'iamInstanceProfile' in kwargs: + iam_instance_profile = kwargs['iamInstanceProfile'] + if 'imageId' in kwargs: + image_id = kwargs['imageId'] + if 'instanceMetadataOptions' in kwargs: + instance_metadata_options = kwargs['instanceMetadataOptions'] + if 'keyName' in kwargs: + key_name = kwargs['keyName'] + if 'loadBalancers' in kwargs: + load_balancers = kwargs['loadBalancers'] + if 'maxSize' in kwargs: + max_size = kwargs['maxSize'] + if 'minSize' in kwargs: + min_size = kwargs['minSize'] + if 'resourceTagSpecifications' in kwargs: + resource_tag_specifications = kwargs['resourceTagSpecifications'] + if 'rootVolumeSize' in kwargs: + root_volume_size = kwargs['rootVolumeSize'] + if 'scheduledTasks' in kwargs: + scheduled_tasks = kwargs['scheduledTasks'] + if 'spotPercentage' in kwargs: + spot_percentage = kwargs['spotPercentage'] + if 'spreadNodesBy' in kwargs: + spread_nodes_by = kwargs['spreadNodesBy'] + if 'updatePolicy' in kwargs: + update_policy = kwargs['updatePolicy'] + if 'useAsTemplateOnly' in kwargs: + use_as_template_only = kwargs['useAsTemplateOnly'] + if 'userData' in kwargs: + user_data = kwargs['userData'] + if 'utilizeCommitments' in kwargs: + utilize_commitments = kwargs['utilizeCommitments'] + if 'utilizeReservedInstances' in kwargs: + utilize_reserved_instances = kwargs['utilizeReservedInstances'] + _setter("security_groups", security_groups) _setter("subnet_ids", subnet_ids) if associate_ipv6_address is not None: @@ -857,7 +917,67 @@ def _configure( utilize_commitments: Optional[pulumi.Input[bool]] = None, utilize_reserved_instances: Optional[pulumi.Input[bool]] = None, whitelists: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'associateIpv6Address' in kwargs: + associate_ipv6_address = kwargs['associateIpv6Address'] + if 'associatePublicIpAddress' in kwargs: + associate_public_ip_address = kwargs['associatePublicIpAddress'] + if 'blockDeviceMappings' in kwargs: + block_device_mappings = kwargs['blockDeviceMappings'] + if 'clusterOrientations' in kwargs: + cluster_orientations = kwargs['clusterOrientations'] + if 'controllerId' in kwargs: + controller_id = kwargs['controllerId'] + if 'desiredCapacity' in kwargs: + desired_capacity = kwargs['desiredCapacity'] + if 'drainingTimeout' in kwargs: + draining_timeout = kwargs['drainingTimeout'] + if 'ebsOptimized' in kwargs: + ebs_optimized = kwargs['ebsOptimized'] + if 'fallbackToOndemand' in kwargs: + fallback_to_ondemand = kwargs['fallbackToOndemand'] + if 'gracePeriod' in kwargs: + grace_period = kwargs['gracePeriod'] + if 'iamInstanceProfile' in kwargs: + iam_instance_profile = kwargs['iamInstanceProfile'] + if 'imageId' in kwargs: + image_id = kwargs['imageId'] + if 'instanceMetadataOptions' in kwargs: + instance_metadata_options = kwargs['instanceMetadataOptions'] + if 'keyName' in kwargs: + key_name = kwargs['keyName'] + if 'loadBalancers' in kwargs: + load_balancers = kwargs['loadBalancers'] + if 'maxSize' in kwargs: + max_size = kwargs['maxSize'] + if 'minSize' in kwargs: + min_size = kwargs['minSize'] + if 'resourceTagSpecifications' in kwargs: + resource_tag_specifications = kwargs['resourceTagSpecifications'] + if 'rootVolumeSize' in kwargs: + root_volume_size = kwargs['rootVolumeSize'] + if 'scheduledTasks' in kwargs: + scheduled_tasks = kwargs['scheduledTasks'] + if 'securityGroups' in kwargs: + security_groups = kwargs['securityGroups'] + if 'spotPercentage' in kwargs: + spot_percentage = kwargs['spotPercentage'] + if 'spreadNodesBy' in kwargs: + spread_nodes_by = kwargs['spreadNodesBy'] + if 'subnetIds' in kwargs: + subnet_ids = kwargs['subnetIds'] + if 'updatePolicy' in kwargs: + update_policy = kwargs['updatePolicy'] + if 'useAsTemplateOnly' in kwargs: + use_as_template_only = kwargs['useAsTemplateOnly'] + if 'userData' in kwargs: + user_data = kwargs['userData'] + if 'utilizeCommitments' in kwargs: + utilize_commitments = kwargs['utilizeCommitments'] + if 'utilizeReservedInstances' in kwargs: + utilize_reserved_instances = kwargs['utilizeReservedInstances'] + if associate_ipv6_address is not None: _setter("associate_ipv6_address", associate_ipv6_address) if associate_public_ip_address is not None: diff --git a/sdk/python/pulumi_spotinst/aws/ocean_extended_resource_definition.py b/sdk/python/pulumi_spotinst/aws/ocean_extended_resource_definition.py index fae22820..c4944b4e 100644 --- a/sdk/python/pulumi_spotinst/aws/ocean_extended_resource_definition.py +++ b/sdk/python/pulumi_spotinst/aws/ocean_extended_resource_definition.py @@ -32,7 +32,11 @@ def _configure( _setter: Callable[[Any, Any], None], resource_mapping: pulumi.Input[Mapping[str, Any]], name: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'resourceMapping' in kwargs: + resource_mapping = kwargs['resourceMapping'] + _setter("resource_mapping", resource_mapping) if name is not None: _setter("name", name) @@ -84,7 +88,11 @@ def _configure( _setter: Callable[[Any, Any], None], name: Optional[pulumi.Input[str]] = None, resource_mapping: Optional[pulumi.Input[Mapping[str, Any]]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'resourceMapping' in kwargs: + resource_mapping = kwargs['resourceMapping'] + if name is not None: _setter("name", name) if resource_mapping is not None: diff --git a/sdk/python/pulumi_spotinst/aws/ocean_launch_spec.py b/sdk/python/pulumi_spotinst/aws/ocean_launch_spec.py index b4dc9ffc..18ae12dd 100644 --- a/sdk/python/pulumi_spotinst/aws/ocean_launch_spec.py +++ b/sdk/python/pulumi_spotinst/aws/ocean_launch_spec.py @@ -142,7 +142,57 @@ def _configure( taints: Optional[pulumi.Input[Sequence[pulumi.Input['OceanLaunchSpecTaintArgs']]]] = None, update_policy: Optional[pulumi.Input['OceanLaunchSpecUpdatePolicyArgs']] = None, user_data: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'oceanId' in kwargs: + ocean_id = kwargs['oceanId'] + if 'associatePublicIpAddress' in kwargs: + associate_public_ip_address = kwargs['associatePublicIpAddress'] + if 'autoscaleDowns' in kwargs: + autoscale_downs = kwargs['autoscaleDowns'] + if 'autoscaleHeadrooms' in kwargs: + autoscale_headrooms = kwargs['autoscaleHeadrooms'] + if 'autoscaleHeadroomsAutomatics' in kwargs: + autoscale_headrooms_automatics = kwargs['autoscaleHeadroomsAutomatics'] + if 'blockDeviceMappings' in kwargs: + block_device_mappings = kwargs['blockDeviceMappings'] + if 'createOptions' in kwargs: + create_options = kwargs['createOptions'] + if 'deleteOptions' in kwargs: + delete_options = kwargs['deleteOptions'] + if 'elasticIpPools' in kwargs: + elastic_ip_pools = kwargs['elasticIpPools'] + if 'iamInstanceProfile' in kwargs: + iam_instance_profile = kwargs['iamInstanceProfile'] + if 'imageId' in kwargs: + image_id = kwargs['imageId'] + if 'instanceMetadataOptions' in kwargs: + instance_metadata_options = kwargs['instanceMetadataOptions'] + if 'instanceTypes' in kwargs: + instance_types = kwargs['instanceTypes'] + if 'instanceTypesFilters' in kwargs: + instance_types_filters = kwargs['instanceTypesFilters'] + if 'preferredSpotTypes' in kwargs: + preferred_spot_types = kwargs['preferredSpotTypes'] + if 'resourceLimits' in kwargs: + resource_limits = kwargs['resourceLimits'] + if 'restrictScaleDown' in kwargs: + restrict_scale_down = kwargs['restrictScaleDown'] + if 'rootVolumeSize' in kwargs: + root_volume_size = kwargs['rootVolumeSize'] + if 'schedulingShutdownHours' in kwargs: + scheduling_shutdown_hours = kwargs['schedulingShutdownHours'] + if 'schedulingTasks' in kwargs: + scheduling_tasks = kwargs['schedulingTasks'] + if 'securityGroups' in kwargs: + security_groups = kwargs['securityGroups'] + if 'subnetIds' in kwargs: + subnet_ids = kwargs['subnetIds'] + if 'updatePolicy' in kwargs: + update_policy = kwargs['updatePolicy'] + if 'userData' in kwargs: + user_data = kwargs['userData'] + _setter("ocean_id", ocean_id) if associate_public_ip_address is not None: _setter("associate_public_ip_address", associate_public_ip_address) @@ -680,7 +730,57 @@ def _configure( taints: Optional[pulumi.Input[Sequence[pulumi.Input['OceanLaunchSpecTaintArgs']]]] = None, update_policy: Optional[pulumi.Input['OceanLaunchSpecUpdatePolicyArgs']] = None, user_data: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'associatePublicIpAddress' in kwargs: + associate_public_ip_address = kwargs['associatePublicIpAddress'] + if 'autoscaleDowns' in kwargs: + autoscale_downs = kwargs['autoscaleDowns'] + if 'autoscaleHeadrooms' in kwargs: + autoscale_headrooms = kwargs['autoscaleHeadrooms'] + if 'autoscaleHeadroomsAutomatics' in kwargs: + autoscale_headrooms_automatics = kwargs['autoscaleHeadroomsAutomatics'] + if 'blockDeviceMappings' in kwargs: + block_device_mappings = kwargs['blockDeviceMappings'] + if 'createOptions' in kwargs: + create_options = kwargs['createOptions'] + if 'deleteOptions' in kwargs: + delete_options = kwargs['deleteOptions'] + if 'elasticIpPools' in kwargs: + elastic_ip_pools = kwargs['elasticIpPools'] + if 'iamInstanceProfile' in kwargs: + iam_instance_profile = kwargs['iamInstanceProfile'] + if 'imageId' in kwargs: + image_id = kwargs['imageId'] + if 'instanceMetadataOptions' in kwargs: + instance_metadata_options = kwargs['instanceMetadataOptions'] + if 'instanceTypes' in kwargs: + instance_types = kwargs['instanceTypes'] + if 'instanceTypesFilters' in kwargs: + instance_types_filters = kwargs['instanceTypesFilters'] + if 'oceanId' in kwargs: + ocean_id = kwargs['oceanId'] + if 'preferredSpotTypes' in kwargs: + preferred_spot_types = kwargs['preferredSpotTypes'] + if 'resourceLimits' in kwargs: + resource_limits = kwargs['resourceLimits'] + if 'restrictScaleDown' in kwargs: + restrict_scale_down = kwargs['restrictScaleDown'] + if 'rootVolumeSize' in kwargs: + root_volume_size = kwargs['rootVolumeSize'] + if 'schedulingShutdownHours' in kwargs: + scheduling_shutdown_hours = kwargs['schedulingShutdownHours'] + if 'schedulingTasks' in kwargs: + scheduling_tasks = kwargs['schedulingTasks'] + if 'securityGroups' in kwargs: + security_groups = kwargs['securityGroups'] + if 'subnetIds' in kwargs: + subnet_ids = kwargs['subnetIds'] + if 'updatePolicy' in kwargs: + update_policy = kwargs['updatePolicy'] + if 'userData' in kwargs: + user_data = kwargs['userData'] + if associate_public_ip_address is not None: _setter("associate_public_ip_address", associate_public_ip_address) if autoscale_downs is not None: diff --git a/sdk/python/pulumi_spotinst/aws/outputs.py b/sdk/python/pulumi_spotinst/aws/outputs.py index 6326db91..e88e9d54 100644 --- a/sdk/python/pulumi_spotinst/aws/outputs.py +++ b/sdk/python/pulumi_spotinst/aws/outputs.py @@ -217,7 +217,15 @@ def _configure( batch_size_percentage: Optional[int] = None, grace_period: Optional[int] = None, strategies: Optional[Sequence['outputs.BeanstalkDeploymentPreferencesStrategy']] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'automaticRoll' in kwargs: + automatic_roll = kwargs['automaticRoll'] + if 'batchSizePercentage' in kwargs: + batch_size_percentage = kwargs['batchSizePercentage'] + if 'gracePeriod' in kwargs: + grace_period = kwargs['gracePeriod'] + if automatic_roll is not None: _setter("automatic_roll", automatic_roll) if batch_size_percentage is not None: @@ -296,7 +304,11 @@ def _configure( _setter: Callable[[Any, Any], None], action: Optional[str] = None, should_drain_instances: Optional[bool] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'shouldDrainInstances' in kwargs: + should_drain_instances = kwargs['shouldDrainInstances'] + if action is not None: _setter("action", action) if should_drain_instances is not None: @@ -351,7 +363,11 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], platform_update: Optional['outputs.BeanstalkManagedActionsPlatformUpdate'] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'platformUpdate' in kwargs: + platform_update = kwargs['platformUpdate'] + if platform_update is not None: _setter("platform_update", platform_update) @@ -408,7 +424,15 @@ def _configure( perform_at: Optional[str] = None, time_window: Optional[str] = None, update_level: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'performAt' in kwargs: + perform_at = kwargs['performAt'] + if 'timeWindow' in kwargs: + time_window = kwargs['timeWindow'] + if 'updateLevel' in kwargs: + update_level = kwargs['updateLevel'] + if perform_at is not None: _setter("perform_at", perform_at) if time_window is not None: @@ -559,7 +583,35 @@ def _configure( scale_target_capacity: Optional[str] = None, start_time: Optional[str] = None, target_capacity: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'taskType' in kwargs: + task_type = kwargs['taskType'] + if 'adjustmentPercentage' in kwargs: + adjustment_percentage = kwargs['adjustmentPercentage'] + if 'batchSizePercentage' in kwargs: + batch_size_percentage = kwargs['batchSizePercentage'] + if 'cronExpression' in kwargs: + cron_expression = kwargs['cronExpression'] + if 'gracePeriod' in kwargs: + grace_period = kwargs['gracePeriod'] + if 'isEnabled' in kwargs: + is_enabled = kwargs['isEnabled'] + if 'maxCapacity' in kwargs: + max_capacity = kwargs['maxCapacity'] + if 'minCapacity' in kwargs: + min_capacity = kwargs['minCapacity'] + if 'scaleMaxCapacity' in kwargs: + scale_max_capacity = kwargs['scaleMaxCapacity'] + if 'scaleMinCapacity' in kwargs: + scale_min_capacity = kwargs['scaleMinCapacity'] + if 'scaleTargetCapacity' in kwargs: + scale_target_capacity = kwargs['scaleTargetCapacity'] + if 'startTime' in kwargs: + start_time = kwargs['startTime'] + if 'targetCapacity' in kwargs: + target_capacity = kwargs['targetCapacity'] + _setter("task_type", task_type) if adjustment is not None: _setter("adjustment", adjustment) @@ -749,7 +801,11 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], threads_per_core: int, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'threadsPerCore' in kwargs: + threads_per_core = kwargs['threadsPerCore'] + _setter("threads_per_core", threads_per_core) @property @@ -843,7 +899,21 @@ def _configure( throughput: Optional[int] = None, volume_size: Optional[int] = None, volume_type: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'deviceName' in kwargs: + device_name = kwargs['deviceName'] + if 'deleteOnTermination' in kwargs: + delete_on_termination = kwargs['deleteOnTermination'] + if 'kmsKeyId' in kwargs: + kms_key_id = kwargs['kmsKeyId'] + if 'snapshotId' in kwargs: + snapshot_id = kwargs['snapshotId'] + if 'volumeSize' in kwargs: + volume_size = kwargs['volumeSize'] + if 'volumeType' in kwargs: + volume_type = kwargs['volumeType'] + _setter("device_name", device_name) if delete_on_termination is not None: _setter("delete_on_termination", delete_on_termination) @@ -988,7 +1058,13 @@ def _configure( _setter: Callable[[Any, Any], None], device_name: str, virtual_name: str, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'deviceName' in kwargs: + device_name = kwargs['deviceName'] + if 'virtualName' in kwargs: + virtual_name = kwargs['virtualName'] + _setter("device_name", device_name) _setter("virtual_name", virtual_name) @@ -1028,7 +1104,9 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], images: Sequence['outputs.ElastigroupImageImage'], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("images", images) @property @@ -1052,7 +1130,9 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], id: str, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("id", id) @property @@ -1100,7 +1180,11 @@ def _configure( _setter: Callable[[Any, Any], None], instance_type: str, weight: int, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'instanceType' in kwargs: + instance_type = kwargs['instanceType'] + _setter("instance_type", instance_type) _setter("weight", weight) @@ -1164,7 +1248,15 @@ def _configure( deployment_preferences: Optional['outputs.ElastigroupIntegrationBeanstalkDeploymentPreferences'] = None, environment_id: Optional[str] = None, managed_actions: Optional['outputs.ElastigroupIntegrationBeanstalkManagedActions'] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'deploymentPreferences' in kwargs: + deployment_preferences = kwargs['deploymentPreferences'] + if 'environmentId' in kwargs: + environment_id = kwargs['environmentId'] + if 'managedActions' in kwargs: + managed_actions = kwargs['managedActions'] + if deployment_preferences is not None: _setter("deployment_preferences", deployment_preferences) if environment_id is not None: @@ -1242,7 +1334,15 @@ def _configure( batch_size_percentage: Optional[int] = None, grace_period: Optional[int] = None, strategy: Optional['outputs.ElastigroupIntegrationBeanstalkDeploymentPreferencesStrategy'] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'automaticRoll' in kwargs: + automatic_roll = kwargs['automaticRoll'] + if 'batchSizePercentage' in kwargs: + batch_size_percentage = kwargs['batchSizePercentage'] + if 'gracePeriod' in kwargs: + grace_period = kwargs['gracePeriod'] + if automatic_roll is not None: _setter("automatic_roll", automatic_roll) if batch_size_percentage is not None: @@ -1321,7 +1421,11 @@ def _configure( _setter: Callable[[Any, Any], None], action: Optional[str] = None, should_drain_instances: Optional[bool] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'shouldDrainInstances' in kwargs: + should_drain_instances = kwargs['shouldDrainInstances'] + if action is not None: _setter("action", action) if should_drain_instances is not None: @@ -1376,7 +1480,11 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], platform_update: Optional['outputs.ElastigroupIntegrationBeanstalkManagedActionsPlatformUpdate'] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'platformUpdate' in kwargs: + platform_update = kwargs['platformUpdate'] + if platform_update is not None: _setter("platform_update", platform_update) @@ -1439,7 +1547,15 @@ def _configure( perform_at: Optional[str] = None, time_window: Optional[str] = None, update_level: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'performAt' in kwargs: + perform_at = kwargs['performAt'] + if 'timeWindow' in kwargs: + time_window = kwargs['timeWindow'] + if 'updateLevel' in kwargs: + update_level = kwargs['updateLevel'] + if perform_at is not None: _setter("perform_at", perform_at) if time_window is not None: @@ -1522,7 +1638,15 @@ def _configure( cleanup_on_failure: bool, deployment_groups: Sequence['outputs.ElastigroupIntegrationCodedeployDeploymentGroup'], terminate_instance_on_failure: bool, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'cleanupOnFailure' in kwargs: + cleanup_on_failure = kwargs['cleanupOnFailure'] + if 'deploymentGroups' in kwargs: + deployment_groups = kwargs['deploymentGroups'] + if 'terminateInstanceOnFailure' in kwargs: + terminate_instance_on_failure = kwargs['terminateInstanceOnFailure'] + _setter("cleanup_on_failure", cleanup_on_failure) _setter("deployment_groups", deployment_groups) _setter("terminate_instance_on_failure", terminate_instance_on_failure) @@ -1596,7 +1720,13 @@ def _configure( _setter: Callable[[Any, Any], None], application_name: str, deployment_group_name: str, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'applicationName' in kwargs: + application_name = kwargs['applicationName'] + if 'deploymentGroupName' in kwargs: + deployment_group_name = kwargs['deploymentGroupName'] + _setter("application_name", application_name) _setter("deployment_group_name", deployment_group_name) @@ -1685,7 +1815,21 @@ def _configure( autoscale_down: Optional['outputs.ElastigroupIntegrationDockerSwarmAutoscaleDown'] = None, autoscale_headroom: Optional['outputs.ElastigroupIntegrationDockerSwarmAutoscaleHeadroom'] = None, autoscale_is_enabled: Optional[bool] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'masterHost' in kwargs: + master_host = kwargs['masterHost'] + if 'masterPort' in kwargs: + master_port = kwargs['masterPort'] + if 'autoscaleCooldown' in kwargs: + autoscale_cooldown = kwargs['autoscaleCooldown'] + if 'autoscaleDown' in kwargs: + autoscale_down = kwargs['autoscaleDown'] + if 'autoscaleHeadroom' in kwargs: + autoscale_headroom = kwargs['autoscaleHeadroom'] + if 'autoscaleIsEnabled' in kwargs: + autoscale_is_enabled = kwargs['autoscaleIsEnabled'] + _setter("master_host", master_host) _setter("master_port", master_port) if autoscale_cooldown is not None: @@ -1784,7 +1928,13 @@ def _configure( _setter: Callable[[Any, Any], None], evaluation_periods: Optional[int] = None, max_scale_down_percentage: Optional[float] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'evaluationPeriods' in kwargs: + evaluation_periods = kwargs['evaluationPeriods'] + if 'maxScaleDownPercentage' in kwargs: + max_scale_down_percentage = kwargs['maxScaleDownPercentage'] + if evaluation_periods is not None: _setter("evaluation_periods", evaluation_periods) if max_scale_down_percentage is not None: @@ -1851,7 +2001,15 @@ def _configure( cpu_per_unit: Optional[int] = None, memory_per_unit: Optional[int] = None, num_of_units: Optional[int] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'cpuPerUnit' in kwargs: + cpu_per_unit = kwargs['cpuPerUnit'] + if 'memoryPerUnit' in kwargs: + memory_per_unit = kwargs['memoryPerUnit'] + if 'numOfUnits' in kwargs: + num_of_units = kwargs['numOfUnits'] + if cpu_per_unit is not None: _setter("cpu_per_unit", cpu_per_unit) if memory_per_unit is not None: @@ -1962,7 +2120,25 @@ def _configure( autoscale_is_enabled: Optional[bool] = None, autoscale_scale_down_non_service_tasks: Optional[bool] = None, batch: Optional['outputs.ElastigroupIntegrationEcsBatch'] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'clusterName' in kwargs: + cluster_name = kwargs['clusterName'] + if 'autoscaleAttributes' in kwargs: + autoscale_attributes = kwargs['autoscaleAttributes'] + if 'autoscaleCooldown' in kwargs: + autoscale_cooldown = kwargs['autoscaleCooldown'] + if 'autoscaleDown' in kwargs: + autoscale_down = kwargs['autoscaleDown'] + if 'autoscaleHeadroom' in kwargs: + autoscale_headroom = kwargs['autoscaleHeadroom'] + if 'autoscaleIsAutoConfig' in kwargs: + autoscale_is_auto_config = kwargs['autoscaleIsAutoConfig'] + if 'autoscaleIsEnabled' in kwargs: + autoscale_is_enabled = kwargs['autoscaleIsEnabled'] + if 'autoscaleScaleDownNonServiceTasks' in kwargs: + autoscale_scale_down_non_service_tasks = kwargs['autoscaleScaleDownNonServiceTasks'] + _setter("cluster_name", cluster_name) if autoscale_attributes is not None: _setter("autoscale_attributes", autoscale_attributes) @@ -2072,7 +2248,9 @@ def _configure( _setter: Callable[[Any, Any], None], key: str, value: str, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("key", key) _setter("value", value) @@ -2128,7 +2306,13 @@ def _configure( _setter: Callable[[Any, Any], None], evaluation_periods: Optional[int] = None, max_scale_down_percentage: Optional[float] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'evaluationPeriods' in kwargs: + evaluation_periods = kwargs['evaluationPeriods'] + if 'maxScaleDownPercentage' in kwargs: + max_scale_down_percentage = kwargs['maxScaleDownPercentage'] + if evaluation_periods is not None: _setter("evaluation_periods", evaluation_periods) if max_scale_down_percentage is not None: @@ -2195,7 +2379,15 @@ def _configure( cpu_per_unit: Optional[int] = None, memory_per_unit: Optional[int] = None, num_of_units: Optional[int] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'cpuPerUnit' in kwargs: + cpu_per_unit = kwargs['cpuPerUnit'] + if 'memoryPerUnit' in kwargs: + memory_per_unit = kwargs['memoryPerUnit'] + if 'numOfUnits' in kwargs: + num_of_units = kwargs['numOfUnits'] + if cpu_per_unit is not None: _setter("cpu_per_unit", cpu_per_unit) if memory_per_unit is not None: @@ -2266,7 +2458,11 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], job_queue_names: Sequence[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'jobQueueNames' in kwargs: + job_queue_names = kwargs['jobQueueNames'] + _setter("job_queue_names", job_queue_names) @property @@ -2299,7 +2495,9 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], runner: Optional['outputs.ElastigroupIntegrationGitlabRunner'] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if runner is not None: _setter("runner", runner) @@ -2344,7 +2542,11 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], is_enabled: Optional[bool] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'isEnabled' in kwargs: + is_enabled = kwargs['isEnabled'] + if is_enabled is not None: _setter("is_enabled", is_enabled) @@ -2452,7 +2654,27 @@ def _configure( cluster_identifier: Optional[str] = None, integration_mode: Optional[str] = None, token: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'apiServer' in kwargs: + api_server = kwargs['apiServer'] + if 'autoscaleCooldown' in kwargs: + autoscale_cooldown = kwargs['autoscaleCooldown'] + if 'autoscaleDown' in kwargs: + autoscale_down = kwargs['autoscaleDown'] + if 'autoscaleHeadroom' in kwargs: + autoscale_headroom = kwargs['autoscaleHeadroom'] + if 'autoscaleIsAutoConfig' in kwargs: + autoscale_is_auto_config = kwargs['autoscaleIsAutoConfig'] + if 'autoscaleIsEnabled' in kwargs: + autoscale_is_enabled = kwargs['autoscaleIsEnabled'] + if 'autoscaleLabels' in kwargs: + autoscale_labels = kwargs['autoscaleLabels'] + if 'clusterIdentifier' in kwargs: + cluster_identifier = kwargs['clusterIdentifier'] + if 'integrationMode' in kwargs: + integration_mode = kwargs['integrationMode'] + if api_server is not None: _setter("api_server", api_server) if autoscale_cooldown is not None: @@ -2602,7 +2824,13 @@ def _configure( _setter: Callable[[Any, Any], None], evaluation_periods: Optional[int] = None, max_scale_down_percentage: Optional[float] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'evaluationPeriods' in kwargs: + evaluation_periods = kwargs['evaluationPeriods'] + if 'maxScaleDownPercentage' in kwargs: + max_scale_down_percentage = kwargs['maxScaleDownPercentage'] + if evaluation_periods is not None: _setter("evaluation_periods", evaluation_periods) if max_scale_down_percentage is not None: @@ -2669,7 +2897,15 @@ def _configure( cpu_per_unit: Optional[int] = None, memory_per_unit: Optional[int] = None, num_of_units: Optional[int] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'cpuPerUnit' in kwargs: + cpu_per_unit = kwargs['cpuPerUnit'] + if 'memoryPerUnit' in kwargs: + memory_per_unit = kwargs['memoryPerUnit'] + if 'numOfUnits' in kwargs: + num_of_units = kwargs['numOfUnits'] + if cpu_per_unit is not None: _setter("cpu_per_unit", cpu_per_unit) if memory_per_unit is not None: @@ -2720,7 +2956,9 @@ def _configure( _setter: Callable[[Any, Any], None], key: str, value: str, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("key", key) _setter("value", value) @@ -2776,7 +3014,11 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], api_server: str, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'apiServer' in kwargs: + api_server = kwargs['apiServer'] + _setter("api_server", api_server) @property @@ -2832,7 +3074,11 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], deployment_id: str, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'deploymentId' in kwargs: + deployment_id = kwargs['deploymentId'] + _setter("deployment_id", deployment_id) @property @@ -2930,7 +3176,25 @@ def _configure( autoscale_down: Optional['outputs.ElastigroupIntegrationNomadAutoscaleDown'] = None, autoscale_headroom: Optional['outputs.ElastigroupIntegrationNomadAutoscaleHeadroom'] = None, autoscale_is_enabled: Optional[bool] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'masterHost' in kwargs: + master_host = kwargs['masterHost'] + if 'masterPort' in kwargs: + master_port = kwargs['masterPort'] + if 'aclToken' in kwargs: + acl_token = kwargs['aclToken'] + if 'autoscaleConstraints' in kwargs: + autoscale_constraints = kwargs['autoscaleConstraints'] + if 'autoscaleCooldown' in kwargs: + autoscale_cooldown = kwargs['autoscaleCooldown'] + if 'autoscaleDown' in kwargs: + autoscale_down = kwargs['autoscaleDown'] + if 'autoscaleHeadroom' in kwargs: + autoscale_headroom = kwargs['autoscaleHeadroom'] + if 'autoscaleIsEnabled' in kwargs: + autoscale_is_enabled = kwargs['autoscaleIsEnabled'] + _setter("master_host", master_host) _setter("master_port", master_port) if acl_token is not None: @@ -3035,7 +3299,9 @@ def _configure( _setter: Callable[[Any, Any], None], key: str, value: str, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("key", key) _setter("value", value) @@ -3085,7 +3351,11 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], evaluation_periods: Optional[int] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'evaluationPeriods' in kwargs: + evaluation_periods = kwargs['evaluationPeriods'] + if evaluation_periods is not None: _setter("evaluation_periods", evaluation_periods) @@ -3142,7 +3412,15 @@ def _configure( cpu_per_unit: Optional[int] = None, memory_per_unit: Optional[int] = None, num_of_units: Optional[int] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'cpuPerUnit' in kwargs: + cpu_per_unit = kwargs['cpuPerUnit'] + if 'memoryPerUnit' in kwargs: + memory_per_unit = kwargs['memoryPerUnit'] + if 'numOfUnits' in kwargs: + num_of_units = kwargs['numOfUnits'] + if cpu_per_unit is not None: _setter("cpu_per_unit", cpu_per_unit) if memory_per_unit is not None: @@ -3228,7 +3506,15 @@ def _configure( master_host: str, secret_key: str, version: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'accessKey' in kwargs: + access_key = kwargs['accessKey'] + if 'masterHost' in kwargs: + master_host = kwargs['masterHost'] + if 'secretKey' in kwargs: + secret_key = kwargs['secretKey'] + _setter("access_key", access_key) _setter("master_host", master_host) _setter("secret_key", secret_key) @@ -3288,7 +3574,9 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], domains: Sequence['outputs.ElastigroupIntegrationRoute53Domain'], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("domains", domains) @property @@ -3350,7 +3638,17 @@ def _configure( record_sets: Sequence['outputs.ElastigroupIntegrationRoute53DomainRecordSet'], record_set_type: Optional[str] = None, spotinst_acct_id: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'hostedZoneId' in kwargs: + hosted_zone_id = kwargs['hostedZoneId'] + if 'recordSets' in kwargs: + record_sets = kwargs['recordSets'] + if 'recordSetType' in kwargs: + record_set_type = kwargs['recordSetType'] + if 'spotinstAcctId' in kwargs: + spotinst_acct_id = kwargs['spotinstAcctId'] + _setter("hosted_zone_id", hosted_zone_id) _setter("record_sets", record_sets) if record_set_type is not None: @@ -3439,7 +3737,13 @@ def _configure( name: str, use_public_dns: Optional[bool] = None, use_public_ip: Optional[bool] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'usePublicDns' in kwargs: + use_public_dns = kwargs['usePublicDns'] + if 'usePublicIp' in kwargs: + use_public_ip = kwargs['usePublicIp'] + _setter("name", name) if use_public_dns is not None: _setter("use_public_dns", use_public_dns) @@ -3531,7 +3835,21 @@ def _configure( weight_strategy: str, default_static_target_group: Optional['outputs.ElastigroupItfDefaultStaticTargetGroup'] = None, migration_healthiness_threshold: Optional[int] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'fixedTargetGroups' in kwargs: + fixed_target_groups = kwargs['fixedTargetGroups'] + if 'loadBalancers' in kwargs: + load_balancers = kwargs['loadBalancers'] + if 'targetGroupConfigs' in kwargs: + target_group_configs = kwargs['targetGroupConfigs'] + if 'weightStrategy' in kwargs: + weight_strategy = kwargs['weightStrategy'] + if 'defaultStaticTargetGroup' in kwargs: + default_static_target_group = kwargs['defaultStaticTargetGroup'] + if 'migrationHealthinessThreshold' in kwargs: + migration_healthiness_threshold = kwargs['migrationHealthinessThreshold'] + _setter("fixed_target_groups", fixed_target_groups) _setter("load_balancers", load_balancers) _setter("target_group_configs", target_group_configs) @@ -3587,7 +3905,9 @@ def _configure( _setter: Callable[[Any, Any], None], arn: str, percentage: float, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("arn", arn) _setter("percentage", percentage) @@ -3636,7 +3956,13 @@ def _configure( _setter: Callable[[Any, Any], None], listener_rules: Sequence['outputs.ElastigroupItfLoadBalancerListenerRule'], load_balancer_arn: str, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'listenerRules' in kwargs: + listener_rules = kwargs['listenerRules'] + if 'loadBalancerArn' in kwargs: + load_balancer_arn = kwargs['loadBalancerArn'] + _setter("listener_rules", listener_rules) _setter("load_balancer_arn", load_balancer_arn) @@ -3685,7 +4011,13 @@ def _configure( _setter: Callable[[Any, Any], None], rule_arn: str, static_target_group: Optional['outputs.ElastigroupItfLoadBalancerListenerRuleStaticTargetGroup'] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'ruleArn' in kwargs: + rule_arn = kwargs['ruleArn'] + if 'staticTargetGroup' in kwargs: + static_target_group = kwargs['staticTargetGroup'] + _setter("rule_arn", rule_arn) if static_target_group is not None: _setter("static_target_group", static_target_group) @@ -3716,7 +4048,9 @@ def _configure( _setter: Callable[[Any, Any], None], arn: str, percentage: float, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("arn", arn) _setter("percentage", percentage) @@ -3815,7 +4149,27 @@ def _configure( protocol_version: Optional[str] = None, tags: Optional[Sequence['outputs.ElastigroupItfTargetGroupConfigTag']] = None, unhealthy_threshold_count: Optional[int] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'healthCheckPath' in kwargs: + health_check_path = kwargs['healthCheckPath'] + if 'vpcId' in kwargs: + vpc_id = kwargs['vpcId'] + if 'healthCheckIntervalSeconds' in kwargs: + health_check_interval_seconds = kwargs['healthCheckIntervalSeconds'] + if 'healthCheckPort' in kwargs: + health_check_port = kwargs['healthCheckPort'] + if 'healthCheckProtocol' in kwargs: + health_check_protocol = kwargs['healthCheckProtocol'] + if 'healthCheckTimeoutSeconds' in kwargs: + health_check_timeout_seconds = kwargs['healthCheckTimeoutSeconds'] + if 'healthyThresholdCount' in kwargs: + healthy_threshold_count = kwargs['healthyThresholdCount'] + if 'protocolVersion' in kwargs: + protocol_version = kwargs['protocolVersion'] + if 'unhealthyThresholdCount' in kwargs: + unhealthy_threshold_count = kwargs['unhealthyThresholdCount'] + _setter("health_check_path", health_check_path) _setter("port", port) _setter("protocol", protocol) @@ -3942,7 +4296,13 @@ def _configure( _setter: Callable[[Any, Any], None], grpc_code: Optional[str] = None, http_code: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'grpcCode' in kwargs: + grpc_code = kwargs['grpcCode'] + if 'httpCode' in kwargs: + http_code = kwargs['httpCode'] + if grpc_code is not None: _setter("grpc_code", grpc_code) if http_code is not None: @@ -3993,7 +4353,13 @@ def _configure( _setter: Callable[[Any, Any], None], tag_key: str, tag_value: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'tagKey' in kwargs: + tag_key = kwargs['tagKey'] + if 'tagValue' in kwargs: + tag_value = kwargs['tagValue'] + _setter("tag_key", tag_key) if tag_value is not None: _setter("tag_value", tag_value) @@ -4053,7 +4419,15 @@ def _configure( http_tokens: str, http_put_response_hop_limit: Optional[int] = None, instance_metadata_tags: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'httpTokens' in kwargs: + http_tokens = kwargs['httpTokens'] + if 'httpPutResponseHopLimit' in kwargs: + http_put_response_hop_limit = kwargs['httpPutResponseHopLimit'] + if 'instanceMetadataTags' in kwargs: + instance_metadata_tags = kwargs['instanceMetadataTags'] + _setter("http_tokens", http_tokens) if http_put_response_hop_limit is not None: _setter("http_put_response_hop_limit", http_put_response_hop_limit) @@ -4129,7 +4503,13 @@ def _configure( _setter: Callable[[Any, Any], None], balancer_id: str, target_set_id: str, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'balancerId' in kwargs: + balancer_id = kwargs['balancerId'] + if 'targetSetId' in kwargs: + target_set_id = kwargs['targetSetId'] + _setter("balancer_id", balancer_id) _setter("target_set_id", target_set_id) @@ -4175,7 +4555,9 @@ def _configure( _setter: Callable[[Any, Any], None], expressions: Optional[Sequence['outputs.ElastigroupMultipleMetricsExpression']] = None, metrics: Optional[Sequence['outputs.ElastigroupMultipleMetricsMetric']] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if expressions is not None: _setter("expressions", expressions) if metrics is not None: @@ -4217,7 +4599,9 @@ def _configure( _setter: Callable[[Any, Any], None], expression: str, name: str, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("expression", expression) _setter("name", name) @@ -4296,7 +4680,13 @@ def _configure( extended_statistic: Optional[str] = None, statistic: Optional[str] = None, unit: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'metricName' in kwargs: + metric_name = kwargs['metricName'] + if 'extendedStatistic' in kwargs: + extended_statistic = kwargs['extendedStatistic'] + _setter("metric_name", metric_name) _setter("name", name) _setter("namespace", namespace) @@ -4385,7 +4775,9 @@ def _configure( _setter: Callable[[Any, Any], None], name: str, value: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("name", name) if value is not None: _setter("value", value) @@ -4485,7 +4877,23 @@ def _configure( network_interface_id: Optional[str] = None, private_ip_address: Optional[str] = None, secondary_private_ip_address_count: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'deviceIndex' in kwargs: + device_index = kwargs['deviceIndex'] + if 'associateIpv6Address' in kwargs: + associate_ipv6_address = kwargs['associateIpv6Address'] + if 'associatePublicIpAddress' in kwargs: + associate_public_ip_address = kwargs['associatePublicIpAddress'] + if 'deleteOnTermination' in kwargs: + delete_on_termination = kwargs['deleteOnTermination'] + if 'networkInterfaceId' in kwargs: + network_interface_id = kwargs['networkInterfaceId'] + if 'privateIpAddress' in kwargs: + private_ip_address = kwargs['privateIpAddress'] + if 'secondaryPrivateIpAddressCount' in kwargs: + secondary_private_ip_address_count = kwargs['secondaryPrivateIpAddressCount'] + _setter("device_index", device_index) if associate_ipv6_address is not None: _setter("associate_ipv6_address", associate_ipv6_address) @@ -4653,7 +5061,27 @@ def _configure( excluded_instance_types: Optional[Sequence[str]] = None, required_gpu_maximum: Optional[int] = None, required_gpu_minimum: Optional[int] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'requiredMemoryMaximum' in kwargs: + required_memory_maximum = kwargs['requiredMemoryMaximum'] + if 'requiredMemoryMinimum' in kwargs: + required_memory_minimum = kwargs['requiredMemoryMinimum'] + if 'requiredVcpuMaximum' in kwargs: + required_vcpu_maximum = kwargs['requiredVcpuMaximum'] + if 'requiredVcpuMinimum' in kwargs: + required_vcpu_minimum = kwargs['requiredVcpuMinimum'] + if 'excludedInstanceFamilies' in kwargs: + excluded_instance_families = kwargs['excludedInstanceFamilies'] + if 'excludedInstanceGenerations' in kwargs: + excluded_instance_generations = kwargs['excludedInstanceGenerations'] + if 'excludedInstanceTypes' in kwargs: + excluded_instance_types = kwargs['excludedInstanceTypes'] + if 'requiredGpuMaximum' in kwargs: + required_gpu_maximum = kwargs['requiredGpuMaximum'] + if 'requiredGpuMinimum' in kwargs: + required_gpu_minimum = kwargs['requiredGpuMinimum'] + _setter("required_memory_maximum", required_memory_maximum) _setter("required_memory_minimum", required_memory_minimum) _setter("required_vcpu_maximum", required_vcpu_maximum) @@ -4792,7 +5220,17 @@ def _configure( should_tag_enis: Optional[bool] = None, should_tag_snapshots: Optional[bool] = None, should_tag_volumes: Optional[bool] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'shouldTagAmis' in kwargs: + should_tag_amis = kwargs['shouldTagAmis'] + if 'shouldTagEnis' in kwargs: + should_tag_enis = kwargs['shouldTagEnis'] + if 'shouldTagSnapshots' in kwargs: + should_tag_snapshots = kwargs['shouldTagSnapshots'] + if 'shouldTagVolumes' in kwargs: + should_tag_volumes = kwargs['shouldTagVolumes'] + if should_tag_amis is not None: _setter("should_tag_amis", should_tag_amis) if should_tag_enis is not None: @@ -4873,7 +5311,13 @@ def _configure( _setter: Callable[[Any, Any], None], perform_at: str, time_windows: Optional[Sequence[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'performAt' in kwargs: + perform_at = kwargs['performAt'] + if 'timeWindows' in kwargs: + time_windows = kwargs['timeWindows'] + _setter("perform_at", perform_at) if time_windows is not None: _setter("time_windows", time_windows) @@ -5027,7 +5471,25 @@ def _configure( target: Optional[str] = None, threshold: Optional[float] = None, unit: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'metricName' in kwargs: + metric_name = kwargs['metricName'] + if 'policyName' in kwargs: + policy_name = kwargs['policyName'] + if 'actionType' in kwargs: + action_type = kwargs['actionType'] + if 'evaluationPeriods' in kwargs: + evaluation_periods = kwargs['evaluationPeriods'] + if 'isEnabled' in kwargs: + is_enabled = kwargs['isEnabled'] + if 'maxTargetCapacity' in kwargs: + max_target_capacity = kwargs['maxTargetCapacity'] + if 'minTargetCapacity' in kwargs: + min_target_capacity = kwargs['minTargetCapacity'] + if 'stepAdjustments' in kwargs: + step_adjustments = kwargs['stepAdjustments'] + _setter("metric_name", metric_name) _setter("namespace", namespace) _setter("policy_name", policy_name) @@ -5260,7 +5722,9 @@ def _configure( _setter: Callable[[Any, Any], None], name: str, value: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("name", name) if value is not None: _setter("value", value) @@ -5308,7 +5772,9 @@ def _configure( _setter: Callable[[Any, Any], None], action: 'outputs.ElastigroupScalingDownPolicyStepAdjustmentAction', threshold: int, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("action", action) _setter("threshold", threshold) @@ -5394,7 +5860,13 @@ def _configure( min_target_capacity: Optional[str] = None, minimum: Optional[str] = None, target: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'maxTargetCapacity' in kwargs: + max_target_capacity = kwargs['maxTargetCapacity'] + if 'minTargetCapacity' in kwargs: + min_target_capacity = kwargs['minTargetCapacity'] + _setter("type", type) if adjustment is not None: _setter("adjustment", adjustment) @@ -5504,7 +5976,13 @@ def _configure( _setter: Callable[[Any, Any], None], terminate_at_end_of_billing_hour: Optional[bool] = None, termination_policy: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'terminateAtEndOfBillingHour' in kwargs: + terminate_at_end_of_billing_hour = kwargs['terminateAtEndOfBillingHour'] + if 'terminationPolicy' in kwargs: + termination_policy = kwargs['terminationPolicy'] + if terminate_at_end_of_billing_hour is not None: _setter("terminate_at_end_of_billing_hour", terminate_at_end_of_billing_hour) if termination_policy is not None: @@ -5627,7 +6105,19 @@ def _configure( source: Optional[str] = None, statistic: Optional[str] = None, unit: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'metricName' in kwargs: + metric_name = kwargs['metricName'] + if 'policyName' in kwargs: + policy_name = kwargs['policyName'] + if 'evaluationPeriods' in kwargs: + evaluation_periods = kwargs['evaluationPeriods'] + if 'maxCapacityPerScale' in kwargs: + max_capacity_per_scale = kwargs['maxCapacityPerScale'] + if 'predictiveMode' in kwargs: + predictive_mode = kwargs['predictiveMode'] + _setter("metric_name", metric_name) _setter("namespace", namespace) _setter("policy_name", policy_name) @@ -5787,7 +6277,9 @@ def _configure( _setter: Callable[[Any, Any], None], name: str, value: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("name", name) if value is not None: _setter("value", value) @@ -5942,7 +6434,25 @@ def _configure( target: Optional[str] = None, threshold: Optional[float] = None, unit: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'metricName' in kwargs: + metric_name = kwargs['metricName'] + if 'policyName' in kwargs: + policy_name = kwargs['policyName'] + if 'actionType' in kwargs: + action_type = kwargs['actionType'] + if 'evaluationPeriods' in kwargs: + evaluation_periods = kwargs['evaluationPeriods'] + if 'isEnabled' in kwargs: + is_enabled = kwargs['isEnabled'] + if 'maxTargetCapacity' in kwargs: + max_target_capacity = kwargs['maxTargetCapacity'] + if 'minTargetCapacity' in kwargs: + min_target_capacity = kwargs['minTargetCapacity'] + if 'stepAdjustments' in kwargs: + step_adjustments = kwargs['stepAdjustments'] + _setter("metric_name", metric_name) _setter("namespace", namespace) _setter("policy_name", policy_name) @@ -6176,7 +6686,9 @@ def _configure( _setter: Callable[[Any, Any], None], name: str, value: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("name", name) if value is not None: _setter("value", value) @@ -6224,7 +6736,9 @@ def _configure( _setter: Callable[[Any, Any], None], action: 'outputs.ElastigroupScalingUpPolicyStepAdjustmentAction', threshold: int, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("action", action) _setter("threshold", threshold) @@ -6310,7 +6824,13 @@ def _configure( min_target_capacity: Optional[str] = None, minimum: Optional[str] = None, target: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'maxTargetCapacity' in kwargs: + max_target_capacity = kwargs['maxTargetCapacity'] + if 'minTargetCapacity' in kwargs: + min_target_capacity = kwargs['minTargetCapacity'] + _setter("type", type) if adjustment is not None: _setter("adjustment", adjustment) @@ -6500,7 +7020,35 @@ def _configure( scale_target_capacity: Optional[str] = None, start_time: Optional[str] = None, target_capacity: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'taskType' in kwargs: + task_type = kwargs['taskType'] + if 'adjustmentPercentage' in kwargs: + adjustment_percentage = kwargs['adjustmentPercentage'] + if 'batchSizePercentage' in kwargs: + batch_size_percentage = kwargs['batchSizePercentage'] + if 'cronExpression' in kwargs: + cron_expression = kwargs['cronExpression'] + if 'gracePeriod' in kwargs: + grace_period = kwargs['gracePeriod'] + if 'isEnabled' in kwargs: + is_enabled = kwargs['isEnabled'] + if 'maxCapacity' in kwargs: + max_capacity = kwargs['maxCapacity'] + if 'minCapacity' in kwargs: + min_capacity = kwargs['minCapacity'] + if 'scaleMaxCapacity' in kwargs: + scale_max_capacity = kwargs['scaleMaxCapacity'] + if 'scaleMinCapacity' in kwargs: + scale_min_capacity = kwargs['scaleMinCapacity'] + if 'scaleTargetCapacity' in kwargs: + scale_target_capacity = kwargs['scaleTargetCapacity'] + if 'startTime' in kwargs: + start_time = kwargs['startTime'] + if 'targetCapacity' in kwargs: + target_capacity = kwargs['targetCapacity'] + _setter("task_type", task_type) if adjustment is not None: _setter("adjustment", adjustment) @@ -6683,7 +7231,9 @@ def _configure( _setter: Callable[[Any, Any], None], name: str, timeout: Optional[int] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("name", name) if timeout is not None: _setter("timeout", timeout) @@ -6767,7 +7317,17 @@ def _configure( should_delete_network_interfaces: Optional[bool] = None, should_delete_snapshots: Optional[bool] = None, should_delete_volumes: Optional[bool] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'shouldDeleteImages' in kwargs: + should_delete_images = kwargs['shouldDeleteImages'] + if 'shouldDeleteNetworkInterfaces' in kwargs: + should_delete_network_interfaces = kwargs['shouldDeleteNetworkInterfaces'] + if 'shouldDeleteSnapshots' in kwargs: + should_delete_snapshots = kwargs['shouldDeleteSnapshots'] + if 'shouldDeleteVolumes' in kwargs: + should_delete_volumes = kwargs['shouldDeleteVolumes'] + if should_delete_images is not None: _setter("should_delete_images", should_delete_images) if should_delete_network_interfaces is not None: @@ -6858,7 +7418,11 @@ def _configure( _setter: Callable[[Any, Any], None], stateful_instance_id: str, type: str, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'statefulInstanceId' in kwargs: + stateful_instance_id = kwargs['statefulInstanceId'] + _setter("stateful_instance_id", stateful_instance_id) _setter("type", type) @@ -6903,7 +7467,9 @@ def _configure( _setter: Callable[[Any, Any], None], key: Optional[str] = None, value: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if key is not None: _setter("key", key) if value is not None: @@ -6973,7 +7539,17 @@ def _configure( should_roll: bool, auto_apply_tags: Optional[bool] = None, roll_config: Optional['outputs.ElastigroupUpdatePolicyRollConfig'] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'shouldResumeStateful' in kwargs: + should_resume_stateful = kwargs['shouldResumeStateful'] + if 'shouldRoll' in kwargs: + should_roll = kwargs['shouldRoll'] + if 'autoApplyTags' in kwargs: + auto_apply_tags = kwargs['autoApplyTags'] + if 'rollConfig' in kwargs: + roll_config = kwargs['rollConfig'] + _setter("should_resume_stateful", should_resume_stateful) _setter("should_roll", should_roll) if auto_apply_tags is not None: @@ -7074,7 +7650,19 @@ def _configure( strategy: Optional['outputs.ElastigroupUpdatePolicyRollConfigStrategy'] = None, wait_for_roll_percentage: Optional[float] = None, wait_for_roll_timeout: Optional[int] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'batchSizePercentage' in kwargs: + batch_size_percentage = kwargs['batchSizePercentage'] + if 'gracePeriod' in kwargs: + grace_period = kwargs['gracePeriod'] + if 'healthCheckType' in kwargs: + health_check_type = kwargs['healthCheckType'] + if 'waitForRollPercentage' in kwargs: + wait_for_roll_percentage = kwargs['waitForRollPercentage'] + if 'waitForRollTimeout' in kwargs: + wait_for_roll_timeout = kwargs['waitForRollTimeout'] + _setter("batch_size_percentage", batch_size_percentage) if grace_period is not None: _setter("grace_period", grace_period) @@ -7184,7 +7772,15 @@ def _configure( batch_min_healthy_percentage: Optional[int] = None, on_failure: Optional['outputs.ElastigroupUpdatePolicyRollConfigStrategyOnFailure'] = None, should_drain_instances: Optional[bool] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'batchMinHealthyPercentage' in kwargs: + batch_min_healthy_percentage = kwargs['batchMinHealthyPercentage'] + if 'onFailure' in kwargs: + on_failure = kwargs['onFailure'] + if 'shouldDrainInstances' in kwargs: + should_drain_instances = kwargs['shouldDrainInstances'] + _setter("action", action) if batch_min_healthy_percentage is not None: _setter("batch_min_healthy_percentage", batch_min_healthy_percentage) @@ -7285,7 +7881,19 @@ def _configure( draining_timeout: Optional[int] = None, should_decrement_target_capacity: Optional[bool] = None, should_handle_all_batches: Optional[bool] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'actionType' in kwargs: + action_type = kwargs['actionType'] + if 'batchNum' in kwargs: + batch_num = kwargs['batchNum'] + if 'drainingTimeout' in kwargs: + draining_timeout = kwargs['drainingTimeout'] + if 'shouldDecrementTargetCapacity' in kwargs: + should_decrement_target_capacity = kwargs['shouldDecrementTargetCapacity'] + if 'shouldHandleAllBatches' in kwargs: + should_handle_all_batches = kwargs['shouldHandleAllBatches'] + _setter("action_type", action_type) if batch_num is not None: _setter("batch_num", batch_num) @@ -7370,7 +7978,11 @@ def _configure( _setter: Callable[[Any, Any], None], device_name: str, ebs: Optional['outputs.ManagedInstanceBlockDeviceMappingEbs'] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'deviceName' in kwargs: + device_name = kwargs['deviceName'] + _setter("device_name", device_name) if ebs is not None: _setter("ebs", ebs) @@ -7431,7 +8043,15 @@ def _configure( throughput: Optional[int] = None, volume_size: Optional[int] = None, volume_type: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'deleteOnTermination' in kwargs: + delete_on_termination = kwargs['deleteOnTermination'] + if 'volumeSize' in kwargs: + volume_size = kwargs['volumeSize'] + if 'volumeType' in kwargs: + volume_type = kwargs['volumeType'] + if delete_on_termination is not None: _setter("delete_on_termination", delete_on_termination) if iops is not None: @@ -7523,7 +8143,21 @@ def _configure( should_delete_snapshots: Optional[bool] = None, should_delete_volumes: Optional[bool] = None, should_terminate_instance: Optional[bool] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'amiBackupShouldDeleteImages' in kwargs: + ami_backup_should_delete_images = kwargs['amiBackupShouldDeleteImages'] + if 'deallocationConfigShouldDeleteImages' in kwargs: + deallocation_config_should_delete_images = kwargs['deallocationConfigShouldDeleteImages'] + if 'shouldDeleteNetworkInterfaces' in kwargs: + should_delete_network_interfaces = kwargs['shouldDeleteNetworkInterfaces'] + if 'shouldDeleteSnapshots' in kwargs: + should_delete_snapshots = kwargs['shouldDeleteSnapshots'] + if 'shouldDeleteVolumes' in kwargs: + should_delete_volumes = kwargs['shouldDeleteVolumes'] + if 'shouldTerminateInstance' in kwargs: + should_terminate_instance = kwargs['shouldTerminateInstance'] + if ami_backup_should_delete_images is not None: _setter("ami_backup_should_delete_images", ami_backup_should_delete_images) if deallocation_config_should_delete_images is not None: @@ -7580,7 +8214,9 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], domains: Sequence['outputs.ManagedInstanceIntegrationRoute53Domain'], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("domains", domains) @property @@ -7633,7 +8269,17 @@ def _configure( record_sets: Sequence['outputs.ManagedInstanceIntegrationRoute53DomainRecordSet'], record_set_type: Optional[str] = None, spotinst_acct_id: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'hostedZoneId' in kwargs: + hosted_zone_id = kwargs['hostedZoneId'] + if 'recordSets' in kwargs: + record_sets = kwargs['recordSets'] + if 'recordSetType' in kwargs: + record_set_type = kwargs['recordSetType'] + if 'spotinstAcctId' in kwargs: + spotinst_acct_id = kwargs['spotinstAcctId'] + _setter("hosted_zone_id", hosted_zone_id) _setter("record_sets", record_sets) if record_set_type is not None: @@ -7699,7 +8345,13 @@ def _configure( name: str, use_public_dns: Optional[bool] = None, use_public_ip: Optional[bool] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'usePublicDns' in kwargs: + use_public_dns = kwargs['usePublicDns'] + if 'usePublicIp' in kwargs: + use_public_ip = kwargs['usePublicIp'] + _setter("name", name) if use_public_dns is not None: _setter("use_public_dns", use_public_dns) @@ -7775,7 +8427,17 @@ def _configure( balancer_id: Optional[str] = None, name: Optional[str] = None, target_set_id: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'autoWeight' in kwargs: + auto_weight = kwargs['autoWeight'] + if 'azAwareness' in kwargs: + az_awareness = kwargs['azAwareness'] + if 'balancerId' in kwargs: + balancer_id = kwargs['balancerId'] + if 'targetSetId' in kwargs: + target_set_id = kwargs['targetSetId'] + _setter("type", type) if arn is not None: _setter("arn", arn) @@ -7838,7 +8500,9 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], type: str, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("type", type) @property @@ -7886,7 +8550,15 @@ def _configure( device_index: str, associate_ipv6_address: Optional[bool] = None, associate_public_ip_address: Optional[bool] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'deviceIndex' in kwargs: + device_index = kwargs['deviceIndex'] + if 'associateIpv6Address' in kwargs: + associate_ipv6_address = kwargs['associateIpv6Address'] + if 'associatePublicIpAddress' in kwargs: + associate_public_ip_address = kwargs['associatePublicIpAddress'] + _setter("device_index", device_index) if associate_ipv6_address is not None: _setter("associate_ipv6_address", associate_ipv6_address) @@ -7953,7 +8625,17 @@ def _configure( should_tag_enis: Optional[bool] = None, should_tag_snapshots: Optional[bool] = None, should_tag_volumes: Optional[bool] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'shouldTagAmis' in kwargs: + should_tag_amis = kwargs['shouldTagAmis'] + if 'shouldTagEnis' in kwargs: + should_tag_enis = kwargs['shouldTagEnis'] + if 'shouldTagSnapshots' in kwargs: + should_tag_snapshots = kwargs['shouldTagSnapshots'] + if 'shouldTagVolumes' in kwargs: + should_tag_volumes = kwargs['shouldTagVolumes'] + if should_tag_amis is not None: _setter("should_tag_amis", should_tag_amis) if should_tag_enis is not None: @@ -8013,7 +8695,11 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], perform_at: str, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'performAt' in kwargs: + perform_at = kwargs['performAt'] + _setter("perform_at", perform_at) @property @@ -8069,7 +8755,17 @@ def _configure( frequency: Optional[str] = None, is_enabled: Optional[bool] = None, start_time: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'taskType' in kwargs: + task_type = kwargs['taskType'] + if 'cronExpression' in kwargs: + cron_expression = kwargs['cronExpression'] + if 'isEnabled' in kwargs: + is_enabled = kwargs['isEnabled'] + if 'startTime' in kwargs: + start_time = kwargs['startTime'] + _setter("task_type", task_type) if cron_expression is not None: _setter("cron_expression", cron_expression) @@ -8121,7 +8817,9 @@ def _configure( _setter: Callable[[Any, Any], None], key: Optional[str] = None, value: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if key is not None: _setter("key", key) if value is not None: @@ -8161,7 +8859,9 @@ def _configure( name: str, args: Optional[Sequence[str]] = None, version: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("name", name) if args is not None: _setter("args", args) @@ -8212,7 +8912,9 @@ def _configure( _setter: Callable[[Any, Any], None], bucket: str, key: str, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("bucket", bucket) _setter("key", key) @@ -8252,7 +8954,9 @@ def _configure( _setter: Callable[[Any, Any], None], bucket: str, key: str, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("bucket", bucket) _setter("key", key) @@ -8321,7 +9025,15 @@ def _configure( volume_type: str, iops: Optional[int] = None, volumes_per_instance: Optional[int] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'sizeInGb' in kwargs: + size_in_gb = kwargs['sizeInGb'] + if 'volumeType' in kwargs: + volume_type = kwargs['volumeType'] + if 'volumesPerInstance' in kwargs: + volumes_per_instance = kwargs['volumesPerInstance'] + _setter("size_in_gb", size_in_gb) _setter("volume_type", volume_type) if iops is not None: @@ -8472,7 +9184,21 @@ def _configure( period: Optional[int] = None, statistic: Optional[str] = None, target: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'metricName' in kwargs: + metric_name = kwargs['metricName'] + if 'policyName' in kwargs: + policy_name = kwargs['policyName'] + if 'actionType' in kwargs: + action_type = kwargs['actionType'] + if 'evaluationPeriods' in kwargs: + evaluation_periods = kwargs['evaluationPeriods'] + if 'maxTargetCapacity' in kwargs: + max_target_capacity = kwargs['maxTargetCapacity'] + if 'minTargetCapacity' in kwargs: + min_target_capacity = kwargs['minTargetCapacity'] + _setter("metric_name", metric_name) _setter("namespace", namespace) _setter("policy_name", policy_name) @@ -8760,7 +9486,21 @@ def _configure( period: Optional[int] = None, statistic: Optional[str] = None, target: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'metricName' in kwargs: + metric_name = kwargs['metricName'] + if 'policyName' in kwargs: + policy_name = kwargs['policyName'] + if 'actionType' in kwargs: + action_type = kwargs['actionType'] + if 'evaluationPeriods' in kwargs: + evaluation_periods = kwargs['evaluationPeriods'] + if 'maxTargetCapacity' in kwargs: + max_target_capacity = kwargs['maxTargetCapacity'] + if 'minTargetCapacity' in kwargs: + min_target_capacity = kwargs['minTargetCapacity'] + _setter("metric_name", metric_name) _setter("namespace", namespace) _setter("policy_name", policy_name) @@ -8976,7 +9716,13 @@ def _configure( _setter: Callable[[Any, Any], None], instance_type: str, weighted_capacity: int, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'instanceType' in kwargs: + instance_type = kwargs['instanceType'] + if 'weightedCapacity' in kwargs: + weighted_capacity = kwargs['weightedCapacity'] + _setter("instance_type", instance_type) _setter("weighted_capacity", weighted_capacity) @@ -9045,7 +9791,15 @@ def _configure( volume_type: str, iops: Optional[int] = None, volumes_per_instance: Optional[int] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'sizeInGb' in kwargs: + size_in_gb = kwargs['sizeInGb'] + if 'volumeType' in kwargs: + volume_type = kwargs['volumeType'] + if 'volumesPerInstance' in kwargs: + volumes_per_instance = kwargs['volumesPerInstance'] + _setter("size_in_gb", size_in_gb) _setter("volume_type", volume_type) if iops is not None: @@ -9122,7 +9876,11 @@ def _configure( _setter: Callable[[Any, Any], None], timeout: int, timeout_action: str, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'timeoutAction' in kwargs: + timeout_action = kwargs['timeoutAction'] + _setter("timeout", timeout) _setter("timeout_action", timeout_action) @@ -9209,7 +9967,21 @@ def _configure( is_enabled: Optional[bool] = None, max_capacity: Optional[str] = None, min_capacity: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'instanceGroupType' in kwargs: + instance_group_type = kwargs['instanceGroupType'] + if 'taskType' in kwargs: + task_type = kwargs['taskType'] + if 'desiredCapacity' in kwargs: + desired_capacity = kwargs['desiredCapacity'] + if 'isEnabled' in kwargs: + is_enabled = kwargs['isEnabled'] + if 'maxCapacity' in kwargs: + max_capacity = kwargs['maxCapacity'] + if 'minCapacity' in kwargs: + min_capacity = kwargs['minCapacity'] + _setter("cron", cron) _setter("instance_group_type", instance_group_type) _setter("task_type", task_type) @@ -9298,7 +10070,9 @@ def _configure( _setter: Callable[[Any, Any], None], bucket: str, key: str, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("bucket", bucket) _setter("key", key) @@ -9338,7 +10112,9 @@ def _configure( _setter: Callable[[Any, Any], None], key: str, value: str, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("key", key) _setter("value", value) @@ -9407,7 +10183,15 @@ def _configure( volume_type: str, iops: Optional[int] = None, volumes_per_instance: Optional[int] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'sizeInGb' in kwargs: + size_in_gb = kwargs['sizeInGb'] + if 'volumeType' in kwargs: + volume_type = kwargs['volumeType'] + if 'volumesPerInstance' in kwargs: + volumes_per_instance = kwargs['volumesPerInstance'] + _setter("size_in_gb", size_in_gb) _setter("volume_type", volume_type) if iops is not None: @@ -9558,7 +10342,21 @@ def _configure( period: Optional[int] = None, statistic: Optional[str] = None, target: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'metricName' in kwargs: + metric_name = kwargs['metricName'] + if 'policyName' in kwargs: + policy_name = kwargs['policyName'] + if 'actionType' in kwargs: + action_type = kwargs['actionType'] + if 'evaluationPeriods' in kwargs: + evaluation_periods = kwargs['evaluationPeriods'] + if 'maxTargetCapacity' in kwargs: + max_target_capacity = kwargs['maxTargetCapacity'] + if 'minTargetCapacity' in kwargs: + min_target_capacity = kwargs['minTargetCapacity'] + _setter("metric_name", metric_name) _setter("namespace", namespace) _setter("policy_name", policy_name) @@ -9846,7 +10644,21 @@ def _configure( period: Optional[int] = None, statistic: Optional[str] = None, target: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'metricName' in kwargs: + metric_name = kwargs['metricName'] + if 'policyName' in kwargs: + policy_name = kwargs['policyName'] + if 'actionType' in kwargs: + action_type = kwargs['actionType'] + if 'evaluationPeriods' in kwargs: + evaluation_periods = kwargs['evaluationPeriods'] + if 'maxTargetCapacity' in kwargs: + max_target_capacity = kwargs['maxTargetCapacity'] + if 'minTargetCapacity' in kwargs: + min_target_capacity = kwargs['minTargetCapacity'] + _setter("metric_name", metric_name) _setter("namespace", namespace) _setter("policy_name", policy_name) @@ -10036,7 +10848,9 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], statements: Sequence['outputs.MrScalarTerminationPolicyStatement'], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("statements", statements) @property @@ -10107,7 +10921,13 @@ def _configure( period: Optional[int] = None, statistic: Optional[str] = None, unit: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'metricName' in kwargs: + metric_name = kwargs['metricName'] + if 'evaluationPeriods' in kwargs: + evaluation_periods = kwargs['evaluationPeriods'] + _setter("metric_name", metric_name) _setter("namespace", namespace) _setter("threshold", threshold) @@ -10256,7 +11076,27 @@ def _configure( enable_automatic_and_manual_headroom: Optional[bool] = None, extended_resource_definitions: Optional[Sequence[str]] = None, resource_limits: Optional['outputs.OceanAutoscalerResourceLimits'] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'autoHeadroomPercentage' in kwargs: + auto_headroom_percentage = kwargs['autoHeadroomPercentage'] + if 'autoscaleCooldown' in kwargs: + autoscale_cooldown = kwargs['autoscaleCooldown'] + if 'autoscaleDown' in kwargs: + autoscale_down = kwargs['autoscaleDown'] + if 'autoscaleHeadroom' in kwargs: + autoscale_headroom = kwargs['autoscaleHeadroom'] + if 'autoscaleIsAutoConfig' in kwargs: + autoscale_is_auto_config = kwargs['autoscaleIsAutoConfig'] + if 'autoscaleIsEnabled' in kwargs: + autoscale_is_enabled = kwargs['autoscaleIsEnabled'] + if 'enableAutomaticAndManualHeadroom' in kwargs: + enable_automatic_and_manual_headroom = kwargs['enableAutomaticAndManualHeadroom'] + if 'extendedResourceDefinitions' in kwargs: + extended_resource_definitions = kwargs['extendedResourceDefinitions'] + if 'resourceLimits' in kwargs: + resource_limits = kwargs['resourceLimits'] + if auto_headroom_percentage is not None: _setter("auto_headroom_percentage", auto_headroom_percentage) if autoscale_cooldown is not None: @@ -10356,7 +11196,13 @@ def _configure( _setter: Callable[[Any, Any], None], evaluation_periods: Optional[int] = None, max_scale_down_percentage: Optional[float] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'evaluationPeriods' in kwargs: + evaluation_periods = kwargs['evaluationPeriods'] + if 'maxScaleDownPercentage' in kwargs: + max_scale_down_percentage = kwargs['maxScaleDownPercentage'] + if evaluation_periods is not None: _setter("evaluation_periods", evaluation_periods) if max_scale_down_percentage is not None: @@ -10417,7 +11263,17 @@ def _configure( gpu_per_unit: Optional[int] = None, memory_per_unit: Optional[int] = None, num_of_units: Optional[int] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'cpuPerUnit' in kwargs: + cpu_per_unit = kwargs['cpuPerUnit'] + if 'gpuPerUnit' in kwargs: + gpu_per_unit = kwargs['gpuPerUnit'] + if 'memoryPerUnit' in kwargs: + memory_per_unit = kwargs['memoryPerUnit'] + if 'numOfUnits' in kwargs: + num_of_units = kwargs['numOfUnits'] + if cpu_per_unit is not None: _setter("cpu_per_unit", cpu_per_unit) if gpu_per_unit is not None: @@ -10486,7 +11342,13 @@ def _configure( _setter: Callable[[Any, Any], None], max_memory_gib: Optional[int] = None, max_vcpu: Optional[int] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'maxMemoryGib' in kwargs: + max_memory_gib = kwargs['maxMemoryGib'] + if 'maxVcpu' in kwargs: + max_vcpu = kwargs['maxVcpu'] + if max_memory_gib is not None: _setter("max_memory_gib", max_memory_gib) if max_vcpu is not None: @@ -10545,7 +11407,11 @@ def _configure( _setter: Callable[[Any, Any], None], device_name: Optional[str] = None, ebs: Optional['outputs.OceanBlockDeviceMappingEbs'] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'deviceName' in kwargs: + device_name = kwargs['deviceName'] + if device_name is not None: _setter("device_name", device_name) if ebs is not None: @@ -10648,7 +11514,23 @@ def _configure( throughput: Optional[int] = None, volume_size: Optional[int] = None, volume_type: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'deleteOnTermination' in kwargs: + delete_on_termination = kwargs['deleteOnTermination'] + if 'dynamicIops' in kwargs: + dynamic_iops = kwargs['dynamicIops'] + if 'dynamicVolumeSize' in kwargs: + dynamic_volume_size = kwargs['dynamicVolumeSize'] + if 'kmsKeyId' in kwargs: + kms_key_id = kwargs['kmsKeyId'] + if 'snapshotId' in kwargs: + snapshot_id = kwargs['snapshotId'] + if 'volumeSize' in kwargs: + volume_size = kwargs['volumeSize'] + if 'volumeType' in kwargs: + volume_type = kwargs['volumeType'] + if delete_on_termination is not None: _setter("delete_on_termination", delete_on_termination) if dynamic_iops is not None: @@ -10792,7 +11674,13 @@ def _configure( base_size: int, resource: str, size_per_resource_unit: int, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'baseSize' in kwargs: + base_size = kwargs['baseSize'] + if 'sizePerResourceUnit' in kwargs: + size_per_resource_unit = kwargs['sizePerResourceUnit'] + _setter("base_size", base_size) _setter("resource", resource) _setter("size_per_resource_unit", size_per_resource_unit) @@ -10860,7 +11748,13 @@ def _configure( base_size: int, resource: str, size_per_resource_unit: int, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'baseSize' in kwargs: + base_size = kwargs['baseSize'] + if 'sizePerResourceUnit' in kwargs: + size_per_resource_unit = kwargs['sizePerResourceUnit'] + _setter("base_size", base_size) _setter("resource", resource) _setter("size_per_resource_unit", size_per_resource_unit) @@ -10919,7 +11813,11 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], availability_vs_cost: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'availabilityVsCost' in kwargs: + availability_vs_cost = kwargs['availabilityVsCost'] + if availability_vs_cost is not None: _setter("availability_vs_cost", availability_vs_cost) @@ -11066,7 +11964,41 @@ def _configure( min_vcpu: Optional[int] = None, root_device_types: Optional[Sequence[str]] = None, virtualization_types: Optional[Sequence[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'diskTypes' in kwargs: + disk_types = kwargs['diskTypes'] + if 'excludeFamilies' in kwargs: + exclude_families = kwargs['excludeFamilies'] + if 'excludeMetal' in kwargs: + exclude_metal = kwargs['excludeMetal'] + if 'includeFamilies' in kwargs: + include_families = kwargs['includeFamilies'] + if 'isEnaSupported' in kwargs: + is_ena_supported = kwargs['isEnaSupported'] + if 'maxGpu' in kwargs: + max_gpu = kwargs['maxGpu'] + if 'maxMemoryGib' in kwargs: + max_memory_gib = kwargs['maxMemoryGib'] + if 'maxNetworkPerformance' in kwargs: + max_network_performance = kwargs['maxNetworkPerformance'] + if 'maxVcpu' in kwargs: + max_vcpu = kwargs['maxVcpu'] + if 'minEnis' in kwargs: + min_enis = kwargs['minEnis'] + if 'minGpu' in kwargs: + min_gpu = kwargs['minGpu'] + if 'minMemoryGib' in kwargs: + min_memory_gib = kwargs['minMemoryGib'] + if 'minNetworkPerformance' in kwargs: + min_network_performance = kwargs['minNetworkPerformance'] + if 'minVcpu' in kwargs: + min_vcpu = kwargs['minVcpu'] + if 'rootDeviceTypes' in kwargs: + root_device_types = kwargs['rootDeviceTypes'] + if 'virtualizationTypes' in kwargs: + virtualization_types = kwargs['virtualizationTypes'] + if architectures is not None: _setter("architectures", architectures) if categories is not None: @@ -11297,7 +12229,13 @@ def _configure( _setter: Callable[[Any, Any], None], http_tokens: str, http_put_response_hop_limit: Optional[int] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'httpTokens' in kwargs: + http_tokens = kwargs['httpTokens'] + if 'httpPutResponseHopLimit' in kwargs: + http_put_response_hop_limit = kwargs['httpPutResponseHopLimit'] + _setter("http_tokens", http_tokens) if http_put_response_hop_limit is not None: _setter("http_put_response_hop_limit", http_put_response_hop_limit) @@ -11351,7 +12289,11 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], max_scale_down_percentage: Optional[float] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'maxScaleDownPercentage' in kwargs: + max_scale_down_percentage = kwargs['maxScaleDownPercentage'] + if max_scale_down_percentage is not None: _setter("max_scale_down_percentage", max_scale_down_percentage) @@ -11414,7 +12356,17 @@ def _configure( cpu_per_unit: Optional[int] = None, gpu_per_unit: Optional[int] = None, memory_per_unit: Optional[int] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'numOfUnits' in kwargs: + num_of_units = kwargs['numOfUnits'] + if 'cpuPerUnit' in kwargs: + cpu_per_unit = kwargs['cpuPerUnit'] + if 'gpuPerUnit' in kwargs: + gpu_per_unit = kwargs['gpuPerUnit'] + if 'memoryPerUnit' in kwargs: + memory_per_unit = kwargs['memoryPerUnit'] + _setter("num_of_units", num_of_units) if cpu_per_unit is not None: _setter("cpu_per_unit", cpu_per_unit) @@ -11488,7 +12440,11 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], auto_headroom_percentage: Optional[int] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'autoHeadroomPercentage' in kwargs: + auto_headroom_percentage = kwargs['autoHeadroomPercentage'] + if auto_headroom_percentage is not None: _setter("auto_headroom_percentage", auto_headroom_percentage) @@ -11548,7 +12504,15 @@ def _configure( ebs: Optional['outputs.OceanLaunchSpecBlockDeviceMappingEbs'] = None, no_device: Optional[str] = None, virtual_name: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'deviceName' in kwargs: + device_name = kwargs['deviceName'] + if 'noDevice' in kwargs: + no_device = kwargs['noDevice'] + if 'virtualName' in kwargs: + virtual_name = kwargs['virtualName'] + if device_name is not None: _setter("device_name", device_name) if ebs is not None: @@ -11662,7 +12626,21 @@ def _configure( throughput: Optional[int] = None, volume_size: Optional[int] = None, volume_type: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'deleteOnTermination' in kwargs: + delete_on_termination = kwargs['deleteOnTermination'] + if 'dynamicVolumeSize' in kwargs: + dynamic_volume_size = kwargs['dynamicVolumeSize'] + if 'kmsKeyId' in kwargs: + kms_key_id = kwargs['kmsKeyId'] + if 'snapshotId' in kwargs: + snapshot_id = kwargs['snapshotId'] + if 'volumeSize' in kwargs: + volume_size = kwargs['volumeSize'] + if 'volumeType' in kwargs: + volume_type = kwargs['volumeType'] + if delete_on_termination is not None: _setter("delete_on_termination", delete_on_termination) if dynamic_volume_size is not None: @@ -11797,7 +12775,13 @@ def _configure( base_size: int, resource: str, size_per_resource_unit: int, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'baseSize' in kwargs: + base_size = kwargs['baseSize'] + if 'sizePerResourceUnit' in kwargs: + size_per_resource_unit = kwargs['sizePerResourceUnit'] + _setter("base_size", base_size) _setter("resource", resource) _setter("size_per_resource_unit", size_per_resource_unit) @@ -11859,7 +12843,11 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], initial_nodes: Optional[int] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'initialNodes' in kwargs: + initial_nodes = kwargs['initialNodes'] + if initial_nodes is not None: _setter("initial_nodes", initial_nodes) @@ -11910,7 +12898,13 @@ def _configure( _setter: Callable[[Any, Any], None], force_delete: bool, delete_nodes: Optional[bool] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'forceDelete' in kwargs: + force_delete = kwargs['forceDelete'] + if 'deleteNodes' in kwargs: + delete_nodes = kwargs['deleteNodes'] + _setter("force_delete", force_delete) if delete_nodes is not None: _setter("delete_nodes", delete_nodes) @@ -11964,7 +12958,11 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], tag_selector: Optional['outputs.OceanLaunchSpecElasticIpPoolTagSelector'] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'tagSelector' in kwargs: + tag_selector = kwargs['tagSelector'] + if tag_selector is not None: _setter("tag_selector", tag_selector) @@ -12015,7 +13013,13 @@ def _configure( _setter: Callable[[Any, Any], None], tag_key: str, tag_value: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'tagKey' in kwargs: + tag_key = kwargs['tagKey'] + if 'tagValue' in kwargs: + tag_value = kwargs['tagValue'] + _setter("tag_key", tag_key) if tag_value is not None: _setter("tag_value", tag_value) @@ -12069,7 +13073,11 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], image_id: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'imageId' in kwargs: + image_id = kwargs['imageId'] + if image_id is not None: _setter("image_id", image_id) @@ -12120,7 +13128,13 @@ def _configure( _setter: Callable[[Any, Any], None], http_tokens: str, http_put_response_hop_limit: Optional[int] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'httpTokens' in kwargs: + http_tokens = kwargs['httpTokens'] + if 'httpPutResponseHopLimit' in kwargs: + http_put_response_hop_limit = kwargs['httpPutResponseHopLimit'] + _setter("http_tokens", http_tokens) if http_put_response_hop_limit is not None: _setter("http_put_response_hop_limit", http_put_response_hop_limit) @@ -12275,7 +13289,41 @@ def _configure( min_vcpu: Optional[int] = None, root_device_types: Optional[Sequence[str]] = None, virtualization_types: Optional[Sequence[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'diskTypes' in kwargs: + disk_types = kwargs['diskTypes'] + if 'excludeFamilies' in kwargs: + exclude_families = kwargs['excludeFamilies'] + if 'excludeMetal' in kwargs: + exclude_metal = kwargs['excludeMetal'] + if 'includeFamilies' in kwargs: + include_families = kwargs['includeFamilies'] + if 'isEnaSupported' in kwargs: + is_ena_supported = kwargs['isEnaSupported'] + if 'maxGpu' in kwargs: + max_gpu = kwargs['maxGpu'] + if 'maxMemoryGib' in kwargs: + max_memory_gib = kwargs['maxMemoryGib'] + if 'maxNetworkPerformance' in kwargs: + max_network_performance = kwargs['maxNetworkPerformance'] + if 'maxVcpu' in kwargs: + max_vcpu = kwargs['maxVcpu'] + if 'minEnis' in kwargs: + min_enis = kwargs['minEnis'] + if 'minGpu' in kwargs: + min_gpu = kwargs['minGpu'] + if 'minMemoryGib' in kwargs: + min_memory_gib = kwargs['minMemoryGib'] + if 'minNetworkPerformance' in kwargs: + min_network_performance = kwargs['minNetworkPerformance'] + if 'minVcpu' in kwargs: + min_vcpu = kwargs['minVcpu'] + if 'rootDeviceTypes' in kwargs: + root_device_types = kwargs['rootDeviceTypes'] + if 'virtualizationTypes' in kwargs: + virtualization_types = kwargs['virtualizationTypes'] + if categories is not None: _setter("categories", categories) if disk_types is not None: @@ -12480,7 +13528,9 @@ def _configure( _setter: Callable[[Any, Any], None], key: str, value: str, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("key", key) _setter("value", value) @@ -12539,7 +13589,13 @@ def _configure( _setter: Callable[[Any, Any], None], max_instance_count: Optional[int] = None, min_instance_count: Optional[int] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'maxInstanceCount' in kwargs: + max_instance_count = kwargs['maxInstanceCount'] + if 'minInstanceCount' in kwargs: + min_instance_count = kwargs['minInstanceCount'] + if max_instance_count is not None: _setter("max_instance_count", max_instance_count) if min_instance_count is not None: @@ -12600,7 +13656,13 @@ def _configure( _setter: Callable[[Any, Any], None], time_windows: Sequence[str], is_enabled: Optional[bool] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'timeWindows' in kwargs: + time_windows = kwargs['timeWindows'] + if 'isEnabled' in kwargs: + is_enabled = kwargs['isEnabled'] + _setter("time_windows", time_windows) if is_enabled is not None: _setter("is_enabled", is_enabled) @@ -12672,7 +13734,17 @@ def _configure( is_enabled: bool, task_type: str, task_headrooms: Optional[Sequence['outputs.OceanLaunchSpecSchedulingTaskTaskHeadroom']] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'cronExpression' in kwargs: + cron_expression = kwargs['cronExpression'] + if 'isEnabled' in kwargs: + is_enabled = kwargs['isEnabled'] + if 'taskType' in kwargs: + task_type = kwargs['taskType'] + if 'taskHeadrooms' in kwargs: + task_headrooms = kwargs['taskHeadrooms'] + _setter("cron_expression", cron_expression) _setter("is_enabled", is_enabled) _setter("task_type", task_type) @@ -12762,7 +13834,17 @@ def _configure( cpu_per_unit: Optional[int] = None, gpu_per_unit: Optional[int] = None, memory_per_unit: Optional[int] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'numOfUnits' in kwargs: + num_of_units = kwargs['numOfUnits'] + if 'cpuPerUnit' in kwargs: + cpu_per_unit = kwargs['cpuPerUnit'] + if 'gpuPerUnit' in kwargs: + gpu_per_unit = kwargs['gpuPerUnit'] + if 'memoryPerUnit' in kwargs: + memory_per_unit = kwargs['memoryPerUnit'] + _setter("num_of_units", num_of_units) if cpu_per_unit is not None: _setter("cpu_per_unit", cpu_per_unit) @@ -12836,7 +13918,11 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], spot_percentage: Optional[int] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'spotPercentage' in kwargs: + spot_percentage = kwargs['spotPercentage'] + if spot_percentage is not None: _setter("spot_percentage", spot_percentage) @@ -12868,7 +13954,9 @@ def _configure( _setter: Callable[[Any, Any], None], key: str, value: str, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("key", key) _setter("value", value) @@ -12912,7 +14000,9 @@ def _configure( effect: str, key: str, value: str, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("effect", effect) _setter("key", key) _setter("value", value) @@ -12976,7 +14066,13 @@ def _configure( _setter: Callable[[Any, Any], None], should_roll: bool, roll_config: Optional['outputs.OceanLaunchSpecUpdatePolicyRollConfig'] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'shouldRoll' in kwargs: + should_roll = kwargs['shouldRoll'] + if 'rollConfig' in kwargs: + roll_config = kwargs['rollConfig'] + _setter("should_roll", should_roll) if roll_config is not None: _setter("roll_config", roll_config) @@ -13021,7 +14117,11 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], batch_size_percentage: int, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'batchSizePercentage' in kwargs: + batch_size_percentage = kwargs['batchSizePercentage'] + _setter("batch_size_percentage", batch_size_percentage) @property @@ -13053,7 +14153,9 @@ def _configure( arn: Optional[str] = None, name: Optional[str] = None, type: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if arn is not None: _setter("arn", arn) if name is not None: @@ -13101,7 +14203,9 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], export: Optional['outputs.OceanLoggingExport'] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if export is not None: _setter("export", export) @@ -13129,7 +14233,9 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], s3s: Optional[Sequence['outputs.OceanLoggingExportS3']] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if s3s is not None: _setter("s3s", s3s) @@ -13157,7 +14263,9 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], id: str, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("id", id) @property @@ -13201,7 +14309,11 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], should_tag_volumes: Optional[bool] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'shouldTagVolumes' in kwargs: + should_tag_volumes = kwargs['shouldTagVolumes'] + if should_tag_volumes is not None: _setter("should_tag_volumes", should_tag_volumes) @@ -13246,7 +14358,11 @@ def _configure( _setter: Callable[[Any, Any], None], shutdown_hours: Optional['outputs.OceanScheduledTaskShutdownHours'] = None, tasks: Optional[Sequence['outputs.OceanScheduledTaskTask']] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'shutdownHours' in kwargs: + shutdown_hours = kwargs['shutdownHours'] + if shutdown_hours is not None: _setter("shutdown_hours", shutdown_hours) if tasks is not None: @@ -13297,7 +14413,13 @@ def _configure( _setter: Callable[[Any, Any], None], time_windows: Sequence[str], is_enabled: Optional[bool] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'timeWindows' in kwargs: + time_windows = kwargs['timeWindows'] + if 'isEnabled' in kwargs: + is_enabled = kwargs['isEnabled'] + _setter("time_windows", time_windows) if is_enabled is not None: _setter("is_enabled", is_enabled) @@ -13352,7 +14474,15 @@ def _configure( cron_expression: str, is_enabled: bool, task_type: str, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'cronExpression' in kwargs: + cron_expression = kwargs['cronExpression'] + if 'isEnabled' in kwargs: + is_enabled = kwargs['isEnabled'] + if 'taskType' in kwargs: + task_type = kwargs['taskType'] + _setter("cron_expression", cron_expression) _setter("is_enabled", is_enabled) _setter("task_type", task_type) @@ -13392,7 +14522,9 @@ def _configure( _setter: Callable[[Any, Any], None], key: str, value: str, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("key", key) _setter("value", value) @@ -13457,7 +14589,17 @@ def _configure( auto_apply_tags: Optional[bool] = None, conditioned_roll: Optional[bool] = None, roll_config: Optional['outputs.OceanUpdatePolicyRollConfig'] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'shouldRoll' in kwargs: + should_roll = kwargs['shouldRoll'] + if 'autoApplyTags' in kwargs: + auto_apply_tags = kwargs['autoApplyTags'] + if 'conditionedRoll' in kwargs: + conditioned_roll = kwargs['conditionedRoll'] + if 'rollConfig' in kwargs: + roll_config = kwargs['rollConfig'] + _setter("should_roll", should_roll) if auto_apply_tags is not None: _setter("auto_apply_tags", auto_apply_tags) @@ -13531,7 +14673,17 @@ def _configure( batch_min_healthy_percentage: Optional[int] = None, launch_spec_ids: Optional[Sequence[str]] = None, respect_pdb: Optional[bool] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'batchSizePercentage' in kwargs: + batch_size_percentage = kwargs['batchSizePercentage'] + if 'batchMinHealthyPercentage' in kwargs: + batch_min_healthy_percentage = kwargs['batchMinHealthyPercentage'] + if 'launchSpecIds' in kwargs: + launch_spec_ids = kwargs['launchSpecIds'] + if 'respectPdb' in kwargs: + respect_pdb = kwargs['respectPdb'] + _setter("batch_size_percentage", batch_size_percentage) if batch_min_healthy_percentage is not None: _setter("batch_min_healthy_percentage", batch_min_healthy_percentage) @@ -13576,7 +14728,9 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], name: str, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("name", name) @property diff --git a/sdk/python/pulumi_spotinst/aws/suspension.py b/sdk/python/pulumi_spotinst/aws/suspension.py index 157c852e..64dc286d 100644 --- a/sdk/python/pulumi_spotinst/aws/suspension.py +++ b/sdk/python/pulumi_spotinst/aws/suspension.py @@ -33,7 +33,11 @@ def _configure( _setter: Callable[[Any, Any], None], group_id: pulumi.Input[str], suspensions: pulumi.Input[Sequence[pulumi.Input['SuspensionSuspensionArgs']]], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'groupId' in kwargs: + group_id = kwargs['groupId'] + _setter("group_id", group_id) _setter("suspensions", suspensions) @@ -82,7 +86,11 @@ def _configure( _setter: Callable[[Any, Any], None], group_id: Optional[pulumi.Input[str]] = None, suspensions: Optional[pulumi.Input[Sequence[pulumi.Input['SuspensionSuspensionArgs']]]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'groupId' in kwargs: + group_id = kwargs['groupId'] + if group_id is not None: _setter("group_id", group_id) if suspensions is not None: diff --git a/sdk/python/pulumi_spotinst/azure/_inputs.py b/sdk/python/pulumi_spotinst/azure/_inputs.py index 5d4a8a43..344168b9 100644 --- a/sdk/python/pulumi_spotinst/azure/_inputs.py +++ b/sdk/python/pulumi_spotinst/azure/_inputs.py @@ -90,7 +90,15 @@ def _configure( health_check_type: pulumi.Input[str], auto_healing: Optional[pulumi.Input[bool]] = None, grace_period: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'healthCheckType' in kwargs: + health_check_type = kwargs['healthCheckType'] + if 'autoHealing' in kwargs: + auto_healing = kwargs['autoHealing'] + if 'gracePeriod' in kwargs: + grace_period = kwargs['gracePeriod'] + _setter("health_check_type", health_check_type) if auto_healing is not None: _setter("auto_healing", auto_healing) @@ -140,7 +148,9 @@ def _configure( _setter: Callable[[Any, Any], None], customs: Optional[pulumi.Input[Sequence[pulumi.Input['ElastigroupImageCustomArgs']]]] = None, marketplaces: Optional[pulumi.Input[Sequence[pulumi.Input['ElastigroupImageMarketplaceArgs']]]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if customs is not None: _setter("customs", customs) if marketplaces is not None: @@ -183,7 +193,13 @@ def _configure( _setter: Callable[[Any, Any], None], image_name: pulumi.Input[str], resource_group_name: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'imageName' in kwargs: + image_name = kwargs['imageName'] + if 'resourceGroupName' in kwargs: + resource_group_name = kwargs['resourceGroupName'] + _setter("image_name", image_name) _setter("resource_group_name", resource_group_name) @@ -227,7 +243,9 @@ def _configure( offer: pulumi.Input[str], publisher: pulumi.Input[str], sku: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("offer", offer) _setter("publisher", publisher) _setter("sku", sku) @@ -272,7 +290,11 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], cluster_identifier: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'clusterIdentifier' in kwargs: + cluster_identifier = kwargs['clusterIdentifier'] + _setter("cluster_identifier", cluster_identifier) @property @@ -297,7 +319,11 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], deployment_id: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'deploymentId' in kwargs: + deployment_id = kwargs['deploymentId'] + _setter("deployment_id", deployment_id) @property @@ -331,7 +357,15 @@ def _configure( auto_weight: Optional[pulumi.Input[bool]] = None, balancer_id: Optional[pulumi.Input[str]] = None, target_set_id: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'autoWeight' in kwargs: + auto_weight = kwargs['autoWeight'] + if 'balancerId' in kwargs: + balancer_id = kwargs['balancerId'] + if 'targetSetId' in kwargs: + target_set_id = kwargs['targetSetId'] + _setter("type", type) if auto_weight is not None: _setter("auto_weight", auto_weight) @@ -395,7 +429,13 @@ def _configure( user_name: pulumi.Input[str], password: Optional[pulumi.Input[str]] = None, ssh_public_key: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'userName' in kwargs: + user_name = kwargs['userName'] + if 'sshPublicKey' in kwargs: + ssh_public_key = kwargs['sshPublicKey'] + _setter("user_name", user_name) if password is not None: _setter("password", password) @@ -449,7 +489,11 @@ def _configure( _setter: Callable[[Any, Any], None], name: pulumi.Input[str], resource_group_name: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'resourceGroupName' in kwargs: + resource_group_name = kwargs['resourceGroupName'] + _setter("name", name) _setter("resource_group_name", resource_group_name) @@ -505,7 +549,19 @@ def _configure( virtual_network_name: pulumi.Input[str], additional_ip_configs: Optional[pulumi.Input[Sequence[pulumi.Input['ElastigroupNetworkAdditionalIpConfigArgs']]]] = None, assign_public_ip: Optional[pulumi.Input[bool]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'resourceGroupName' in kwargs: + resource_group_name = kwargs['resourceGroupName'] + if 'subnetName' in kwargs: + subnet_name = kwargs['subnetName'] + if 'virtualNetworkName' in kwargs: + virtual_network_name = kwargs['virtualNetworkName'] + if 'additionalIpConfigs' in kwargs: + additional_ip_configs = kwargs['additionalIpConfigs'] + if 'assignPublicIp' in kwargs: + assign_public_ip = kwargs['assignPublicIp'] + _setter("resource_group_name", resource_group_name) _setter("subnet_name", subnet_name) _setter("virtual_network_name", virtual_network_name) @@ -581,7 +637,11 @@ def _configure( _setter: Callable[[Any, Any], None], name: pulumi.Input[str], private_ip_version: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'privateIpVersion' in kwargs: + private_ip_version = kwargs['privateIpVersion'] + _setter("name", name) if private_ip_version is not None: _setter("private_ip_version", private_ip_version) @@ -671,7 +731,21 @@ def _configure( statistic: Optional[pulumi.Input[str]] = None, target: Optional[pulumi.Input[str]] = None, unit: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'metricName' in kwargs: + metric_name = kwargs['metricName'] + if 'policyName' in kwargs: + policy_name = kwargs['policyName'] + if 'actionType' in kwargs: + action_type = kwargs['actionType'] + if 'evaluationPeriods' in kwargs: + evaluation_periods = kwargs['evaluationPeriods'] + if 'maxTargetCapacity' in kwargs: + max_target_capacity = kwargs['maxTargetCapacity'] + if 'minTargetCapacity' in kwargs: + min_target_capacity = kwargs['minTargetCapacity'] + _setter("metric_name", metric_name) _setter("namespace", namespace) _setter("policy_name", policy_name) @@ -887,7 +961,9 @@ def _configure( _setter: Callable[[Any, Any], None], name: pulumi.Input[str], value: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("name", name) if value is not None: _setter("value", value) @@ -980,7 +1056,21 @@ def _configure( statistic: Optional[pulumi.Input[str]] = None, target: Optional[pulumi.Input[str]] = None, unit: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'metricName' in kwargs: + metric_name = kwargs['metricName'] + if 'policyName' in kwargs: + policy_name = kwargs['policyName'] + if 'actionType' in kwargs: + action_type = kwargs['actionType'] + if 'evaluationPeriods' in kwargs: + evaluation_periods = kwargs['evaluationPeriods'] + if 'maxTargetCapacity' in kwargs: + max_target_capacity = kwargs['maxTargetCapacity'] + if 'minTargetCapacity' in kwargs: + min_target_capacity = kwargs['minTargetCapacity'] + _setter("metric_name", metric_name) _setter("namespace", namespace) _setter("policy_name", policy_name) @@ -1196,7 +1286,9 @@ def _configure( _setter: Callable[[Any, Any], None], name: pulumi.Input[str], value: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("name", name) if value is not None: _setter("value", value) @@ -1265,7 +1357,27 @@ def _configure( scale_max_capacity: Optional[pulumi.Input[str]] = None, scale_min_capacity: Optional[pulumi.Input[str]] = None, scale_target_capacity: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'cronExpression' in kwargs: + cron_expression = kwargs['cronExpression'] + if 'taskType' in kwargs: + task_type = kwargs['taskType'] + if 'adjustmentPercentage' in kwargs: + adjustment_percentage = kwargs['adjustmentPercentage'] + if 'batchSizePercentage' in kwargs: + batch_size_percentage = kwargs['batchSizePercentage'] + if 'gracePeriod' in kwargs: + grace_period = kwargs['gracePeriod'] + if 'isEnabled' in kwargs: + is_enabled = kwargs['isEnabled'] + if 'scaleMaxCapacity' in kwargs: + scale_max_capacity = kwargs['scaleMaxCapacity'] + if 'scaleMinCapacity' in kwargs: + scale_min_capacity = kwargs['scaleMinCapacity'] + if 'scaleTargetCapacity' in kwargs: + scale_target_capacity = kwargs['scaleTargetCapacity'] + _setter("cron_expression", cron_expression) _setter("task_type", task_type) if adjustment is not None: @@ -1394,7 +1506,15 @@ def _configure( draining_timeout: Optional[pulumi.Input[int]] = None, low_priority_percentage: Optional[pulumi.Input[int]] = None, od_count: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'drainingTimeout' in kwargs: + draining_timeout = kwargs['drainingTimeout'] + if 'lowPriorityPercentage' in kwargs: + low_priority_percentage = kwargs['lowPriorityPercentage'] + if 'odCount' in kwargs: + od_count = kwargs['odCount'] + if draining_timeout is not None: _setter("draining_timeout", draining_timeout) if low_priority_percentage is not None: @@ -1445,7 +1565,13 @@ def _configure( _setter: Callable[[Any, Any], None], should_roll: pulumi.Input[bool], roll_config: Optional[pulumi.Input['ElastigroupUpdatePolicyRollConfigArgs']] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'shouldRoll' in kwargs: + should_roll = kwargs['shouldRoll'] + if 'rollConfig' in kwargs: + roll_config = kwargs['rollConfig'] + _setter("should_roll", should_roll) if roll_config is not None: _setter("roll_config", roll_config) @@ -1487,7 +1613,15 @@ def _configure( batch_size_percentage: pulumi.Input[int], grace_period: Optional[pulumi.Input[int]] = None, health_check_type: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'batchSizePercentage' in kwargs: + batch_size_percentage = kwargs['batchSizePercentage'] + if 'gracePeriod' in kwargs: + grace_period = kwargs['gracePeriod'] + if 'healthCheckType' in kwargs: + health_check_type = kwargs['healthCheckType'] + _setter("batch_size_percentage", batch_size_percentage) if grace_period is not None: _setter("grace_period", grace_period) @@ -1549,7 +1683,17 @@ def _configure( autoscale_headroom: Optional[pulumi.Input['OceanAutoscalerAutoscaleHeadroomArgs']] = None, autoscale_is_enabled: Optional[pulumi.Input[bool]] = None, resource_limits: Optional[pulumi.Input['OceanAutoscalerResourceLimitsArgs']] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'autoscaleDown' in kwargs: + autoscale_down = kwargs['autoscaleDown'] + if 'autoscaleHeadroom' in kwargs: + autoscale_headroom = kwargs['autoscaleHeadroom'] + if 'autoscaleIsEnabled' in kwargs: + autoscale_is_enabled = kwargs['autoscaleIsEnabled'] + if 'resourceLimits' in kwargs: + resource_limits = kwargs['resourceLimits'] + if autoscale_down is not None: _setter("autoscale_down", autoscale_down) if autoscale_headroom is not None: @@ -1623,7 +1767,11 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], max_scale_down_percentage: Optional[pulumi.Input[float]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'maxScaleDownPercentage' in kwargs: + max_scale_down_percentage = kwargs['maxScaleDownPercentage'] + if max_scale_down_percentage is not None: _setter("max_scale_down_percentage", max_scale_down_percentage) @@ -1655,7 +1803,9 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], automatic: Optional[pulumi.Input['OceanAutoscalerAutoscaleHeadroomAutomaticArgs']] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if automatic is not None: _setter("automatic", automatic) @@ -1691,7 +1841,11 @@ def _configure( _setter: Callable[[Any, Any], None], is_enabled: Optional[pulumi.Input[bool]] = None, percentage: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'isEnabled' in kwargs: + is_enabled = kwargs['isEnabled'] + if is_enabled is not None: _setter("is_enabled", is_enabled) if percentage is not None: @@ -1741,7 +1895,13 @@ def _configure( _setter: Callable[[Any, Any], None], max_memory_gib: Optional[pulumi.Input[int]] = None, max_vcpu: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'maxMemoryGib' in kwargs: + max_memory_gib = kwargs['maxMemoryGib'] + if 'maxVcpu' in kwargs: + max_vcpu = kwargs['maxVcpu'] + if max_memory_gib is not None: _setter("max_memory_gib", max_memory_gib) if max_vcpu is not None: @@ -1803,7 +1963,13 @@ def _configure( name: Optional[pulumi.Input[str]] = None, publisher: Optional[pulumi.Input[str]] = None, type: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'apiVersion' in kwargs: + api_version = kwargs['apiVersion'] + if 'minorVersionAutoUpgrade' in kwargs: + minor_version_auto_upgrade = kwargs['minorVersionAutoUpgrade'] + if api_version is not None: _setter("api_version", api_version) if minor_version_auto_upgrade is not None: @@ -1891,7 +2057,11 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], grace_period: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'gracePeriod' in kwargs: + grace_period = kwargs['gracePeriod'] + if grace_period is not None: _setter("grace_period", grace_period) @@ -1923,7 +2093,9 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], marketplaces: Optional[pulumi.Input[Sequence[pulumi.Input['OceanImageMarketplaceArgs']]]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if marketplaces is not None: _setter("marketplaces", marketplaces) @@ -1967,7 +2139,9 @@ def _configure( publisher: Optional[pulumi.Input[str]] = None, sku: Optional[pulumi.Input[str]] = None, version: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if offer is not None: _setter("offer", offer) if publisher is not None: @@ -2057,7 +2231,15 @@ def _configure( name: Optional[pulumi.Input[str]] = None, resource_group_name: Optional[pulumi.Input[str]] = None, type: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'backendPoolNames' in kwargs: + backend_pool_names = kwargs['backendPoolNames'] + if 'loadBalancerSku' in kwargs: + load_balancer_sku = kwargs['loadBalancerSku'] + if 'resourceGroupName' in kwargs: + resource_group_name = kwargs['resourceGroupName'] + if backend_pool_names is not None: _setter("backend_pool_names", backend_pool_names) if load_balancer_sku is not None: @@ -2149,7 +2331,11 @@ def _configure( _setter: Callable[[Any, Any], None], name: pulumi.Input[str], resource_group_name: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'resourceGroupName' in kwargs: + resource_group_name = kwargs['resourceGroupName'] + _setter("name", name) _setter("resource_group_name", resource_group_name) @@ -2201,7 +2387,15 @@ def _configure( network_interfaces: Optional[pulumi.Input[Sequence[pulumi.Input['OceanNetworkNetworkInterfaceArgs']]]] = None, resource_group_name: Optional[pulumi.Input[str]] = None, virtual_network_name: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'networkInterfaces' in kwargs: + network_interfaces = kwargs['networkInterfaces'] + if 'resourceGroupName' in kwargs: + resource_group_name = kwargs['resourceGroupName'] + if 'virtualNetworkName' in kwargs: + virtual_network_name = kwargs['virtualNetworkName'] + if network_interfaces is not None: _setter("network_interfaces", network_interfaces) if resource_group_name is not None: @@ -2276,7 +2470,19 @@ def _configure( is_primary: Optional[pulumi.Input[bool]] = None, security_group: Optional[pulumi.Input['OceanNetworkNetworkInterfaceSecurityGroupArgs']] = None, subnet_name: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'additionalIpConfigs' in kwargs: + additional_ip_configs = kwargs['additionalIpConfigs'] + if 'assignPublicIp' in kwargs: + assign_public_ip = kwargs['assignPublicIp'] + if 'isPrimary' in kwargs: + is_primary = kwargs['isPrimary'] + if 'securityGroup' in kwargs: + security_group = kwargs['securityGroup'] + if 'subnetName' in kwargs: + subnet_name = kwargs['subnetName'] + if additional_ip_configs is not None: _setter("additional_ip_configs", additional_ip_configs) if assign_public_ip is not None: @@ -2365,7 +2571,11 @@ def _configure( _setter: Callable[[Any, Any], None], name: Optional[pulumi.Input[str]] = None, private_ip_version: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'privateIpVersion' in kwargs: + private_ip_version = kwargs['privateIpVersion'] + if name is not None: _setter("name", name) if private_ip_version is not None: @@ -2415,7 +2625,11 @@ def _configure( _setter: Callable[[Any, Any], None], name: Optional[pulumi.Input[str]] = None, resource_group_name: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'resourceGroupName' in kwargs: + resource_group_name = kwargs['resourceGroupName'] + if name is not None: _setter("name", name) if resource_group_name is not None: @@ -2467,7 +2681,17 @@ def _configure( autoscale_headroom: Optional[pulumi.Input['OceanNpAutoscalerAutoscaleHeadroomArgs']] = None, autoscale_is_enabled: Optional[pulumi.Input[bool]] = None, resource_limits: Optional[pulumi.Input['OceanNpAutoscalerResourceLimitsArgs']] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'autoscaleDown' in kwargs: + autoscale_down = kwargs['autoscaleDown'] + if 'autoscaleHeadroom' in kwargs: + autoscale_headroom = kwargs['autoscaleHeadroom'] + if 'autoscaleIsEnabled' in kwargs: + autoscale_is_enabled = kwargs['autoscaleIsEnabled'] + if 'resourceLimits' in kwargs: + resource_limits = kwargs['resourceLimits'] + if autoscale_down is not None: _setter("autoscale_down", autoscale_down) if autoscale_headroom is not None: @@ -2526,7 +2750,11 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], max_scale_down_percentage: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'maxScaleDownPercentage' in kwargs: + max_scale_down_percentage = kwargs['maxScaleDownPercentage'] + if max_scale_down_percentage is not None: _setter("max_scale_down_percentage", max_scale_down_percentage) @@ -2552,7 +2780,9 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], automatic: Optional[pulumi.Input['OceanNpAutoscalerAutoscaleHeadroomAutomaticArgs']] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if automatic is not None: _setter("automatic", automatic) @@ -2578,7 +2808,9 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], percentage: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if percentage is not None: _setter("percentage", percentage) @@ -2607,7 +2839,13 @@ def _configure( _setter: Callable[[Any, Any], None], max_memory_gib: Optional[pulumi.Input[int]] = None, max_vcpu: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'maxMemoryGib' in kwargs: + max_memory_gib = kwargs['maxMemoryGib'] + if 'maxVcpu' in kwargs: + max_vcpu = kwargs['maxVcpu'] + if max_memory_gib is not None: _setter("max_memory_gib", max_memory_gib) if max_vcpu is not None: @@ -2635,48 +2873,118 @@ def max_vcpu(self, value: Optional[pulumi.Input[int]]): @pulumi.input_type class OceanNpFiltersArgs: def __init__(__self__, *, + accelerated_networking: Optional[pulumi.Input[str]] = None, architectures: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + disk_performance: Optional[pulumi.Input[str]] = None, exclude_series: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + max_gpu: Optional[pulumi.Input[float]] = None, max_memory_gib: Optional[pulumi.Input[float]] = None, max_vcpu: Optional[pulumi.Input[int]] = None, + min_data: Optional[pulumi.Input[int]] = None, + min_gpu: Optional[pulumi.Input[float]] = None, min_memory_gib: Optional[pulumi.Input[float]] = None, + min_nics: Optional[pulumi.Input[int]] = None, min_vcpu: Optional[pulumi.Input[int]] = None, - series: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): + series: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + vm_types: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): OceanNpFiltersArgs._configure( lambda key, value: pulumi.set(__self__, key, value), + accelerated_networking=accelerated_networking, architectures=architectures, + disk_performance=disk_performance, exclude_series=exclude_series, + max_gpu=max_gpu, max_memory_gib=max_memory_gib, max_vcpu=max_vcpu, + min_data=min_data, + min_gpu=min_gpu, min_memory_gib=min_memory_gib, + min_nics=min_nics, min_vcpu=min_vcpu, series=series, + vm_types=vm_types, ) @staticmethod def _configure( _setter: Callable[[Any, Any], None], + accelerated_networking: Optional[pulumi.Input[str]] = None, architectures: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + disk_performance: Optional[pulumi.Input[str]] = None, exclude_series: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + max_gpu: Optional[pulumi.Input[float]] = None, max_memory_gib: Optional[pulumi.Input[float]] = None, max_vcpu: Optional[pulumi.Input[int]] = None, + min_data: Optional[pulumi.Input[int]] = None, + min_gpu: Optional[pulumi.Input[float]] = None, min_memory_gib: Optional[pulumi.Input[float]] = None, + min_nics: Optional[pulumi.Input[int]] = None, min_vcpu: Optional[pulumi.Input[int]] = None, series: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + vm_types: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'acceleratedNetworking' in kwargs: + accelerated_networking = kwargs['acceleratedNetworking'] + if 'diskPerformance' in kwargs: + disk_performance = kwargs['diskPerformance'] + if 'excludeSeries' in kwargs: + exclude_series = kwargs['excludeSeries'] + if 'maxGpu' in kwargs: + max_gpu = kwargs['maxGpu'] + if 'maxMemoryGib' in kwargs: + max_memory_gib = kwargs['maxMemoryGib'] + if 'maxVcpu' in kwargs: + max_vcpu = kwargs['maxVcpu'] + if 'minData' in kwargs: + min_data = kwargs['minData'] + if 'minGpu' in kwargs: + min_gpu = kwargs['minGpu'] + if 'minMemoryGib' in kwargs: + min_memory_gib = kwargs['minMemoryGib'] + if 'minNics' in kwargs: + min_nics = kwargs['minNics'] + if 'minVcpu' in kwargs: + min_vcpu = kwargs['minVcpu'] + if 'vmTypes' in kwargs: + vm_types = kwargs['vmTypes'] + + if accelerated_networking is not None: + _setter("accelerated_networking", accelerated_networking) if architectures is not None: _setter("architectures", architectures) + if disk_performance is not None: + _setter("disk_performance", disk_performance) if exclude_series is not None: _setter("exclude_series", exclude_series) + if max_gpu is not None: + _setter("max_gpu", max_gpu) if max_memory_gib is not None: _setter("max_memory_gib", max_memory_gib) if max_vcpu is not None: _setter("max_vcpu", max_vcpu) + if min_data is not None: + _setter("min_data", min_data) + if min_gpu is not None: + _setter("min_gpu", min_gpu) if min_memory_gib is not None: _setter("min_memory_gib", min_memory_gib) + if min_nics is not None: + _setter("min_nics", min_nics) if min_vcpu is not None: _setter("min_vcpu", min_vcpu) if series is not None: _setter("series", series) + if vm_types is not None: + _setter("vm_types", vm_types) + + @property + @pulumi.getter(name="acceleratedNetworking") + def accelerated_networking(self) -> Optional[pulumi.Input[str]]: + return pulumi.get(self, "accelerated_networking") + + @accelerated_networking.setter + def accelerated_networking(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "accelerated_networking", value) @property @pulumi.getter @@ -2687,6 +2995,15 @@ def architectures(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: def architectures(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): pulumi.set(self, "architectures", value) + @property + @pulumi.getter(name="diskPerformance") + def disk_performance(self) -> Optional[pulumi.Input[str]]: + return pulumi.get(self, "disk_performance") + + @disk_performance.setter + def disk_performance(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "disk_performance", value) + @property @pulumi.getter(name="excludeSeries") def exclude_series(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: @@ -2696,6 +3013,15 @@ def exclude_series(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: def exclude_series(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): pulumi.set(self, "exclude_series", value) + @property + @pulumi.getter(name="maxGpu") + def max_gpu(self) -> Optional[pulumi.Input[float]]: + return pulumi.get(self, "max_gpu") + + @max_gpu.setter + def max_gpu(self, value: Optional[pulumi.Input[float]]): + pulumi.set(self, "max_gpu", value) + @property @pulumi.getter(name="maxMemoryGib") def max_memory_gib(self) -> Optional[pulumi.Input[float]]: @@ -2714,6 +3040,24 @@ def max_vcpu(self) -> Optional[pulumi.Input[int]]: def max_vcpu(self, value: Optional[pulumi.Input[int]]): pulumi.set(self, "max_vcpu", value) + @property + @pulumi.getter(name="minData") + def min_data(self) -> Optional[pulumi.Input[int]]: + return pulumi.get(self, "min_data") + + @min_data.setter + def min_data(self, value: Optional[pulumi.Input[int]]): + pulumi.set(self, "min_data", value) + + @property + @pulumi.getter(name="minGpu") + def min_gpu(self) -> Optional[pulumi.Input[float]]: + return pulumi.get(self, "min_gpu") + + @min_gpu.setter + def min_gpu(self, value: Optional[pulumi.Input[float]]): + pulumi.set(self, "min_gpu", value) + @property @pulumi.getter(name="minMemoryGib") def min_memory_gib(self) -> Optional[pulumi.Input[float]]: @@ -2723,6 +3067,15 @@ def min_memory_gib(self) -> Optional[pulumi.Input[float]]: def min_memory_gib(self, value: Optional[pulumi.Input[float]]): pulumi.set(self, "min_memory_gib", value) + @property + @pulumi.getter(name="minNics") + def min_nics(self) -> Optional[pulumi.Input[int]]: + return pulumi.get(self, "min_nics") + + @min_nics.setter + def min_nics(self, value: Optional[pulumi.Input[int]]): + pulumi.set(self, "min_nics", value) + @property @pulumi.getter(name="minVcpu") def min_vcpu(self) -> Optional[pulumi.Input[int]]: @@ -2741,6 +3094,15 @@ def series(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: def series(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): pulumi.set(self, "series", value) + @property + @pulumi.getter(name="vmTypes") + def vm_types(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: + return pulumi.get(self, "vm_types") + + @vm_types.setter + def vm_types(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): + pulumi.set(self, "vm_types", value) + @pulumi.input_type class OceanNpHeadroomArgs: @@ -2763,7 +3125,17 @@ def _configure( gpu_per_unit: Optional[pulumi.Input[int]] = None, memory_per_unit: Optional[pulumi.Input[int]] = None, num_of_units: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'cpuPerUnit' in kwargs: + cpu_per_unit = kwargs['cpuPerUnit'] + if 'gpuPerUnit' in kwargs: + gpu_per_unit = kwargs['gpuPerUnit'] + if 'memoryPerUnit' in kwargs: + memory_per_unit = kwargs['memoryPerUnit'] + if 'numOfUnits' in kwargs: + num_of_units = kwargs['numOfUnits'] + if cpu_per_unit is not None: _setter("cpu_per_unit", cpu_per_unit) if gpu_per_unit is not None: @@ -2822,7 +3194,11 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], grace_period: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'gracePeriod' in kwargs: + grace_period = kwargs['gracePeriod'] + if grace_period is not None: _setter("grace_period", grace_period) @@ -2848,7 +3224,11 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], shutdown_hours: Optional[pulumi.Input['OceanNpSchedulingShutdownHoursArgs']] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'shutdownHours' in kwargs: + shutdown_hours = kwargs['shutdownHours'] + if shutdown_hours is not None: _setter("shutdown_hours", shutdown_hours) @@ -2877,7 +3257,13 @@ def _configure( _setter: Callable[[Any, Any], None], time_windows: pulumi.Input[Sequence[pulumi.Input[str]]], is_enabled: Optional[pulumi.Input[bool]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'timeWindows' in kwargs: + time_windows = kwargs['timeWindows'] + if 'isEnabled' in kwargs: + is_enabled = kwargs['isEnabled'] + _setter("time_windows", time_windows) if is_enabled is not None: _setter("is_enabled", is_enabled) @@ -2919,7 +3305,9 @@ def _configure( effect: pulumi.Input[str], key: pulumi.Input[str], value: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("effect", effect) _setter("key", key) _setter("value", value) @@ -2955,48 +3343,118 @@ def value(self, value: pulumi.Input[str]): @pulumi.input_type class OceanNpVirtualNodeGroupFiltersArgs: def __init__(__self__, *, + accelerated_networking: Optional[pulumi.Input[str]] = None, architectures: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + disk_performance: Optional[pulumi.Input[str]] = None, exclude_series: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + max_gpu: Optional[pulumi.Input[float]] = None, max_memory_gib: Optional[pulumi.Input[float]] = None, max_vcpu: Optional[pulumi.Input[int]] = None, + min_data: Optional[pulumi.Input[int]] = None, + min_gpu: Optional[pulumi.Input[float]] = None, min_memory_gib: Optional[pulumi.Input[float]] = None, + min_nics: Optional[pulumi.Input[int]] = None, min_vcpu: Optional[pulumi.Input[int]] = None, - series: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): + series: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + vm_types: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): OceanNpVirtualNodeGroupFiltersArgs._configure( lambda key, value: pulumi.set(__self__, key, value), + accelerated_networking=accelerated_networking, architectures=architectures, + disk_performance=disk_performance, exclude_series=exclude_series, + max_gpu=max_gpu, max_memory_gib=max_memory_gib, max_vcpu=max_vcpu, + min_data=min_data, + min_gpu=min_gpu, min_memory_gib=min_memory_gib, + min_nics=min_nics, min_vcpu=min_vcpu, series=series, + vm_types=vm_types, ) @staticmethod def _configure( _setter: Callable[[Any, Any], None], + accelerated_networking: Optional[pulumi.Input[str]] = None, architectures: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + disk_performance: Optional[pulumi.Input[str]] = None, exclude_series: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + max_gpu: Optional[pulumi.Input[float]] = None, max_memory_gib: Optional[pulumi.Input[float]] = None, max_vcpu: Optional[pulumi.Input[int]] = None, + min_data: Optional[pulumi.Input[int]] = None, + min_gpu: Optional[pulumi.Input[float]] = None, min_memory_gib: Optional[pulumi.Input[float]] = None, + min_nics: Optional[pulumi.Input[int]] = None, min_vcpu: Optional[pulumi.Input[int]] = None, series: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + vm_types: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'acceleratedNetworking' in kwargs: + accelerated_networking = kwargs['acceleratedNetworking'] + if 'diskPerformance' in kwargs: + disk_performance = kwargs['diskPerformance'] + if 'excludeSeries' in kwargs: + exclude_series = kwargs['excludeSeries'] + if 'maxGpu' in kwargs: + max_gpu = kwargs['maxGpu'] + if 'maxMemoryGib' in kwargs: + max_memory_gib = kwargs['maxMemoryGib'] + if 'maxVcpu' in kwargs: + max_vcpu = kwargs['maxVcpu'] + if 'minData' in kwargs: + min_data = kwargs['minData'] + if 'minGpu' in kwargs: + min_gpu = kwargs['minGpu'] + if 'minMemoryGib' in kwargs: + min_memory_gib = kwargs['minMemoryGib'] + if 'minNics' in kwargs: + min_nics = kwargs['minNics'] + if 'minVcpu' in kwargs: + min_vcpu = kwargs['minVcpu'] + if 'vmTypes' in kwargs: + vm_types = kwargs['vmTypes'] + + if accelerated_networking is not None: + _setter("accelerated_networking", accelerated_networking) if architectures is not None: _setter("architectures", architectures) + if disk_performance is not None: + _setter("disk_performance", disk_performance) if exclude_series is not None: _setter("exclude_series", exclude_series) + if max_gpu is not None: + _setter("max_gpu", max_gpu) if max_memory_gib is not None: _setter("max_memory_gib", max_memory_gib) if max_vcpu is not None: _setter("max_vcpu", max_vcpu) + if min_data is not None: + _setter("min_data", min_data) + if min_gpu is not None: + _setter("min_gpu", min_gpu) if min_memory_gib is not None: _setter("min_memory_gib", min_memory_gib) + if min_nics is not None: + _setter("min_nics", min_nics) if min_vcpu is not None: _setter("min_vcpu", min_vcpu) if series is not None: _setter("series", series) + if vm_types is not None: + _setter("vm_types", vm_types) + + @property + @pulumi.getter(name="acceleratedNetworking") + def accelerated_networking(self) -> Optional[pulumi.Input[str]]: + return pulumi.get(self, "accelerated_networking") + + @accelerated_networking.setter + def accelerated_networking(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "accelerated_networking", value) @property @pulumi.getter @@ -3007,6 +3465,15 @@ def architectures(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: def architectures(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): pulumi.set(self, "architectures", value) + @property + @pulumi.getter(name="diskPerformance") + def disk_performance(self) -> Optional[pulumi.Input[str]]: + return pulumi.get(self, "disk_performance") + + @disk_performance.setter + def disk_performance(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "disk_performance", value) + @property @pulumi.getter(name="excludeSeries") def exclude_series(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: @@ -3016,6 +3483,15 @@ def exclude_series(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: def exclude_series(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): pulumi.set(self, "exclude_series", value) + @property + @pulumi.getter(name="maxGpu") + def max_gpu(self) -> Optional[pulumi.Input[float]]: + return pulumi.get(self, "max_gpu") + + @max_gpu.setter + def max_gpu(self, value: Optional[pulumi.Input[float]]): + pulumi.set(self, "max_gpu", value) + @property @pulumi.getter(name="maxMemoryGib") def max_memory_gib(self) -> Optional[pulumi.Input[float]]: @@ -3034,6 +3510,24 @@ def max_vcpu(self) -> Optional[pulumi.Input[int]]: def max_vcpu(self, value: Optional[pulumi.Input[int]]): pulumi.set(self, "max_vcpu", value) + @property + @pulumi.getter(name="minData") + def min_data(self) -> Optional[pulumi.Input[int]]: + return pulumi.get(self, "min_data") + + @min_data.setter + def min_data(self, value: Optional[pulumi.Input[int]]): + pulumi.set(self, "min_data", value) + + @property + @pulumi.getter(name="minGpu") + def min_gpu(self) -> Optional[pulumi.Input[float]]: + return pulumi.get(self, "min_gpu") + + @min_gpu.setter + def min_gpu(self, value: Optional[pulumi.Input[float]]): + pulumi.set(self, "min_gpu", value) + @property @pulumi.getter(name="minMemoryGib") def min_memory_gib(self) -> Optional[pulumi.Input[float]]: @@ -3043,6 +3537,15 @@ def min_memory_gib(self) -> Optional[pulumi.Input[float]]: def min_memory_gib(self, value: Optional[pulumi.Input[float]]): pulumi.set(self, "min_memory_gib", value) + @property + @pulumi.getter(name="minNics") + def min_nics(self) -> Optional[pulumi.Input[int]]: + return pulumi.get(self, "min_nics") + + @min_nics.setter + def min_nics(self, value: Optional[pulumi.Input[int]]): + pulumi.set(self, "min_nics", value) + @property @pulumi.getter(name="minVcpu") def min_vcpu(self) -> Optional[pulumi.Input[int]]: @@ -3061,6 +3564,15 @@ def series(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: def series(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): pulumi.set(self, "series", value) + @property + @pulumi.getter(name="vmTypes") + def vm_types(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: + return pulumi.get(self, "vm_types") + + @vm_types.setter + def vm_types(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): + pulumi.set(self, "vm_types", value) + @pulumi.input_type class OceanNpVirtualNodeGroupHeadroomArgs: @@ -3083,7 +3595,17 @@ def _configure( gpu_per_unit: Optional[pulumi.Input[int]] = None, memory_per_unit: Optional[pulumi.Input[int]] = None, num_of_units: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'cpuPerUnit' in kwargs: + cpu_per_unit = kwargs['cpuPerUnit'] + if 'gpuPerUnit' in kwargs: + gpu_per_unit = kwargs['gpuPerUnit'] + if 'memoryPerUnit' in kwargs: + memory_per_unit = kwargs['memoryPerUnit'] + if 'numOfUnits' in kwargs: + num_of_units = kwargs['numOfUnits'] + if cpu_per_unit is not None: _setter("cpu_per_unit", cpu_per_unit) if gpu_per_unit is not None: @@ -3148,7 +3670,9 @@ def _configure( effect: pulumi.Input[str], key: pulumi.Input[str], value: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("effect", effect) _setter("key", key) _setter("value", value) @@ -3200,7 +3724,11 @@ def _configure( _setter: Callable[[Any, Any], None], size_gb: pulumi.Input[int], type: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'sizeGb' in kwargs: + size_gb = kwargs['sizeGb'] + _setter("size_gb", size_gb) if type is not None: _setter("type", type) @@ -3249,7 +3777,13 @@ def _configure( _setter: Callable[[Any, Any], None], fallback_to_ondemand: Optional[pulumi.Input[bool]] = None, spot_percentage: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'fallbackToOndemand' in kwargs: + fallback_to_ondemand = kwargs['fallbackToOndemand'] + if 'spotPercentage' in kwargs: + spot_percentage = kwargs['spotPercentage'] + if fallback_to_ondemand is not None: _setter("fallback_to_ondemand", fallback_to_ondemand) if spot_percentage is not None: @@ -3299,7 +3833,9 @@ def _configure( _setter: Callable[[Any, Any], None], key: Optional[pulumi.Input[str]] = None, value: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if key is not None: _setter("key", key) if value is not None: @@ -3348,7 +3884,13 @@ def _configure( _setter: Callable[[Any, Any], None], auto_headroom_percentage: Optional[pulumi.Input[int]] = None, autoscale_headrooms: Optional[pulumi.Input[Sequence[pulumi.Input['OceanVirtualNodeGroupAutoscaleAutoscaleHeadroomArgs']]]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'autoHeadroomPercentage' in kwargs: + auto_headroom_percentage = kwargs['autoHeadroomPercentage'] + if 'autoscaleHeadrooms' in kwargs: + autoscale_headrooms = kwargs['autoscaleHeadrooms'] + if auto_headroom_percentage is not None: _setter("auto_headroom_percentage", auto_headroom_percentage) if autoscale_headrooms is not None: @@ -3403,7 +3945,17 @@ def _configure( cpu_per_unit: Optional[pulumi.Input[int]] = None, gpu_per_unit: Optional[pulumi.Input[int]] = None, memory_per_unit: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'numOfUnits' in kwargs: + num_of_units = kwargs['numOfUnits'] + if 'cpuPerUnit' in kwargs: + cpu_per_unit = kwargs['cpuPerUnit'] + if 'gpuPerUnit' in kwargs: + gpu_per_unit = kwargs['gpuPerUnit'] + if 'memoryPerUnit' in kwargs: + memory_per_unit = kwargs['memoryPerUnit'] + _setter("num_of_units", num_of_units) if cpu_per_unit is not None: _setter("cpu_per_unit", cpu_per_unit) @@ -3480,7 +4032,9 @@ def _configure( _setter: Callable[[Any, Any], None], key: pulumi.Input[str], value: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("key", key) if value is not None: _setter("value", value) @@ -3533,7 +4087,13 @@ def _configure( max_pods: Optional[pulumi.Input[int]] = None, os_disk: Optional[pulumi.Input['OceanVirtualNodeGroupLaunchSpecificationOsDiskArgs']] = None, tags: Optional[pulumi.Input[Sequence[pulumi.Input['OceanVirtualNodeGroupLaunchSpecificationTagArgs']]]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'maxPods' in kwargs: + max_pods = kwargs['maxPods'] + if 'osDisk' in kwargs: + os_disk = kwargs['osDisk'] + if max_pods is not None: _setter("max_pods", max_pods) if os_disk is not None: @@ -3601,7 +4161,13 @@ def _configure( size_gb: pulumi.Input[int], type: Optional[pulumi.Input[str]] = None, utilize_ephemeral_storage: Optional[pulumi.Input[bool]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'sizeGb' in kwargs: + size_gb = kwargs['sizeGb'] + if 'utilizeEphemeralStorage' in kwargs: + utilize_ephemeral_storage = kwargs['utilizeEphemeralStorage'] + _setter("size_gb", size_gb) if type is not None: _setter("type", type) @@ -3664,7 +4230,9 @@ def _configure( _setter: Callable[[Any, Any], None], key: Optional[pulumi.Input[str]] = None, value: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if key is not None: _setter("key", key) if value is not None: @@ -3710,7 +4278,11 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], max_instance_count: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'maxInstanceCount' in kwargs: + max_instance_count = kwargs['maxInstanceCount'] + if max_instance_count is not None: _setter("max_instance_count", max_instance_count) @@ -3750,7 +4322,9 @@ def _configure( effect: pulumi.Input[str], key: pulumi.Input[str], value: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("effect", effect) _setter("key", key) _setter("value", value) @@ -3807,7 +4381,9 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], whitelists: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if whitelists is not None: _setter("whitelists", whitelists) diff --git a/sdk/python/pulumi_spotinst/azure/elastigroup.py b/sdk/python/pulumi_spotinst/azure/elastigroup.py index 58475cfe..b95cf2fb 100644 --- a/sdk/python/pulumi_spotinst/azure/elastigroup.py +++ b/sdk/python/pulumi_spotinst/azure/elastigroup.py @@ -108,7 +108,45 @@ def _configure( shutdown_script: Optional[pulumi.Input[str]] = None, update_policy: Optional[pulumi.Input['ElastigroupUpdatePolicyArgs']] = None, user_data: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'lowPrioritySizes' in kwargs: + low_priority_sizes = kwargs['lowPrioritySizes'] + if 'odSizes' in kwargs: + od_sizes = kwargs['odSizes'] + if 'resourceGroupName' in kwargs: + resource_group_name = kwargs['resourceGroupName'] + if 'customData' in kwargs: + custom_data = kwargs['customData'] + if 'desiredCapacity' in kwargs: + desired_capacity = kwargs['desiredCapacity'] + if 'healthCheck' in kwargs: + health_check = kwargs['healthCheck'] + if 'integrationKubernetes' in kwargs: + integration_kubernetes = kwargs['integrationKubernetes'] + if 'integrationMultaiRuntime' in kwargs: + integration_multai_runtime = kwargs['integrationMultaiRuntime'] + if 'loadBalancers' in kwargs: + load_balancers = kwargs['loadBalancers'] + if 'managedServiceIdentities' in kwargs: + managed_service_identities = kwargs['managedServiceIdentities'] + if 'maxSize' in kwargs: + max_size = kwargs['maxSize'] + if 'minSize' in kwargs: + min_size = kwargs['minSize'] + if 'scalingDownPolicies' in kwargs: + scaling_down_policies = kwargs['scalingDownPolicies'] + if 'scalingUpPolicies' in kwargs: + scaling_up_policies = kwargs['scalingUpPolicies'] + if 'scheduledTasks' in kwargs: + scheduled_tasks = kwargs['scheduledTasks'] + if 'shutdownScript' in kwargs: + shutdown_script = kwargs['shutdownScript'] + if 'updatePolicy' in kwargs: + update_policy = kwargs['updatePolicy'] + if 'userData' in kwargs: + user_data = kwargs['userData'] + _setter("low_priority_sizes", low_priority_sizes) _setter("network", network) _setter("od_sizes", od_sizes) @@ -498,7 +536,45 @@ def _configure( strategy: Optional[pulumi.Input['ElastigroupStrategyArgs']] = None, update_policy: Optional[pulumi.Input['ElastigroupUpdatePolicyArgs']] = None, user_data: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'customData' in kwargs: + custom_data = kwargs['customData'] + if 'desiredCapacity' in kwargs: + desired_capacity = kwargs['desiredCapacity'] + if 'healthCheck' in kwargs: + health_check = kwargs['healthCheck'] + if 'integrationKubernetes' in kwargs: + integration_kubernetes = kwargs['integrationKubernetes'] + if 'integrationMultaiRuntime' in kwargs: + integration_multai_runtime = kwargs['integrationMultaiRuntime'] + if 'loadBalancers' in kwargs: + load_balancers = kwargs['loadBalancers'] + if 'lowPrioritySizes' in kwargs: + low_priority_sizes = kwargs['lowPrioritySizes'] + if 'managedServiceIdentities' in kwargs: + managed_service_identities = kwargs['managedServiceIdentities'] + if 'maxSize' in kwargs: + max_size = kwargs['maxSize'] + if 'minSize' in kwargs: + min_size = kwargs['minSize'] + if 'odSizes' in kwargs: + od_sizes = kwargs['odSizes'] + if 'resourceGroupName' in kwargs: + resource_group_name = kwargs['resourceGroupName'] + if 'scalingDownPolicies' in kwargs: + scaling_down_policies = kwargs['scalingDownPolicies'] + if 'scalingUpPolicies' in kwargs: + scaling_up_policies = kwargs['scalingUpPolicies'] + if 'scheduledTasks' in kwargs: + scheduled_tasks = kwargs['scheduledTasks'] + if 'shutdownScript' in kwargs: + shutdown_script = kwargs['shutdownScript'] + if 'updatePolicy' in kwargs: + update_policy = kwargs['updatePolicy'] + if 'userData' in kwargs: + user_data = kwargs['userData'] + if custom_data is not None: _setter("custom_data", custom_data) if desired_capacity is not None: diff --git a/sdk/python/pulumi_spotinst/azure/ocean.py b/sdk/python/pulumi_spotinst/azure/ocean.py index 9d3e6737..f5a9494e 100644 --- a/sdk/python/pulumi_spotinst/azure/ocean.py +++ b/sdk/python/pulumi_spotinst/azure/ocean.py @@ -113,7 +113,35 @@ def _configure( user_name: Optional[pulumi.Input[str]] = None, vm_sizes: Optional[pulumi.Input[Sequence[pulumi.Input['OceanVmSizeArgs']]]] = None, zones: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'acdIdentifier' in kwargs: + acd_identifier = kwargs['acdIdentifier'] + if 'aksName' in kwargs: + aks_name = kwargs['aksName'] + if 'aksResourceGroupName' in kwargs: + aks_resource_group_name = kwargs['aksResourceGroupName'] + if 'sshPublicKey' in kwargs: + ssh_public_key = kwargs['sshPublicKey'] + if 'controllerClusterId' in kwargs: + controller_cluster_id = kwargs['controllerClusterId'] + if 'customData' in kwargs: + custom_data = kwargs['customData'] + if 'loadBalancers' in kwargs: + load_balancers = kwargs['loadBalancers'] + if 'managedServiceIdentities' in kwargs: + managed_service_identities = kwargs['managedServiceIdentities'] + if 'maxPods' in kwargs: + max_pods = kwargs['maxPods'] + if 'osDisk' in kwargs: + os_disk = kwargs['osDisk'] + if 'resourceGroupName' in kwargs: + resource_group_name = kwargs['resourceGroupName'] + if 'userName' in kwargs: + user_name = kwargs['userName'] + if 'vmSizes' in kwargs: + vm_sizes = kwargs['vmSizes'] + _setter("acd_identifier", acd_identifier) _setter("aks_name", aks_name) _setter("aks_resource_group_name", aks_resource_group_name) @@ -520,7 +548,35 @@ def _configure( user_name: Optional[pulumi.Input[str]] = None, vm_sizes: Optional[pulumi.Input[Sequence[pulumi.Input['OceanVmSizeArgs']]]] = None, zones: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'acdIdentifier' in kwargs: + acd_identifier = kwargs['acdIdentifier'] + if 'aksName' in kwargs: + aks_name = kwargs['aksName'] + if 'aksResourceGroupName' in kwargs: + aks_resource_group_name = kwargs['aksResourceGroupName'] + if 'controllerClusterId' in kwargs: + controller_cluster_id = kwargs['controllerClusterId'] + if 'customData' in kwargs: + custom_data = kwargs['customData'] + if 'loadBalancers' in kwargs: + load_balancers = kwargs['loadBalancers'] + if 'managedServiceIdentities' in kwargs: + managed_service_identities = kwargs['managedServiceIdentities'] + if 'maxPods' in kwargs: + max_pods = kwargs['maxPods'] + if 'osDisk' in kwargs: + os_disk = kwargs['osDisk'] + if 'resourceGroupName' in kwargs: + resource_group_name = kwargs['resourceGroupName'] + if 'sshPublicKey' in kwargs: + ssh_public_key = kwargs['sshPublicKey'] + if 'userName' in kwargs: + user_name = kwargs['userName'] + if 'vmSizes' in kwargs: + vm_sizes = kwargs['vmSizes'] + if acd_identifier is not None: _setter("acd_identifier", acd_identifier) if aks_name is not None: diff --git a/sdk/python/pulumi_spotinst/azure/ocean_np.py b/sdk/python/pulumi_spotinst/azure/ocean_np.py index 36370fdb..0cd08026 100644 --- a/sdk/python/pulumi_spotinst/azure/ocean_np.py +++ b/sdk/python/pulumi_spotinst/azure/ocean_np.py @@ -38,10 +38,12 @@ def __init__(__self__, *, os_disk_type: Optional[pulumi.Input[str]] = None, os_sku: Optional[pulumi.Input[str]] = None, os_type: Optional[pulumi.Input[str]] = None, + pod_subnet_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, scheduling: Optional[pulumi.Input['OceanNpSchedulingArgs']] = None, spot_percentage: Optional[pulumi.Input[int]] = None, tags: Optional[pulumi.Input[Mapping[str, Any]]] = None, - taints: Optional[pulumi.Input[Sequence[pulumi.Input['OceanNpTaintArgs']]]] = None): + taints: Optional[pulumi.Input[Sequence[pulumi.Input['OceanNpTaintArgs']]]] = None, + vnet_subnet_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): """ The set of arguments for constructing a OceanNp resource. """ @@ -69,10 +71,12 @@ def __init__(__self__, *, os_disk_type=os_disk_type, os_sku=os_sku, os_type=os_type, + pod_subnet_ids=pod_subnet_ids, scheduling=scheduling, spot_percentage=spot_percentage, tags=tags, taints=taints, + vnet_subnet_ids=vnet_subnet_ids, ) @staticmethod def _configure( @@ -99,11 +103,53 @@ def _configure( os_disk_type: Optional[pulumi.Input[str]] = None, os_sku: Optional[pulumi.Input[str]] = None, os_type: Optional[pulumi.Input[str]] = None, + pod_subnet_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, scheduling: Optional[pulumi.Input['OceanNpSchedulingArgs']] = None, spot_percentage: Optional[pulumi.Input[int]] = None, tags: Optional[pulumi.Input[Mapping[str, Any]]] = None, taints: Optional[pulumi.Input[Sequence[pulumi.Input['OceanNpTaintArgs']]]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + vnet_subnet_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'aksClusterName' in kwargs: + aks_cluster_name = kwargs['aksClusterName'] + if 'aksInfrastructureResourceGroupName' in kwargs: + aks_infrastructure_resource_group_name = kwargs['aksInfrastructureResourceGroupName'] + if 'aksRegion' in kwargs: + aks_region = kwargs['aksRegion'] + if 'aksResourceGroupName' in kwargs: + aks_resource_group_name = kwargs['aksResourceGroupName'] + if 'availabilityZones' in kwargs: + availability_zones = kwargs['availabilityZones'] + if 'controllerClusterId' in kwargs: + controller_cluster_id = kwargs['controllerClusterId'] + if 'enableNodePublicIp' in kwargs: + enable_node_public_ip = kwargs['enableNodePublicIp'] + if 'fallbackToOndemand' in kwargs: + fallback_to_ondemand = kwargs['fallbackToOndemand'] + if 'kubernetesVersion' in kwargs: + kubernetes_version = kwargs['kubernetesVersion'] + if 'maxCount' in kwargs: + max_count = kwargs['maxCount'] + if 'maxPodsPerNode' in kwargs: + max_pods_per_node = kwargs['maxPodsPerNode'] + if 'minCount' in kwargs: + min_count = kwargs['minCount'] + if 'osDiskSizeGb' in kwargs: + os_disk_size_gb = kwargs['osDiskSizeGb'] + if 'osDiskType' in kwargs: + os_disk_type = kwargs['osDiskType'] + if 'osSku' in kwargs: + os_sku = kwargs['osSku'] + if 'osType' in kwargs: + os_type = kwargs['osType'] + if 'podSubnetIds' in kwargs: + pod_subnet_ids = kwargs['podSubnetIds'] + if 'spotPercentage' in kwargs: + spot_percentage = kwargs['spotPercentage'] + if 'vnetSubnetIds' in kwargs: + vnet_subnet_ids = kwargs['vnetSubnetIds'] + _setter("aks_cluster_name", aks_cluster_name) _setter("aks_infrastructure_resource_group_name", aks_infrastructure_resource_group_name) _setter("aks_region", aks_region) @@ -143,6 +189,8 @@ def _configure( _setter("os_sku", os_sku) if os_type is not None: _setter("os_type", os_type) + if pod_subnet_ids is not None: + _setter("pod_subnet_ids", pod_subnet_ids) if scheduling is not None: _setter("scheduling", scheduling) if spot_percentage is not None: @@ -151,6 +199,8 @@ def _configure( _setter("tags", tags) if taints is not None: _setter("taints", taints) + if vnet_subnet_ids is not None: + _setter("vnet_subnet_ids", vnet_subnet_ids) @property @pulumi.getter(name="aksClusterName") @@ -350,6 +400,15 @@ def os_type(self) -> Optional[pulumi.Input[str]]: def os_type(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "os_type", value) + @property + @pulumi.getter(name="podSubnetIds") + def pod_subnet_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: + return pulumi.get(self, "pod_subnet_ids") + + @pod_subnet_ids.setter + def pod_subnet_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): + pulumi.set(self, "pod_subnet_ids", value) + @property @pulumi.getter def scheduling(self) -> Optional[pulumi.Input['OceanNpSchedulingArgs']]: @@ -386,6 +445,15 @@ def taints(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['OceanNpTaintArg def taints(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['OceanNpTaintArgs']]]]): pulumi.set(self, "taints", value) + @property + @pulumi.getter(name="vnetSubnetIds") + def vnet_subnet_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: + return pulumi.get(self, "vnet_subnet_ids") + + @vnet_subnet_ids.setter + def vnet_subnet_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): + pulumi.set(self, "vnet_subnet_ids", value) + @pulumi.input_type class _OceanNpState: @@ -412,10 +480,12 @@ def __init__(__self__, *, os_disk_type: Optional[pulumi.Input[str]] = None, os_sku: Optional[pulumi.Input[str]] = None, os_type: Optional[pulumi.Input[str]] = None, + pod_subnet_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, scheduling: Optional[pulumi.Input['OceanNpSchedulingArgs']] = None, spot_percentage: Optional[pulumi.Input[int]] = None, tags: Optional[pulumi.Input[Mapping[str, Any]]] = None, - taints: Optional[pulumi.Input[Sequence[pulumi.Input['OceanNpTaintArgs']]]] = None): + taints: Optional[pulumi.Input[Sequence[pulumi.Input['OceanNpTaintArgs']]]] = None, + vnet_subnet_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): """ Input properties used for looking up and filtering OceanNp resources. """ @@ -443,10 +513,12 @@ def __init__(__self__, *, os_disk_type=os_disk_type, os_sku=os_sku, os_type=os_type, + pod_subnet_ids=pod_subnet_ids, scheduling=scheduling, spot_percentage=spot_percentage, tags=tags, taints=taints, + vnet_subnet_ids=vnet_subnet_ids, ) @staticmethod def _configure( @@ -473,11 +545,53 @@ def _configure( os_disk_type: Optional[pulumi.Input[str]] = None, os_sku: Optional[pulumi.Input[str]] = None, os_type: Optional[pulumi.Input[str]] = None, + pod_subnet_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, scheduling: Optional[pulumi.Input['OceanNpSchedulingArgs']] = None, spot_percentage: Optional[pulumi.Input[int]] = None, tags: Optional[pulumi.Input[Mapping[str, Any]]] = None, taints: Optional[pulumi.Input[Sequence[pulumi.Input['OceanNpTaintArgs']]]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + vnet_subnet_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'aksClusterName' in kwargs: + aks_cluster_name = kwargs['aksClusterName'] + if 'aksInfrastructureResourceGroupName' in kwargs: + aks_infrastructure_resource_group_name = kwargs['aksInfrastructureResourceGroupName'] + if 'aksRegion' in kwargs: + aks_region = kwargs['aksRegion'] + if 'aksResourceGroupName' in kwargs: + aks_resource_group_name = kwargs['aksResourceGroupName'] + if 'availabilityZones' in kwargs: + availability_zones = kwargs['availabilityZones'] + if 'controllerClusterId' in kwargs: + controller_cluster_id = kwargs['controllerClusterId'] + if 'enableNodePublicIp' in kwargs: + enable_node_public_ip = kwargs['enableNodePublicIp'] + if 'fallbackToOndemand' in kwargs: + fallback_to_ondemand = kwargs['fallbackToOndemand'] + if 'kubernetesVersion' in kwargs: + kubernetes_version = kwargs['kubernetesVersion'] + if 'maxCount' in kwargs: + max_count = kwargs['maxCount'] + if 'maxPodsPerNode' in kwargs: + max_pods_per_node = kwargs['maxPodsPerNode'] + if 'minCount' in kwargs: + min_count = kwargs['minCount'] + if 'osDiskSizeGb' in kwargs: + os_disk_size_gb = kwargs['osDiskSizeGb'] + if 'osDiskType' in kwargs: + os_disk_type = kwargs['osDiskType'] + if 'osSku' in kwargs: + os_sku = kwargs['osSku'] + if 'osType' in kwargs: + os_type = kwargs['osType'] + if 'podSubnetIds' in kwargs: + pod_subnet_ids = kwargs['podSubnetIds'] + if 'spotPercentage' in kwargs: + spot_percentage = kwargs['spotPercentage'] + if 'vnetSubnetIds' in kwargs: + vnet_subnet_ids = kwargs['vnetSubnetIds'] + if aks_cluster_name is not None: _setter("aks_cluster_name", aks_cluster_name) if aks_infrastructure_resource_group_name is not None: @@ -522,6 +636,8 @@ def _configure( _setter("os_sku", os_sku) if os_type is not None: _setter("os_type", os_type) + if pod_subnet_ids is not None: + _setter("pod_subnet_ids", pod_subnet_ids) if scheduling is not None: _setter("scheduling", scheduling) if spot_percentage is not None: @@ -530,6 +646,8 @@ def _configure( _setter("tags", tags) if taints is not None: _setter("taints", taints) + if vnet_subnet_ids is not None: + _setter("vnet_subnet_ids", vnet_subnet_ids) @property @pulumi.getter(name="aksClusterName") @@ -729,6 +847,15 @@ def os_type(self) -> Optional[pulumi.Input[str]]: def os_type(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "os_type", value) + @property + @pulumi.getter(name="podSubnetIds") + def pod_subnet_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: + return pulumi.get(self, "pod_subnet_ids") + + @pod_subnet_ids.setter + def pod_subnet_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): + pulumi.set(self, "pod_subnet_ids", value) + @property @pulumi.getter def scheduling(self) -> Optional[pulumi.Input['OceanNpSchedulingArgs']]: @@ -765,6 +892,15 @@ def taints(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['OceanNpTaintArg def taints(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['OceanNpTaintArgs']]]]): pulumi.set(self, "taints", value) + @property + @pulumi.getter(name="vnetSubnetIds") + def vnet_subnet_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: + return pulumi.get(self, "vnet_subnet_ids") + + @vnet_subnet_ids.setter + def vnet_subnet_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): + pulumi.set(self, "vnet_subnet_ids", value) + class OceanNp(pulumi.CustomResource): @overload @@ -793,10 +929,12 @@ def __init__(__self__, os_disk_type: Optional[pulumi.Input[str]] = None, os_sku: Optional[pulumi.Input[str]] = None, os_type: Optional[pulumi.Input[str]] = None, + pod_subnet_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, scheduling: Optional[pulumi.Input[pulumi.InputType['OceanNpSchedulingArgs']]] = None, spot_percentage: Optional[pulumi.Input[int]] = None, tags: Optional[pulumi.Input[Mapping[str, Any]]] = None, taints: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['OceanNpTaintArgs']]]]] = None, + vnet_subnet_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, __props__=None): """ Create a OceanNp resource with the given unique name, props, and options. @@ -852,10 +990,12 @@ def _internal_init(__self__, os_disk_type: Optional[pulumi.Input[str]] = None, os_sku: Optional[pulumi.Input[str]] = None, os_type: Optional[pulumi.Input[str]] = None, + pod_subnet_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, scheduling: Optional[pulumi.Input[pulumi.InputType['OceanNpSchedulingArgs']]] = None, spot_percentage: Optional[pulumi.Input[int]] = None, tags: Optional[pulumi.Input[Mapping[str, Any]]] = None, taints: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['OceanNpTaintArgs']]]]] = None, + vnet_subnet_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, __props__=None): opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) if not isinstance(opts, pulumi.ResourceOptions): @@ -912,6 +1052,7 @@ def _setter(key, value): __props__.__dict__["os_disk_type"] = os_disk_type __props__.__dict__["os_sku"] = os_sku __props__.__dict__["os_type"] = os_type + __props__.__dict__["pod_subnet_ids"] = pod_subnet_ids if scheduling is not None and not isinstance(scheduling, OceanNpSchedulingArgs): scheduling = scheduling or {} def _setter(key, value): @@ -921,6 +1062,7 @@ def _setter(key, value): __props__.__dict__["spot_percentage"] = spot_percentage __props__.__dict__["tags"] = tags __props__.__dict__["taints"] = taints + __props__.__dict__["vnet_subnet_ids"] = vnet_subnet_ids super(OceanNp, __self__).__init__( 'spotinst:azure/oceanNp:OceanNp', resource_name, @@ -953,10 +1095,12 @@ def get(resource_name: str, os_disk_type: Optional[pulumi.Input[str]] = None, os_sku: Optional[pulumi.Input[str]] = None, os_type: Optional[pulumi.Input[str]] = None, + pod_subnet_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, scheduling: Optional[pulumi.Input[pulumi.InputType['OceanNpSchedulingArgs']]] = None, spot_percentage: Optional[pulumi.Input[int]] = None, tags: Optional[pulumi.Input[Mapping[str, Any]]] = None, - taints: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['OceanNpTaintArgs']]]]] = None) -> 'OceanNp': + taints: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['OceanNpTaintArgs']]]]] = None, + vnet_subnet_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None) -> 'OceanNp': """ Get an existing OceanNp resource's state with the given name, id, and optional extra properties used to qualify the lookup. @@ -991,10 +1135,12 @@ def get(resource_name: str, __props__.__dict__["os_disk_type"] = os_disk_type __props__.__dict__["os_sku"] = os_sku __props__.__dict__["os_type"] = os_type + __props__.__dict__["pod_subnet_ids"] = pod_subnet_ids __props__.__dict__["scheduling"] = scheduling __props__.__dict__["spot_percentage"] = spot_percentage __props__.__dict__["tags"] = tags __props__.__dict__["taints"] = taints + __props__.__dict__["vnet_subnet_ids"] = vnet_subnet_ids return OceanNp(resource_name, opts=opts, __props__=__props__) @property @@ -1107,6 +1253,11 @@ def os_sku(self) -> pulumi.Output[Optional[str]]: def os_type(self) -> pulumi.Output[Optional[str]]: return pulumi.get(self, "os_type") + @property + @pulumi.getter(name="podSubnetIds") + def pod_subnet_ids(self) -> pulumi.Output[Optional[Sequence[str]]]: + return pulumi.get(self, "pod_subnet_ids") + @property @pulumi.getter def scheduling(self) -> pulumi.Output[Optional['outputs.OceanNpScheduling']]: @@ -1127,3 +1278,8 @@ def tags(self) -> pulumi.Output[Optional[Mapping[str, Any]]]: def taints(self) -> pulumi.Output[Optional[Sequence['outputs.OceanNpTaint']]]: return pulumi.get(self, "taints") + @property + @pulumi.getter(name="vnetSubnetIds") + def vnet_subnet_ids(self) -> pulumi.Output[Optional[Sequence[str]]]: + return pulumi.get(self, "vnet_subnet_ids") + diff --git a/sdk/python/pulumi_spotinst/azure/ocean_np_virtual_node_group.py b/sdk/python/pulumi_spotinst/azure/ocean_np_virtual_node_group.py index 37743192..bb987f6d 100644 --- a/sdk/python/pulumi_spotinst/azure/ocean_np_virtual_node_group.py +++ b/sdk/python/pulumi_spotinst/azure/ocean_np_virtual_node_group.py @@ -32,9 +32,11 @@ def __init__(__self__, *, os_disk_type: Optional[pulumi.Input[str]] = None, os_sku: Optional[pulumi.Input[str]] = None, os_type: Optional[pulumi.Input[str]] = None, + pod_subnet_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, spot_percentage: Optional[pulumi.Input[int]] = None, tags: Optional[pulumi.Input[Mapping[str, Any]]] = None, - taints: Optional[pulumi.Input[Sequence[pulumi.Input['OceanNpVirtualNodeGroupTaintArgs']]]] = None): + taints: Optional[pulumi.Input[Sequence[pulumi.Input['OceanNpVirtualNodeGroupTaintArgs']]]] = None, + vnet_subnet_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): """ The set of arguments for constructing a OceanNpVirtualNodeGroup resource. """ @@ -56,9 +58,11 @@ def __init__(__self__, *, os_disk_type=os_disk_type, os_sku=os_sku, os_type=os_type, + pod_subnet_ids=pod_subnet_ids, spot_percentage=spot_percentage, tags=tags, taints=taints, + vnet_subnet_ids=vnet_subnet_ids, ) @staticmethod def _configure( @@ -79,10 +83,44 @@ def _configure( os_disk_type: Optional[pulumi.Input[str]] = None, os_sku: Optional[pulumi.Input[str]] = None, os_type: Optional[pulumi.Input[str]] = None, + pod_subnet_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, spot_percentage: Optional[pulumi.Input[int]] = None, tags: Optional[pulumi.Input[Mapping[str, Any]]] = None, taints: Optional[pulumi.Input[Sequence[pulumi.Input['OceanNpVirtualNodeGroupTaintArgs']]]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + vnet_subnet_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'oceanId' in kwargs: + ocean_id = kwargs['oceanId'] + if 'availabilityZones' in kwargs: + availability_zones = kwargs['availabilityZones'] + if 'enableNodePublicIp' in kwargs: + enable_node_public_ip = kwargs['enableNodePublicIp'] + if 'fallbackToOndemand' in kwargs: + fallback_to_ondemand = kwargs['fallbackToOndemand'] + if 'kubernetesVersion' in kwargs: + kubernetes_version = kwargs['kubernetesVersion'] + if 'maxCount' in kwargs: + max_count = kwargs['maxCount'] + if 'maxPodsPerNode' in kwargs: + max_pods_per_node = kwargs['maxPodsPerNode'] + if 'minCount' in kwargs: + min_count = kwargs['minCount'] + if 'osDiskSizeGb' in kwargs: + os_disk_size_gb = kwargs['osDiskSizeGb'] + if 'osDiskType' in kwargs: + os_disk_type = kwargs['osDiskType'] + if 'osSku' in kwargs: + os_sku = kwargs['osSku'] + if 'osType' in kwargs: + os_type = kwargs['osType'] + if 'podSubnetIds' in kwargs: + pod_subnet_ids = kwargs['podSubnetIds'] + if 'spotPercentage' in kwargs: + spot_percentage = kwargs['spotPercentage'] + if 'vnetSubnetIds' in kwargs: + vnet_subnet_ids = kwargs['vnetSubnetIds'] + _setter("ocean_id", ocean_id) if availability_zones is not None: _setter("availability_zones", availability_zones) @@ -114,12 +152,16 @@ def _configure( _setter("os_sku", os_sku) if os_type is not None: _setter("os_type", os_type) + if pod_subnet_ids is not None: + _setter("pod_subnet_ids", pod_subnet_ids) if spot_percentage is not None: _setter("spot_percentage", spot_percentage) if tags is not None: _setter("tags", tags) if taints is not None: _setter("taints", taints) + if vnet_subnet_ids is not None: + _setter("vnet_subnet_ids", vnet_subnet_ids) @property @pulumi.getter(name="oceanId") @@ -265,6 +307,15 @@ def os_type(self) -> Optional[pulumi.Input[str]]: def os_type(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "os_type", value) + @property + @pulumi.getter(name="podSubnetIds") + def pod_subnet_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: + return pulumi.get(self, "pod_subnet_ids") + + @pod_subnet_ids.setter + def pod_subnet_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): + pulumi.set(self, "pod_subnet_ids", value) + @property @pulumi.getter(name="spotPercentage") def spot_percentage(self) -> Optional[pulumi.Input[int]]: @@ -292,6 +343,15 @@ def taints(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['OceanNpVirtualN def taints(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['OceanNpVirtualNodeGroupTaintArgs']]]]): pulumi.set(self, "taints", value) + @property + @pulumi.getter(name="vnetSubnetIds") + def vnet_subnet_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: + return pulumi.get(self, "vnet_subnet_ids") + + @vnet_subnet_ids.setter + def vnet_subnet_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): + pulumi.set(self, "vnet_subnet_ids", value) + @pulumi.input_type class _OceanNpVirtualNodeGroupState: @@ -312,9 +372,11 @@ def __init__(__self__, *, os_disk_type: Optional[pulumi.Input[str]] = None, os_sku: Optional[pulumi.Input[str]] = None, os_type: Optional[pulumi.Input[str]] = None, + pod_subnet_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, spot_percentage: Optional[pulumi.Input[int]] = None, tags: Optional[pulumi.Input[Mapping[str, Any]]] = None, - taints: Optional[pulumi.Input[Sequence[pulumi.Input['OceanNpVirtualNodeGroupTaintArgs']]]] = None): + taints: Optional[pulumi.Input[Sequence[pulumi.Input['OceanNpVirtualNodeGroupTaintArgs']]]] = None, + vnet_subnet_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): """ Input properties used for looking up and filtering OceanNpVirtualNodeGroup resources. """ @@ -336,9 +398,11 @@ def __init__(__self__, *, os_disk_type=os_disk_type, os_sku=os_sku, os_type=os_type, + pod_subnet_ids=pod_subnet_ids, spot_percentage=spot_percentage, tags=tags, taints=taints, + vnet_subnet_ids=vnet_subnet_ids, ) @staticmethod def _configure( @@ -359,10 +423,44 @@ def _configure( os_disk_type: Optional[pulumi.Input[str]] = None, os_sku: Optional[pulumi.Input[str]] = None, os_type: Optional[pulumi.Input[str]] = None, + pod_subnet_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, spot_percentage: Optional[pulumi.Input[int]] = None, tags: Optional[pulumi.Input[Mapping[str, Any]]] = None, taints: Optional[pulumi.Input[Sequence[pulumi.Input['OceanNpVirtualNodeGroupTaintArgs']]]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + vnet_subnet_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'availabilityZones' in kwargs: + availability_zones = kwargs['availabilityZones'] + if 'enableNodePublicIp' in kwargs: + enable_node_public_ip = kwargs['enableNodePublicIp'] + if 'fallbackToOndemand' in kwargs: + fallback_to_ondemand = kwargs['fallbackToOndemand'] + if 'kubernetesVersion' in kwargs: + kubernetes_version = kwargs['kubernetesVersion'] + if 'maxCount' in kwargs: + max_count = kwargs['maxCount'] + if 'maxPodsPerNode' in kwargs: + max_pods_per_node = kwargs['maxPodsPerNode'] + if 'minCount' in kwargs: + min_count = kwargs['minCount'] + if 'oceanId' in kwargs: + ocean_id = kwargs['oceanId'] + if 'osDiskSizeGb' in kwargs: + os_disk_size_gb = kwargs['osDiskSizeGb'] + if 'osDiskType' in kwargs: + os_disk_type = kwargs['osDiskType'] + if 'osSku' in kwargs: + os_sku = kwargs['osSku'] + if 'osType' in kwargs: + os_type = kwargs['osType'] + if 'podSubnetIds' in kwargs: + pod_subnet_ids = kwargs['podSubnetIds'] + if 'spotPercentage' in kwargs: + spot_percentage = kwargs['spotPercentage'] + if 'vnetSubnetIds' in kwargs: + vnet_subnet_ids = kwargs['vnetSubnetIds'] + if availability_zones is not None: _setter("availability_zones", availability_zones) if enable_node_public_ip is not None: @@ -395,12 +493,16 @@ def _configure( _setter("os_sku", os_sku) if os_type is not None: _setter("os_type", os_type) + if pod_subnet_ids is not None: + _setter("pod_subnet_ids", pod_subnet_ids) if spot_percentage is not None: _setter("spot_percentage", spot_percentage) if tags is not None: _setter("tags", tags) if taints is not None: _setter("taints", taints) + if vnet_subnet_ids is not None: + _setter("vnet_subnet_ids", vnet_subnet_ids) @property @pulumi.getter(name="availabilityZones") @@ -546,6 +648,15 @@ def os_type(self) -> Optional[pulumi.Input[str]]: def os_type(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "os_type", value) + @property + @pulumi.getter(name="podSubnetIds") + def pod_subnet_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: + return pulumi.get(self, "pod_subnet_ids") + + @pod_subnet_ids.setter + def pod_subnet_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): + pulumi.set(self, "pod_subnet_ids", value) + @property @pulumi.getter(name="spotPercentage") def spot_percentage(self) -> Optional[pulumi.Input[int]]: @@ -573,6 +684,15 @@ def taints(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['OceanNpVirtualN def taints(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['OceanNpVirtualNodeGroupTaintArgs']]]]): pulumi.set(self, "taints", value) + @property + @pulumi.getter(name="vnetSubnetIds") + def vnet_subnet_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: + return pulumi.get(self, "vnet_subnet_ids") + + @vnet_subnet_ids.setter + def vnet_subnet_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): + pulumi.set(self, "vnet_subnet_ids", value) + class OceanNpVirtualNodeGroup(pulumi.CustomResource): @overload @@ -595,9 +715,11 @@ def __init__(__self__, os_disk_type: Optional[pulumi.Input[str]] = None, os_sku: Optional[pulumi.Input[str]] = None, os_type: Optional[pulumi.Input[str]] = None, + pod_subnet_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, spot_percentage: Optional[pulumi.Input[int]] = None, tags: Optional[pulumi.Input[Mapping[str, Any]]] = None, taints: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['OceanNpVirtualNodeGroupTaintArgs']]]]] = None, + vnet_subnet_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, __props__=None): """ Create a OceanNpVirtualNodeGroup resource with the given unique name, props, and options. @@ -647,9 +769,11 @@ def _internal_init(__self__, os_disk_type: Optional[pulumi.Input[str]] = None, os_sku: Optional[pulumi.Input[str]] = None, os_type: Optional[pulumi.Input[str]] = None, + pod_subnet_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, spot_percentage: Optional[pulumi.Input[int]] = None, tags: Optional[pulumi.Input[Mapping[str, Any]]] = None, taints: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['OceanNpVirtualNodeGroupTaintArgs']]]]] = None, + vnet_subnet_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, __props__=None): opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) if not isinstance(opts, pulumi.ResourceOptions): @@ -682,9 +806,11 @@ def _setter(key, value): __props__.__dict__["os_disk_type"] = os_disk_type __props__.__dict__["os_sku"] = os_sku __props__.__dict__["os_type"] = os_type + __props__.__dict__["pod_subnet_ids"] = pod_subnet_ids __props__.__dict__["spot_percentage"] = spot_percentage __props__.__dict__["tags"] = tags __props__.__dict__["taints"] = taints + __props__.__dict__["vnet_subnet_ids"] = vnet_subnet_ids super(OceanNpVirtualNodeGroup, __self__).__init__( 'spotinst:azure/oceanNpVirtualNodeGroup:OceanNpVirtualNodeGroup', resource_name, @@ -711,9 +837,11 @@ def get(resource_name: str, os_disk_type: Optional[pulumi.Input[str]] = None, os_sku: Optional[pulumi.Input[str]] = None, os_type: Optional[pulumi.Input[str]] = None, + pod_subnet_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, spot_percentage: Optional[pulumi.Input[int]] = None, tags: Optional[pulumi.Input[Mapping[str, Any]]] = None, - taints: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['OceanNpVirtualNodeGroupTaintArgs']]]]] = None) -> 'OceanNpVirtualNodeGroup': + taints: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['OceanNpVirtualNodeGroupTaintArgs']]]]] = None, + vnet_subnet_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None) -> 'OceanNpVirtualNodeGroup': """ Get an existing OceanNpVirtualNodeGroup resource's state with the given name, id, and optional extra properties used to qualify the lookup. @@ -742,9 +870,11 @@ def get(resource_name: str, __props__.__dict__["os_disk_type"] = os_disk_type __props__.__dict__["os_sku"] = os_sku __props__.__dict__["os_type"] = os_type + __props__.__dict__["pod_subnet_ids"] = pod_subnet_ids __props__.__dict__["spot_percentage"] = spot_percentage __props__.__dict__["tags"] = tags __props__.__dict__["taints"] = taints + __props__.__dict__["vnet_subnet_ids"] = vnet_subnet_ids return OceanNpVirtualNodeGroup(resource_name, opts=opts, __props__=__props__) @property @@ -827,6 +957,11 @@ def os_sku(self) -> pulumi.Output[Optional[str]]: def os_type(self) -> pulumi.Output[Optional[str]]: return pulumi.get(self, "os_type") + @property + @pulumi.getter(name="podSubnetIds") + def pod_subnet_ids(self) -> pulumi.Output[Optional[Sequence[str]]]: + return pulumi.get(self, "pod_subnet_ids") + @property @pulumi.getter(name="spotPercentage") def spot_percentage(self) -> pulumi.Output[Optional[int]]: @@ -842,3 +977,8 @@ def tags(self) -> pulumi.Output[Optional[Mapping[str, Any]]]: def taints(self) -> pulumi.Output[Optional[Sequence['outputs.OceanNpVirtualNodeGroupTaint']]]: return pulumi.get(self, "taints") + @property + @pulumi.getter(name="vnetSubnetIds") + def vnet_subnet_ids(self) -> pulumi.Output[Optional[Sequence[str]]]: + return pulumi.get(self, "vnet_subnet_ids") + diff --git a/sdk/python/pulumi_spotinst/azure/ocean_virtual_node_group.py b/sdk/python/pulumi_spotinst/azure/ocean_virtual_node_group.py index 9151c519..4afd10d5 100644 --- a/sdk/python/pulumi_spotinst/azure/ocean_virtual_node_group.py +++ b/sdk/python/pulumi_spotinst/azure/ocean_virtual_node_group.py @@ -57,7 +57,15 @@ def _configure( resource_limits: Optional[pulumi.Input[Sequence[pulumi.Input['OceanVirtualNodeGroupResourceLimitArgs']]]] = None, taints: Optional[pulumi.Input[Sequence[pulumi.Input['OceanVirtualNodeGroupTaintArgs']]]] = None, zones: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'oceanId' in kwargs: + ocean_id = kwargs['oceanId'] + if 'launchSpecifications' in kwargs: + launch_specifications = kwargs['launchSpecifications'] + if 'resourceLimits' in kwargs: + resource_limits = kwargs['resourceLimits'] + _setter("ocean_id", ocean_id) if autoscales is not None: _setter("autoscales", autoscales) @@ -215,7 +223,15 @@ def _configure( resource_limits: Optional[pulumi.Input[Sequence[pulumi.Input['OceanVirtualNodeGroupResourceLimitArgs']]]] = None, taints: Optional[pulumi.Input[Sequence[pulumi.Input['OceanVirtualNodeGroupTaintArgs']]]] = None, zones: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'launchSpecifications' in kwargs: + launch_specifications = kwargs['launchSpecifications'] + if 'oceanId' in kwargs: + ocean_id = kwargs['oceanId'] + if 'resourceLimits' in kwargs: + resource_limits = kwargs['resourceLimits'] + if autoscales is not None: _setter("autoscales", autoscales) if labels is not None: diff --git a/sdk/python/pulumi_spotinst/azure/outputs.py b/sdk/python/pulumi_spotinst/azure/outputs.py index e65116f4..5406e534 100644 --- a/sdk/python/pulumi_spotinst/azure/outputs.py +++ b/sdk/python/pulumi_spotinst/azure/outputs.py @@ -112,7 +112,15 @@ def _configure( health_check_type: str, auto_healing: Optional[bool] = None, grace_period: Optional[int] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'healthCheckType' in kwargs: + health_check_type = kwargs['healthCheckType'] + if 'autoHealing' in kwargs: + auto_healing = kwargs['autoHealing'] + if 'gracePeriod' in kwargs: + grace_period = kwargs['gracePeriod'] + _setter("health_check_type", health_check_type) if auto_healing is not None: _setter("auto_healing", auto_healing) @@ -150,7 +158,9 @@ def _configure( _setter: Callable[[Any, Any], None], customs: Optional[Sequence['outputs.ElastigroupImageCustom']] = None, marketplaces: Optional[Sequence['outputs.ElastigroupImageMarketplace']] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if customs is not None: _setter("customs", customs) if marketplaces is not None: @@ -204,7 +214,13 @@ def _configure( _setter: Callable[[Any, Any], None], image_name: str, resource_group_name: str, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'imageName' in kwargs: + image_name = kwargs['imageName'] + if 'resourceGroupName' in kwargs: + resource_group_name = kwargs['resourceGroupName'] + _setter("image_name", image_name) _setter("resource_group_name", resource_group_name) @@ -240,7 +256,9 @@ def _configure( offer: str, publisher: str, sku: str, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("offer", offer) _setter("publisher", publisher) _setter("sku", sku) @@ -290,7 +308,11 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], cluster_identifier: str, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'clusterIdentifier' in kwargs: + cluster_identifier = kwargs['clusterIdentifier'] + _setter("cluster_identifier", cluster_identifier) @property @@ -328,7 +350,11 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], deployment_id: str, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'deploymentId' in kwargs: + deployment_id = kwargs['deploymentId'] + _setter("deployment_id", deployment_id) @property @@ -379,7 +405,15 @@ def _configure( auto_weight: Optional[bool] = None, balancer_id: Optional[str] = None, target_set_id: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'autoWeight' in kwargs: + auto_weight = kwargs['autoWeight'] + if 'balancerId' in kwargs: + balancer_id = kwargs['balancerId'] + if 'targetSetId' in kwargs: + target_set_id = kwargs['targetSetId'] + _setter("type", type) if auto_weight is not None: _setter("auto_weight", auto_weight) @@ -446,7 +480,13 @@ def _configure( user_name: str, password: Optional[str] = None, ssh_public_key: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'userName' in kwargs: + user_name = kwargs['userName'] + if 'sshPublicKey' in kwargs: + ssh_public_key = kwargs['sshPublicKey'] + _setter("user_name", user_name) if password is not None: _setter("password", password) @@ -505,7 +545,11 @@ def _configure( _setter: Callable[[Any, Any], None], name: str, resource_group_name: str, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'resourceGroupName' in kwargs: + resource_group_name = kwargs['resourceGroupName'] + _setter("name", name) _setter("resource_group_name", resource_group_name) @@ -578,7 +622,19 @@ def _configure( virtual_network_name: str, additional_ip_configs: Optional[Sequence['outputs.ElastigroupNetworkAdditionalIpConfig']] = None, assign_public_ip: Optional[bool] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'resourceGroupName' in kwargs: + resource_group_name = kwargs['resourceGroupName'] + if 'subnetName' in kwargs: + subnet_name = kwargs['subnetName'] + if 'virtualNetworkName' in kwargs: + virtual_network_name = kwargs['virtualNetworkName'] + if 'additionalIpConfigs' in kwargs: + additional_ip_configs = kwargs['additionalIpConfigs'] + if 'assignPublicIp' in kwargs: + assign_public_ip = kwargs['assignPublicIp'] + _setter("resource_group_name", resource_group_name) _setter("subnet_name", subnet_name) _setter("virtual_network_name", virtual_network_name) @@ -651,7 +707,11 @@ def _configure( _setter: Callable[[Any, Any], None], name: str, private_ip_version: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'privateIpVersion' in kwargs: + private_ip_version = kwargs['privateIpVersion'] + _setter("name", name) if private_ip_version is not None: _setter("private_ip_version", private_ip_version) @@ -760,7 +820,21 @@ def _configure( statistic: Optional[str] = None, target: Optional[str] = None, unit: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'metricName' in kwargs: + metric_name = kwargs['metricName'] + if 'policyName' in kwargs: + policy_name = kwargs['policyName'] + if 'actionType' in kwargs: + action_type = kwargs['actionType'] + if 'evaluationPeriods' in kwargs: + evaluation_periods = kwargs['evaluationPeriods'] + if 'maxTargetCapacity' in kwargs: + max_target_capacity = kwargs['maxTargetCapacity'] + if 'minTargetCapacity' in kwargs: + min_target_capacity = kwargs['minTargetCapacity'] + _setter("metric_name", metric_name) _setter("namespace", namespace) _setter("policy_name", policy_name) @@ -904,7 +978,9 @@ def _configure( _setter: Callable[[Any, Any], None], name: str, value: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("name", name) if value is not None: _setter("value", value) @@ -1016,7 +1092,21 @@ def _configure( statistic: Optional[str] = None, target: Optional[str] = None, unit: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'metricName' in kwargs: + metric_name = kwargs['metricName'] + if 'policyName' in kwargs: + policy_name = kwargs['policyName'] + if 'actionType' in kwargs: + action_type = kwargs['actionType'] + if 'evaluationPeriods' in kwargs: + evaluation_periods = kwargs['evaluationPeriods'] + if 'maxTargetCapacity' in kwargs: + max_target_capacity = kwargs['maxTargetCapacity'] + if 'minTargetCapacity' in kwargs: + min_target_capacity = kwargs['minTargetCapacity'] + _setter("metric_name", metric_name) _setter("namespace", namespace) _setter("policy_name", policy_name) @@ -1160,7 +1250,9 @@ def _configure( _setter: Callable[[Any, Any], None], name: str, value: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("name", name) if value is not None: _setter("value", value) @@ -1254,7 +1346,27 @@ def _configure( scale_max_capacity: Optional[str] = None, scale_min_capacity: Optional[str] = None, scale_target_capacity: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'cronExpression' in kwargs: + cron_expression = kwargs['cronExpression'] + if 'taskType' in kwargs: + task_type = kwargs['taskType'] + if 'adjustmentPercentage' in kwargs: + adjustment_percentage = kwargs['adjustmentPercentage'] + if 'batchSizePercentage' in kwargs: + batch_size_percentage = kwargs['batchSizePercentage'] + if 'gracePeriod' in kwargs: + grace_period = kwargs['gracePeriod'] + if 'isEnabled' in kwargs: + is_enabled = kwargs['isEnabled'] + if 'scaleMaxCapacity' in kwargs: + scale_max_capacity = kwargs['scaleMaxCapacity'] + if 'scaleMinCapacity' in kwargs: + scale_min_capacity = kwargs['scaleMinCapacity'] + if 'scaleTargetCapacity' in kwargs: + scale_target_capacity = kwargs['scaleTargetCapacity'] + _setter("cron_expression", cron_expression) _setter("task_type", task_type) if adjustment is not None: @@ -1364,7 +1476,15 @@ def _configure( draining_timeout: Optional[int] = None, low_priority_percentage: Optional[int] = None, od_count: Optional[int] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'drainingTimeout' in kwargs: + draining_timeout = kwargs['drainingTimeout'] + if 'lowPriorityPercentage' in kwargs: + low_priority_percentage = kwargs['lowPriorityPercentage'] + if 'odCount' in kwargs: + od_count = kwargs['odCount'] + if draining_timeout is not None: _setter("draining_timeout", draining_timeout) if low_priority_percentage is not None: @@ -1422,7 +1542,13 @@ def _configure( _setter: Callable[[Any, Any], None], should_roll: bool, roll_config: Optional['outputs.ElastigroupUpdatePolicyRollConfig'] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'shouldRoll' in kwargs: + should_roll = kwargs['shouldRoll'] + if 'rollConfig' in kwargs: + roll_config = kwargs['rollConfig'] + _setter("should_roll", should_roll) if roll_config is not None: _setter("roll_config", roll_config) @@ -1477,7 +1603,15 @@ def _configure( batch_size_percentage: int, grace_period: Optional[int] = None, health_check_type: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'batchSizePercentage' in kwargs: + batch_size_percentage = kwargs['batchSizePercentage'] + if 'gracePeriod' in kwargs: + grace_period = kwargs['gracePeriod'] + if 'healthCheckType' in kwargs: + health_check_type = kwargs['healthCheckType'] + _setter("batch_size_percentage", batch_size_percentage) if grace_period is not None: _setter("grace_period", grace_period) @@ -1550,7 +1684,17 @@ def _configure( autoscale_headroom: Optional['outputs.OceanAutoscalerAutoscaleHeadroom'] = None, autoscale_is_enabled: Optional[bool] = None, resource_limits: Optional['outputs.OceanAutoscalerResourceLimits'] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'autoscaleDown' in kwargs: + autoscale_down = kwargs['autoscaleDown'] + if 'autoscaleHeadroom' in kwargs: + autoscale_headroom = kwargs['autoscaleHeadroom'] + if 'autoscaleIsEnabled' in kwargs: + autoscale_is_enabled = kwargs['autoscaleIsEnabled'] + if 'resourceLimits' in kwargs: + resource_limits = kwargs['resourceLimits'] + if autoscale_down is not None: _setter("autoscale_down", autoscale_down) if autoscale_headroom is not None: @@ -1625,7 +1769,11 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], max_scale_down_percentage: Optional[float] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'maxScaleDownPercentage' in kwargs: + max_scale_down_percentage = kwargs['maxScaleDownPercentage'] + if max_scale_down_percentage is not None: _setter("max_scale_down_percentage", max_scale_down_percentage) @@ -1653,7 +1801,9 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], automatic: Optional['outputs.OceanAutoscalerAutoscaleHeadroomAutomatic'] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if automatic is not None: _setter("automatic", automatic) @@ -1702,7 +1852,11 @@ def _configure( _setter: Callable[[Any, Any], None], is_enabled: Optional[bool] = None, percentage: Optional[int] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'isEnabled' in kwargs: + is_enabled = kwargs['isEnabled'] + if is_enabled is not None: _setter("is_enabled", is_enabled) if percentage is not None: @@ -1763,7 +1917,13 @@ def _configure( _setter: Callable[[Any, Any], None], max_memory_gib: Optional[int] = None, max_vcpu: Optional[int] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'maxMemoryGib' in kwargs: + max_memory_gib = kwargs['maxMemoryGib'] + if 'maxVcpu' in kwargs: + max_vcpu = kwargs['maxVcpu'] + if max_memory_gib is not None: _setter("max_memory_gib", max_memory_gib) if max_vcpu is not None: @@ -1836,7 +1996,13 @@ def _configure( name: Optional[str] = None, publisher: Optional[str] = None, type: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'apiVersion' in kwargs: + api_version = kwargs['apiVersion'] + if 'minorVersionAutoUpgrade' in kwargs: + minor_version_auto_upgrade = kwargs['minorVersionAutoUpgrade'] + if api_version is not None: _setter("api_version", api_version) if minor_version_auto_upgrade is not None: @@ -1921,7 +2087,11 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], grace_period: Optional[int] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'gracePeriod' in kwargs: + grace_period = kwargs['gracePeriod'] + if grace_period is not None: _setter("grace_period", grace_period) @@ -1949,7 +2119,9 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], marketplaces: Optional[Sequence['outputs.OceanImageMarketplace']] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if marketplaces is not None: _setter("marketplaces", marketplaces) @@ -1989,7 +2161,9 @@ def _configure( publisher: Optional[str] = None, sku: Optional[str] = None, version: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if offer is not None: _setter("offer", offer) if publisher is not None: @@ -2084,7 +2258,15 @@ def _configure( name: Optional[str] = None, resource_group_name: Optional[str] = None, type: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'backendPoolNames' in kwargs: + backend_pool_names = kwargs['backendPoolNames'] + if 'loadBalancerSku' in kwargs: + load_balancer_sku = kwargs['loadBalancerSku'] + if 'resourceGroupName' in kwargs: + resource_group_name = kwargs['resourceGroupName'] + if backend_pool_names is not None: _setter("backend_pool_names", backend_pool_names) if load_balancer_sku is not None: @@ -2173,7 +2355,11 @@ def _configure( _setter: Callable[[Any, Any], None], name: str, resource_group_name: str, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'resourceGroupName' in kwargs: + resource_group_name = kwargs['resourceGroupName'] + _setter("name", name) _setter("resource_group_name", resource_group_name) @@ -2238,7 +2424,15 @@ def _configure( network_interfaces: Optional[Sequence['outputs.OceanNetworkNetworkInterface']] = None, resource_group_name: Optional[str] = None, virtual_network_name: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'networkInterfaces' in kwargs: + network_interfaces = kwargs['networkInterfaces'] + if 'resourceGroupName' in kwargs: + resource_group_name = kwargs['resourceGroupName'] + if 'virtualNetworkName' in kwargs: + virtual_network_name = kwargs['virtualNetworkName'] + if network_interfaces is not None: _setter("network_interfaces", network_interfaces) if resource_group_name is not None: @@ -2326,7 +2520,19 @@ def _configure( is_primary: Optional[bool] = None, security_group: Optional['outputs.OceanNetworkNetworkInterfaceSecurityGroup'] = None, subnet_name: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'additionalIpConfigs' in kwargs: + additional_ip_configs = kwargs['additionalIpConfigs'] + if 'assignPublicIp' in kwargs: + assign_public_ip = kwargs['assignPublicIp'] + if 'isPrimary' in kwargs: + is_primary = kwargs['isPrimary'] + if 'securityGroup' in kwargs: + security_group = kwargs['securityGroup'] + if 'subnetName' in kwargs: + subnet_name = kwargs['subnetName'] + if additional_ip_configs is not None: _setter("additional_ip_configs", additional_ip_configs) if assign_public_ip is not None: @@ -2412,7 +2618,11 @@ def _configure( _setter: Callable[[Any, Any], None], name: Optional[str] = None, private_ip_version: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'privateIpVersion' in kwargs: + private_ip_version = kwargs['privateIpVersion'] + if name is not None: _setter("name", name) if private_ip_version is not None: @@ -2471,7 +2681,11 @@ def _configure( _setter: Callable[[Any, Any], None], name: Optional[str] = None, resource_group_name: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'resourceGroupName' in kwargs: + resource_group_name = kwargs['resourceGroupName'] + if name is not None: _setter("name", name) if resource_group_name is not None: @@ -2538,7 +2752,17 @@ def _configure( autoscale_headroom: Optional['outputs.OceanNpAutoscalerAutoscaleHeadroom'] = None, autoscale_is_enabled: Optional[bool] = None, resource_limits: Optional['outputs.OceanNpAutoscalerResourceLimits'] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'autoscaleDown' in kwargs: + autoscale_down = kwargs['autoscaleDown'] + if 'autoscaleHeadroom' in kwargs: + autoscale_headroom = kwargs['autoscaleHeadroom'] + if 'autoscaleIsEnabled' in kwargs: + autoscale_is_enabled = kwargs['autoscaleIsEnabled'] + if 'resourceLimits' in kwargs: + resource_limits = kwargs['resourceLimits'] + if autoscale_down is not None: _setter("autoscale_down", autoscale_down) if autoscale_headroom is not None: @@ -2598,7 +2822,11 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], max_scale_down_percentage: Optional[int] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'maxScaleDownPercentage' in kwargs: + max_scale_down_percentage = kwargs['maxScaleDownPercentage'] + if max_scale_down_percentage is not None: _setter("max_scale_down_percentage", max_scale_down_percentage) @@ -2620,7 +2848,9 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], automatic: Optional['outputs.OceanNpAutoscalerAutoscaleHeadroomAutomatic'] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if automatic is not None: _setter("automatic", automatic) @@ -2642,7 +2872,9 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], percentage: Optional[int] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if percentage is not None: _setter("percentage", percentage) @@ -2686,7 +2918,13 @@ def _configure( _setter: Callable[[Any, Any], None], max_memory_gib: Optional[int] = None, max_vcpu: Optional[int] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'maxMemoryGib' in kwargs: + max_memory_gib = kwargs['maxMemoryGib'] + if 'maxVcpu' in kwargs: + max_vcpu = kwargs['maxVcpu'] + if max_memory_gib is not None: _setter("max_memory_gib", max_memory_gib) if max_vcpu is not None: @@ -2708,16 +2946,30 @@ class OceanNpFilters(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "excludeSeries": + if key == "acceleratedNetworking": + suggest = "accelerated_networking" + elif key == "diskPerformance": + suggest = "disk_performance" + elif key == "excludeSeries": suggest = "exclude_series" + elif key == "maxGpu": + suggest = "max_gpu" elif key == "maxMemoryGib": suggest = "max_memory_gib" elif key == "maxVcpu": suggest = "max_vcpu" + elif key == "minData": + suggest = "min_data" + elif key == "minGpu": + suggest = "min_gpu" elif key == "minMemoryGib": suggest = "min_memory_gib" + elif key == "minNics": + suggest = "min_nics" elif key == "minVcpu": suggest = "min_vcpu" + elif key == "vmTypes": + suggest = "vm_types" if suggest: pulumi.log.warn(f"Key '{key}' not found in OceanNpFilters. Access the value via the '{suggest}' property getter instead.") @@ -2731,59 +2983,135 @@ def get(self, key: str, default = None) -> Any: return super().get(key, default) def __init__(__self__, *, + accelerated_networking: Optional[str] = None, architectures: Optional[Sequence[str]] = None, + disk_performance: Optional[str] = None, exclude_series: Optional[Sequence[str]] = None, + max_gpu: Optional[float] = None, max_memory_gib: Optional[float] = None, max_vcpu: Optional[int] = None, + min_data: Optional[int] = None, + min_gpu: Optional[float] = None, min_memory_gib: Optional[float] = None, + min_nics: Optional[int] = None, min_vcpu: Optional[int] = None, - series: Optional[Sequence[str]] = None): + series: Optional[Sequence[str]] = None, + vm_types: Optional[Sequence[str]] = None): OceanNpFilters._configure( lambda key, value: pulumi.set(__self__, key, value), + accelerated_networking=accelerated_networking, architectures=architectures, + disk_performance=disk_performance, exclude_series=exclude_series, + max_gpu=max_gpu, max_memory_gib=max_memory_gib, max_vcpu=max_vcpu, + min_data=min_data, + min_gpu=min_gpu, min_memory_gib=min_memory_gib, + min_nics=min_nics, min_vcpu=min_vcpu, series=series, + vm_types=vm_types, ) @staticmethod def _configure( _setter: Callable[[Any, Any], None], + accelerated_networking: Optional[str] = None, architectures: Optional[Sequence[str]] = None, + disk_performance: Optional[str] = None, exclude_series: Optional[Sequence[str]] = None, + max_gpu: Optional[float] = None, max_memory_gib: Optional[float] = None, max_vcpu: Optional[int] = None, + min_data: Optional[int] = None, + min_gpu: Optional[float] = None, min_memory_gib: Optional[float] = None, + min_nics: Optional[int] = None, min_vcpu: Optional[int] = None, series: Optional[Sequence[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + vm_types: Optional[Sequence[str]] = None, + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'acceleratedNetworking' in kwargs: + accelerated_networking = kwargs['acceleratedNetworking'] + if 'diskPerformance' in kwargs: + disk_performance = kwargs['diskPerformance'] + if 'excludeSeries' in kwargs: + exclude_series = kwargs['excludeSeries'] + if 'maxGpu' in kwargs: + max_gpu = kwargs['maxGpu'] + if 'maxMemoryGib' in kwargs: + max_memory_gib = kwargs['maxMemoryGib'] + if 'maxVcpu' in kwargs: + max_vcpu = kwargs['maxVcpu'] + if 'minData' in kwargs: + min_data = kwargs['minData'] + if 'minGpu' in kwargs: + min_gpu = kwargs['minGpu'] + if 'minMemoryGib' in kwargs: + min_memory_gib = kwargs['minMemoryGib'] + if 'minNics' in kwargs: + min_nics = kwargs['minNics'] + if 'minVcpu' in kwargs: + min_vcpu = kwargs['minVcpu'] + if 'vmTypes' in kwargs: + vm_types = kwargs['vmTypes'] + + if accelerated_networking is not None: + _setter("accelerated_networking", accelerated_networking) if architectures is not None: _setter("architectures", architectures) + if disk_performance is not None: + _setter("disk_performance", disk_performance) if exclude_series is not None: _setter("exclude_series", exclude_series) + if max_gpu is not None: + _setter("max_gpu", max_gpu) if max_memory_gib is not None: _setter("max_memory_gib", max_memory_gib) if max_vcpu is not None: _setter("max_vcpu", max_vcpu) + if min_data is not None: + _setter("min_data", min_data) + if min_gpu is not None: + _setter("min_gpu", min_gpu) if min_memory_gib is not None: _setter("min_memory_gib", min_memory_gib) + if min_nics is not None: + _setter("min_nics", min_nics) if min_vcpu is not None: _setter("min_vcpu", min_vcpu) if series is not None: _setter("series", series) + if vm_types is not None: + _setter("vm_types", vm_types) + + @property + @pulumi.getter(name="acceleratedNetworking") + def accelerated_networking(self) -> Optional[str]: + return pulumi.get(self, "accelerated_networking") @property @pulumi.getter def architectures(self) -> Optional[Sequence[str]]: return pulumi.get(self, "architectures") + @property + @pulumi.getter(name="diskPerformance") + def disk_performance(self) -> Optional[str]: + return pulumi.get(self, "disk_performance") + @property @pulumi.getter(name="excludeSeries") def exclude_series(self) -> Optional[Sequence[str]]: return pulumi.get(self, "exclude_series") + @property + @pulumi.getter(name="maxGpu") + def max_gpu(self) -> Optional[float]: + return pulumi.get(self, "max_gpu") + @property @pulumi.getter(name="maxMemoryGib") def max_memory_gib(self) -> Optional[float]: @@ -2794,11 +3122,26 @@ def max_memory_gib(self) -> Optional[float]: def max_vcpu(self) -> Optional[int]: return pulumi.get(self, "max_vcpu") + @property + @pulumi.getter(name="minData") + def min_data(self) -> Optional[int]: + return pulumi.get(self, "min_data") + + @property + @pulumi.getter(name="minGpu") + def min_gpu(self) -> Optional[float]: + return pulumi.get(self, "min_gpu") + @property @pulumi.getter(name="minMemoryGib") def min_memory_gib(self) -> Optional[float]: return pulumi.get(self, "min_memory_gib") + @property + @pulumi.getter(name="minNics") + def min_nics(self) -> Optional[int]: + return pulumi.get(self, "min_nics") + @property @pulumi.getter(name="minVcpu") def min_vcpu(self) -> Optional[int]: @@ -2809,6 +3152,11 @@ def min_vcpu(self) -> Optional[int]: def series(self) -> Optional[Sequence[str]]: return pulumi.get(self, "series") + @property + @pulumi.getter(name="vmTypes") + def vm_types(self) -> Optional[Sequence[str]]: + return pulumi.get(self, "vm_types") + @pulumi.output_type class OceanNpHeadroom(dict): @@ -2854,7 +3202,17 @@ def _configure( gpu_per_unit: Optional[int] = None, memory_per_unit: Optional[int] = None, num_of_units: Optional[int] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'cpuPerUnit' in kwargs: + cpu_per_unit = kwargs['cpuPerUnit'] + if 'gpuPerUnit' in kwargs: + gpu_per_unit = kwargs['gpuPerUnit'] + if 'memoryPerUnit' in kwargs: + memory_per_unit = kwargs['memoryPerUnit'] + if 'numOfUnits' in kwargs: + num_of_units = kwargs['numOfUnits'] + if cpu_per_unit is not None: _setter("cpu_per_unit", cpu_per_unit) if gpu_per_unit is not None: @@ -2914,7 +3272,11 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], grace_period: Optional[int] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'gracePeriod' in kwargs: + grace_period = kwargs['gracePeriod'] + if grace_period is not None: _setter("grace_period", grace_period) @@ -2953,7 +3315,11 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], shutdown_hours: Optional['outputs.OceanNpSchedulingShutdownHours'] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'shutdownHours' in kwargs: + shutdown_hours = kwargs['shutdownHours'] + if shutdown_hours is not None: _setter("shutdown_hours", shutdown_hours) @@ -2997,7 +3363,13 @@ def _configure( _setter: Callable[[Any, Any], None], time_windows: Sequence[str], is_enabled: Optional[bool] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'timeWindows' in kwargs: + time_windows = kwargs['timeWindows'] + if 'isEnabled' in kwargs: + is_enabled = kwargs['isEnabled'] + _setter("time_windows", time_windows) if is_enabled is not None: _setter("is_enabled", is_enabled) @@ -3031,7 +3403,9 @@ def _configure( effect: str, key: str, value: str, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("effect", effect) _setter("key", key) _setter("value", value) @@ -3057,16 +3431,30 @@ class OceanNpVirtualNodeGroupFilters(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "excludeSeries": + if key == "acceleratedNetworking": + suggest = "accelerated_networking" + elif key == "diskPerformance": + suggest = "disk_performance" + elif key == "excludeSeries": suggest = "exclude_series" + elif key == "maxGpu": + suggest = "max_gpu" elif key == "maxMemoryGib": suggest = "max_memory_gib" elif key == "maxVcpu": suggest = "max_vcpu" + elif key == "minData": + suggest = "min_data" + elif key == "minGpu": + suggest = "min_gpu" elif key == "minMemoryGib": suggest = "min_memory_gib" + elif key == "minNics": + suggest = "min_nics" elif key == "minVcpu": suggest = "min_vcpu" + elif key == "vmTypes": + suggest = "vm_types" if suggest: pulumi.log.warn(f"Key '{key}' not found in OceanNpVirtualNodeGroupFilters. Access the value via the '{suggest}' property getter instead.") @@ -3080,59 +3468,135 @@ def get(self, key: str, default = None) -> Any: return super().get(key, default) def __init__(__self__, *, + accelerated_networking: Optional[str] = None, architectures: Optional[Sequence[str]] = None, + disk_performance: Optional[str] = None, exclude_series: Optional[Sequence[str]] = None, + max_gpu: Optional[float] = None, max_memory_gib: Optional[float] = None, max_vcpu: Optional[int] = None, + min_data: Optional[int] = None, + min_gpu: Optional[float] = None, min_memory_gib: Optional[float] = None, + min_nics: Optional[int] = None, min_vcpu: Optional[int] = None, - series: Optional[Sequence[str]] = None): + series: Optional[Sequence[str]] = None, + vm_types: Optional[Sequence[str]] = None): OceanNpVirtualNodeGroupFilters._configure( lambda key, value: pulumi.set(__self__, key, value), + accelerated_networking=accelerated_networking, architectures=architectures, + disk_performance=disk_performance, exclude_series=exclude_series, + max_gpu=max_gpu, max_memory_gib=max_memory_gib, max_vcpu=max_vcpu, + min_data=min_data, + min_gpu=min_gpu, min_memory_gib=min_memory_gib, + min_nics=min_nics, min_vcpu=min_vcpu, series=series, + vm_types=vm_types, ) @staticmethod def _configure( _setter: Callable[[Any, Any], None], + accelerated_networking: Optional[str] = None, architectures: Optional[Sequence[str]] = None, + disk_performance: Optional[str] = None, exclude_series: Optional[Sequence[str]] = None, + max_gpu: Optional[float] = None, max_memory_gib: Optional[float] = None, max_vcpu: Optional[int] = None, + min_data: Optional[int] = None, + min_gpu: Optional[float] = None, min_memory_gib: Optional[float] = None, + min_nics: Optional[int] = None, min_vcpu: Optional[int] = None, series: Optional[Sequence[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + vm_types: Optional[Sequence[str]] = None, + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'acceleratedNetworking' in kwargs: + accelerated_networking = kwargs['acceleratedNetworking'] + if 'diskPerformance' in kwargs: + disk_performance = kwargs['diskPerformance'] + if 'excludeSeries' in kwargs: + exclude_series = kwargs['excludeSeries'] + if 'maxGpu' in kwargs: + max_gpu = kwargs['maxGpu'] + if 'maxMemoryGib' in kwargs: + max_memory_gib = kwargs['maxMemoryGib'] + if 'maxVcpu' in kwargs: + max_vcpu = kwargs['maxVcpu'] + if 'minData' in kwargs: + min_data = kwargs['minData'] + if 'minGpu' in kwargs: + min_gpu = kwargs['minGpu'] + if 'minMemoryGib' in kwargs: + min_memory_gib = kwargs['minMemoryGib'] + if 'minNics' in kwargs: + min_nics = kwargs['minNics'] + if 'minVcpu' in kwargs: + min_vcpu = kwargs['minVcpu'] + if 'vmTypes' in kwargs: + vm_types = kwargs['vmTypes'] + + if accelerated_networking is not None: + _setter("accelerated_networking", accelerated_networking) if architectures is not None: _setter("architectures", architectures) + if disk_performance is not None: + _setter("disk_performance", disk_performance) if exclude_series is not None: _setter("exclude_series", exclude_series) + if max_gpu is not None: + _setter("max_gpu", max_gpu) if max_memory_gib is not None: _setter("max_memory_gib", max_memory_gib) if max_vcpu is not None: _setter("max_vcpu", max_vcpu) + if min_data is not None: + _setter("min_data", min_data) + if min_gpu is not None: + _setter("min_gpu", min_gpu) if min_memory_gib is not None: _setter("min_memory_gib", min_memory_gib) + if min_nics is not None: + _setter("min_nics", min_nics) if min_vcpu is not None: _setter("min_vcpu", min_vcpu) if series is not None: _setter("series", series) + if vm_types is not None: + _setter("vm_types", vm_types) + + @property + @pulumi.getter(name="acceleratedNetworking") + def accelerated_networking(self) -> Optional[str]: + return pulumi.get(self, "accelerated_networking") @property @pulumi.getter def architectures(self) -> Optional[Sequence[str]]: return pulumi.get(self, "architectures") + @property + @pulumi.getter(name="diskPerformance") + def disk_performance(self) -> Optional[str]: + return pulumi.get(self, "disk_performance") + @property @pulumi.getter(name="excludeSeries") def exclude_series(self) -> Optional[Sequence[str]]: return pulumi.get(self, "exclude_series") + @property + @pulumi.getter(name="maxGpu") + def max_gpu(self) -> Optional[float]: + return pulumi.get(self, "max_gpu") + @property @pulumi.getter(name="maxMemoryGib") def max_memory_gib(self) -> Optional[float]: @@ -3143,11 +3607,26 @@ def max_memory_gib(self) -> Optional[float]: def max_vcpu(self) -> Optional[int]: return pulumi.get(self, "max_vcpu") + @property + @pulumi.getter(name="minData") + def min_data(self) -> Optional[int]: + return pulumi.get(self, "min_data") + + @property + @pulumi.getter(name="minGpu") + def min_gpu(self) -> Optional[float]: + return pulumi.get(self, "min_gpu") + @property @pulumi.getter(name="minMemoryGib") def min_memory_gib(self) -> Optional[float]: return pulumi.get(self, "min_memory_gib") + @property + @pulumi.getter(name="minNics") + def min_nics(self) -> Optional[int]: + return pulumi.get(self, "min_nics") + @property @pulumi.getter(name="minVcpu") def min_vcpu(self) -> Optional[int]: @@ -3158,6 +3637,11 @@ def min_vcpu(self) -> Optional[int]: def series(self) -> Optional[Sequence[str]]: return pulumi.get(self, "series") + @property + @pulumi.getter(name="vmTypes") + def vm_types(self) -> Optional[Sequence[str]]: + return pulumi.get(self, "vm_types") + @pulumi.output_type class OceanNpVirtualNodeGroupHeadroom(dict): @@ -3203,7 +3687,17 @@ def _configure( gpu_per_unit: Optional[int] = None, memory_per_unit: Optional[int] = None, num_of_units: Optional[int] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'cpuPerUnit' in kwargs: + cpu_per_unit = kwargs['cpuPerUnit'] + if 'gpuPerUnit' in kwargs: + gpu_per_unit = kwargs['gpuPerUnit'] + if 'memoryPerUnit' in kwargs: + memory_per_unit = kwargs['memoryPerUnit'] + if 'numOfUnits' in kwargs: + num_of_units = kwargs['numOfUnits'] + if cpu_per_unit is not None: _setter("cpu_per_unit", cpu_per_unit) if gpu_per_unit is not None: @@ -3252,7 +3746,9 @@ def _configure( effect: str, key: str, value: str, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("effect", effect) _setter("key", key) _setter("value", value) @@ -3309,7 +3805,11 @@ def _configure( _setter: Callable[[Any, Any], None], size_gb: int, type: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'sizeGb' in kwargs: + size_gb = kwargs['sizeGb'] + _setter("size_gb", size_gb) if type is not None: _setter("type", type) @@ -3369,7 +3869,13 @@ def _configure( _setter: Callable[[Any, Any], None], fallback_to_ondemand: Optional[bool] = None, spot_percentage: Optional[int] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'fallbackToOndemand' in kwargs: + fallback_to_ondemand = kwargs['fallbackToOndemand'] + if 'spotPercentage' in kwargs: + spot_percentage = kwargs['spotPercentage'] + if fallback_to_ondemand is not None: _setter("fallback_to_ondemand", fallback_to_ondemand) if spot_percentage is not None: @@ -3411,7 +3917,9 @@ def _configure( _setter: Callable[[Any, Any], None], key: Optional[str] = None, value: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if key is not None: _setter("key", key) if value is not None: @@ -3471,7 +3979,13 @@ def _configure( _setter: Callable[[Any, Any], None], auto_headroom_percentage: Optional[int] = None, autoscale_headrooms: Optional[Sequence['outputs.OceanVirtualNodeGroupAutoscaleAutoscaleHeadroom']] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'autoHeadroomPercentage' in kwargs: + auto_headroom_percentage = kwargs['autoHeadroomPercentage'] + if 'autoscaleHeadrooms' in kwargs: + autoscale_headrooms = kwargs['autoscaleHeadrooms'] + if auto_headroom_percentage is not None: _setter("auto_headroom_percentage", auto_headroom_percentage) if autoscale_headrooms is not None: @@ -3541,7 +4055,17 @@ def _configure( cpu_per_unit: Optional[int] = None, gpu_per_unit: Optional[int] = None, memory_per_unit: Optional[int] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'numOfUnits' in kwargs: + num_of_units = kwargs['numOfUnits'] + if 'cpuPerUnit' in kwargs: + cpu_per_unit = kwargs['cpuPerUnit'] + if 'gpuPerUnit' in kwargs: + gpu_per_unit = kwargs['gpuPerUnit'] + if 'memoryPerUnit' in kwargs: + memory_per_unit = kwargs['memoryPerUnit'] + _setter("num_of_units", num_of_units) if cpu_per_unit is not None: _setter("cpu_per_unit", cpu_per_unit) @@ -3602,7 +4126,9 @@ def _configure( _setter: Callable[[Any, Any], None], key: str, value: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("key", key) if value is not None: _setter("value", value) @@ -3666,7 +4192,13 @@ def _configure( max_pods: Optional[int] = None, os_disk: Optional['outputs.OceanVirtualNodeGroupLaunchSpecificationOsDisk'] = None, tags: Optional[Sequence['outputs.OceanVirtualNodeGroupLaunchSpecificationTag']] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'maxPods' in kwargs: + max_pods = kwargs['maxPods'] + if 'osDisk' in kwargs: + os_disk = kwargs['osDisk'] + if max_pods is not None: _setter("max_pods", max_pods) if os_disk is not None: @@ -3741,7 +4273,13 @@ def _configure( size_gb: int, type: Optional[str] = None, utilize_ephemeral_storage: Optional[bool] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'sizeGb' in kwargs: + size_gb = kwargs['sizeGb'] + if 'utilizeEphemeralStorage' in kwargs: + utilize_ephemeral_storage = kwargs['utilizeEphemeralStorage'] + _setter("size_gb", size_gb) if type is not None: _setter("type", type) @@ -3792,7 +4330,9 @@ def _configure( _setter: Callable[[Any, Any], None], key: Optional[str] = None, value: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if key is not None: _setter("key", key) if value is not None: @@ -3847,7 +4387,11 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], max_instance_count: Optional[int] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'maxInstanceCount' in kwargs: + max_instance_count = kwargs['maxInstanceCount'] + if max_instance_count is not None: _setter("max_instance_count", max_instance_count) @@ -3883,7 +4427,9 @@ def _configure( effect: str, key: str, value: str, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("effect", effect) _setter("key", key) _setter("value", value) @@ -3928,7 +4474,9 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], whitelists: Optional[Sequence[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if whitelists is not None: _setter("whitelists", whitelists) diff --git a/sdk/python/pulumi_spotinst/data_integration.py b/sdk/python/pulumi_spotinst/data_integration.py index b9fc7be0..db84f4e8 100644 --- a/sdk/python/pulumi_spotinst/data_integration.py +++ b/sdk/python/pulumi_spotinst/data_integration.py @@ -37,7 +37,9 @@ def _configure( name: Optional[pulumi.Input[str]] = None, s3: Optional[pulumi.Input['DataIntegrationS3Args']] = None, status: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if name is not None: _setter("name", name) if s3 is not None: @@ -106,7 +108,9 @@ def _configure( name: Optional[pulumi.Input[str]] = None, s3: Optional[pulumi.Input['DataIntegrationS3Args']] = None, status: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if name is not None: _setter("name", name) if s3 is not None: diff --git a/sdk/python/pulumi_spotinst/ecs/_inputs.py b/sdk/python/pulumi_spotinst/ecs/_inputs.py index bd76e643..0b8c693b 100644 --- a/sdk/python/pulumi_spotinst/ecs/_inputs.py +++ b/sdk/python/pulumi_spotinst/ecs/_inputs.py @@ -93,7 +93,21 @@ def _configure( is_enabled: Optional[pulumi.Input[bool]] = None, resource_limits: Optional[pulumi.Input['OceanAutoscalerResourceLimitsArgs']] = None, should_scale_down_non_service_tasks: Optional[pulumi.Input[bool]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'autoHeadroomPercentage' in kwargs: + auto_headroom_percentage = kwargs['autoHeadroomPercentage'] + if 'enableAutomaticAndManualHeadroom' in kwargs: + enable_automatic_and_manual_headroom = kwargs['enableAutomaticAndManualHeadroom'] + if 'isAutoConfig' in kwargs: + is_auto_config = kwargs['isAutoConfig'] + if 'isEnabled' in kwargs: + is_enabled = kwargs['isEnabled'] + if 'resourceLimits' in kwargs: + resource_limits = kwargs['resourceLimits'] + if 'shouldScaleDownNonServiceTasks' in kwargs: + should_scale_down_non_service_tasks = kwargs['shouldScaleDownNonServiceTasks'] + if auto_headroom_percentage is not None: _setter("auto_headroom_percentage", auto_headroom_percentage) if cooldown is not None: @@ -241,7 +255,11 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], max_scale_down_percentage: Optional[pulumi.Input[float]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'maxScaleDownPercentage' in kwargs: + max_scale_down_percentage = kwargs['maxScaleDownPercentage'] + if max_scale_down_percentage is not None: _setter("max_scale_down_percentage", max_scale_down_percentage) @@ -281,7 +299,15 @@ def _configure( cpu_per_unit: Optional[pulumi.Input[int]] = None, memory_per_unit: Optional[pulumi.Input[int]] = None, num_of_units: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'cpuPerUnit' in kwargs: + cpu_per_unit = kwargs['cpuPerUnit'] + if 'memoryPerUnit' in kwargs: + memory_per_unit = kwargs['memoryPerUnit'] + if 'numOfUnits' in kwargs: + num_of_units = kwargs['numOfUnits'] + if cpu_per_unit is not None: _setter("cpu_per_unit", cpu_per_unit) if memory_per_unit is not None: @@ -345,7 +371,13 @@ def _configure( _setter: Callable[[Any, Any], None], max_memory_gib: Optional[pulumi.Input[int]] = None, max_vcpu: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'maxMemoryGib' in kwargs: + max_memory_gib = kwargs['maxMemoryGib'] + if 'maxVcpu' in kwargs: + max_vcpu = kwargs['maxVcpu'] + if max_memory_gib is not None: _setter("max_memory_gib", max_memory_gib) if max_vcpu is not None: @@ -402,7 +434,15 @@ def _configure( ebs: Optional[pulumi.Input['OceanBlockDeviceMappingEbsArgs']] = None, no_device: Optional[pulumi.Input[str]] = None, virtual_name: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'deviceName' in kwargs: + device_name = kwargs['deviceName'] + if 'noDevice' in kwargs: + no_device = kwargs['noDevice'] + if 'virtualName' in kwargs: + virtual_name = kwargs['virtualName'] + _setter("device_name", device_name) if ebs is not None: _setter("ebs", ebs) @@ -504,7 +544,21 @@ def _configure( throughput: Optional[pulumi.Input[int]] = None, volume_size: Optional[pulumi.Input[int]] = None, volume_type: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'deleteOnTermination' in kwargs: + delete_on_termination = kwargs['deleteOnTermination'] + if 'dynamicVolumeSize' in kwargs: + dynamic_volume_size = kwargs['dynamicVolumeSize'] + if 'kmsKeyId' in kwargs: + kms_key_id = kwargs['kmsKeyId'] + if 'snapshotId' in kwargs: + snapshot_id = kwargs['snapshotId'] + if 'volumeSize' in kwargs: + volume_size = kwargs['volumeSize'] + if 'volumeType' in kwargs: + volume_type = kwargs['volumeType'] + if delete_on_termination is not None: _setter("delete_on_termination", delete_on_termination) if dynamic_volume_size is not None: @@ -656,7 +710,13 @@ def _configure( base_size: pulumi.Input[int], resource: pulumi.Input[str], size_per_resource_unit: pulumi.Input[int], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'baseSize' in kwargs: + base_size = kwargs['baseSize'] + if 'sizePerResourceUnit' in kwargs: + size_per_resource_unit = kwargs['sizePerResourceUnit'] + _setter("base_size", base_size) _setter("resource", resource) _setter("size_per_resource_unit", size_per_resource_unit) @@ -713,7 +773,11 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], availability_vs_cost: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'availabilityVsCost' in kwargs: + availability_vs_cost = kwargs['availabilityVsCost'] + if availability_vs_cost is not None: _setter("availability_vs_cost", availability_vs_cost) @@ -817,7 +881,41 @@ def _configure( min_vcpu: Optional[pulumi.Input[int]] = None, root_device_types: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, virtualization_types: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'diskTypes' in kwargs: + disk_types = kwargs['diskTypes'] + if 'excludeFamilies' in kwargs: + exclude_families = kwargs['excludeFamilies'] + if 'excludeMetal' in kwargs: + exclude_metal = kwargs['excludeMetal'] + if 'includeFamilies' in kwargs: + include_families = kwargs['includeFamilies'] + if 'isEnaSupported' in kwargs: + is_ena_supported = kwargs['isEnaSupported'] + if 'maxGpu' in kwargs: + max_gpu = kwargs['maxGpu'] + if 'maxMemoryGib' in kwargs: + max_memory_gib = kwargs['maxMemoryGib'] + if 'maxNetworkPerformance' in kwargs: + max_network_performance = kwargs['maxNetworkPerformance'] + if 'maxVcpu' in kwargs: + max_vcpu = kwargs['maxVcpu'] + if 'minEnis' in kwargs: + min_enis = kwargs['minEnis'] + if 'minGpu' in kwargs: + min_gpu = kwargs['minGpu'] + if 'minMemoryGib' in kwargs: + min_memory_gib = kwargs['minMemoryGib'] + if 'minNetworkPerformance' in kwargs: + min_network_performance = kwargs['minNetworkPerformance'] + if 'minVcpu' in kwargs: + min_vcpu = kwargs['minVcpu'] + if 'rootDeviceTypes' in kwargs: + root_device_types = kwargs['rootDeviceTypes'] + if 'virtualizationTypes' in kwargs: + virtualization_types = kwargs['virtualizationTypes'] + if architectures is not None: _setter("architectures", architectures) if categories is not None: @@ -1105,7 +1203,13 @@ def _configure( _setter: Callable[[Any, Any], None], http_tokens: pulumi.Input[str], http_put_response_hop_limit: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'httpTokens' in kwargs: + http_tokens = kwargs['httpTokens'] + if 'httpPutResponseHopLimit' in kwargs: + http_put_response_hop_limit = kwargs['httpPutResponseHopLimit'] + _setter("http_tokens", http_tokens) if http_put_response_hop_limit is not None: _setter("http_put_response_hop_limit", http_put_response_hop_limit) @@ -1154,7 +1258,9 @@ def _configure( _setter: Callable[[Any, Any], None], key: pulumi.Input[str], value: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("key", key) _setter("value", value) @@ -1206,7 +1312,15 @@ def _configure( num_of_units: pulumi.Input[int], cpu_per_unit: Optional[pulumi.Input[int]] = None, memory_per_unit: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'numOfUnits' in kwargs: + num_of_units = kwargs['numOfUnits'] + if 'cpuPerUnit' in kwargs: + cpu_per_unit = kwargs['cpuPerUnit'] + if 'memoryPerUnit' in kwargs: + memory_per_unit = kwargs['memoryPerUnit'] + _setter("num_of_units", num_of_units) if cpu_per_unit is not None: _setter("cpu_per_unit", cpu_per_unit) @@ -1271,7 +1385,15 @@ def _configure( ebs: Optional[pulumi.Input['OceanLaunchSpecBlockDeviceMappingEbsArgs']] = None, no_device: Optional[pulumi.Input[str]] = None, virtual_name: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'deviceName' in kwargs: + device_name = kwargs['deviceName'] + if 'noDevice' in kwargs: + no_device = kwargs['noDevice'] + if 'virtualName' in kwargs: + virtual_name = kwargs['virtualName'] + _setter("device_name", device_name) if ebs is not None: _setter("ebs", ebs) @@ -1353,7 +1475,21 @@ def _configure( throughput: Optional[pulumi.Input[int]] = None, volume_size: Optional[pulumi.Input[int]] = None, volume_type: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'deleteOnTermination' in kwargs: + delete_on_termination = kwargs['deleteOnTermination'] + if 'dynamicVolumeSize' in kwargs: + dynamic_volume_size = kwargs['dynamicVolumeSize'] + if 'kmsKeyId' in kwargs: + kms_key_id = kwargs['kmsKeyId'] + if 'snapshotId' in kwargs: + snapshot_id = kwargs['snapshotId'] + if 'volumeSize' in kwargs: + volume_size = kwargs['volumeSize'] + if 'volumeType' in kwargs: + volume_type = kwargs['volumeType'] + if delete_on_termination is not None: _setter("delete_on_termination", delete_on_termination) if dynamic_volume_size is not None: @@ -1473,7 +1609,13 @@ def _configure( base_size: pulumi.Input[int], resource: pulumi.Input[str], size_per_resource_unit: pulumi.Input[int], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'baseSize' in kwargs: + base_size = kwargs['baseSize'] + if 'sizePerResourceUnit' in kwargs: + size_per_resource_unit = kwargs['sizePerResourceUnit'] + _setter("base_size", base_size) _setter("resource", resource) _setter("size_per_resource_unit", size_per_resource_unit) @@ -1525,7 +1667,13 @@ def _configure( _setter: Callable[[Any, Any], None], http_tokens: pulumi.Input[str], http_put_response_hop_limit: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'httpTokens' in kwargs: + http_tokens = kwargs['httpTokens'] + if 'httpPutResponseHopLimit' in kwargs: + http_put_response_hop_limit = kwargs['httpPutResponseHopLimit'] + _setter("http_tokens", http_tokens) if http_put_response_hop_limit is not None: _setter("http_put_response_hop_limit", http_put_response_hop_limit) @@ -1582,7 +1730,17 @@ def _configure( is_enabled: pulumi.Input[bool], task_type: pulumi.Input[str], task_headrooms: Optional[pulumi.Input[Sequence[pulumi.Input['OceanLaunchSpecSchedulingTaskTaskHeadroomArgs']]]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'cronExpression' in kwargs: + cron_expression = kwargs['cronExpression'] + if 'isEnabled' in kwargs: + is_enabled = kwargs['isEnabled'] + if 'taskType' in kwargs: + task_type = kwargs['taskType'] + if 'taskHeadrooms' in kwargs: + task_headrooms = kwargs['taskHeadrooms'] + _setter("cron_expression", cron_expression) _setter("is_enabled", is_enabled) _setter("task_type", task_type) @@ -1661,7 +1819,15 @@ def _configure( num_of_units: pulumi.Input[int], cpu_per_unit: Optional[pulumi.Input[int]] = None, memory_per_unit: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'numOfUnits' in kwargs: + num_of_units = kwargs['numOfUnits'] + if 'cpuPerUnit' in kwargs: + cpu_per_unit = kwargs['cpuPerUnit'] + if 'memoryPerUnit' in kwargs: + memory_per_unit = kwargs['memoryPerUnit'] + _setter("num_of_units", num_of_units) if cpu_per_unit is not None: _setter("cpu_per_unit", cpu_per_unit) @@ -1722,7 +1888,11 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], spot_percentage: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'spotPercentage' in kwargs: + spot_percentage = kwargs['spotPercentage'] + if spot_percentage is not None: _setter("spot_percentage", spot_percentage) @@ -1760,7 +1930,9 @@ def _configure( _setter: Callable[[Any, Any], None], key: pulumi.Input[str], value: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("key", key) _setter("value", value) @@ -1804,7 +1976,9 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], export: Optional[pulumi.Input['OceanLoggingExportArgs']] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if export is not None: _setter("export", export) @@ -1836,7 +2010,9 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], s3s: Optional[pulumi.Input[Sequence[pulumi.Input['OceanLoggingExportS3Args']]]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if s3s is not None: _setter("s3s", s3s) @@ -1868,7 +2044,9 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], id: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("id", id) @property @@ -1907,7 +2085,15 @@ def _configure( perform_at: pulumi.Input[str], should_optimize_ecs_ami: pulumi.Input[bool], time_windows: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'performAt' in kwargs: + perform_at = kwargs['performAt'] + if 'shouldOptimizeEcsAmi' in kwargs: + should_optimize_ecs_ami = kwargs['shouldOptimizeEcsAmi'] + if 'timeWindows' in kwargs: + time_windows = kwargs['timeWindows'] + _setter("perform_at", perform_at) _setter("should_optimize_ecs_ami", should_optimize_ecs_ami) if time_windows is not None: @@ -1969,7 +2155,11 @@ def _configure( _setter: Callable[[Any, Any], None], shutdown_hours: Optional[pulumi.Input['OceanScheduledTaskShutdownHoursArgs']] = None, tasks: Optional[pulumi.Input[Sequence[pulumi.Input['OceanScheduledTaskTaskArgs']]]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'shutdownHours' in kwargs: + shutdown_hours = kwargs['shutdownHours'] + if shutdown_hours is not None: _setter("shutdown_hours", shutdown_hours) if tasks is not None: @@ -2019,7 +2209,13 @@ def _configure( _setter: Callable[[Any, Any], None], time_windows: pulumi.Input[Sequence[pulumi.Input[str]]], is_enabled: Optional[pulumi.Input[bool]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'timeWindows' in kwargs: + time_windows = kwargs['timeWindows'] + if 'isEnabled' in kwargs: + is_enabled = kwargs['isEnabled'] + _setter("time_windows", time_windows) if is_enabled is not None: _setter("is_enabled", is_enabled) @@ -2079,7 +2275,15 @@ def _configure( cron_expression: pulumi.Input[str], is_enabled: pulumi.Input[bool], task_type: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'cronExpression' in kwargs: + cron_expression = kwargs['cronExpression'] + if 'isEnabled' in kwargs: + is_enabled = kwargs['isEnabled'] + if 'taskType' in kwargs: + task_type = kwargs['taskType'] + _setter("cron_expression", cron_expression) _setter("is_enabled", is_enabled) _setter("task_type", task_type) @@ -2147,7 +2351,9 @@ def _configure( _setter: Callable[[Any, Any], None], key: pulumi.Input[str], value: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("key", key) _setter("value", value) @@ -2202,7 +2408,17 @@ def _configure( auto_apply_tags: Optional[pulumi.Input[bool]] = None, conditioned_roll: Optional[pulumi.Input[bool]] = None, roll_config: Optional[pulumi.Input['OceanUpdatePolicyRollConfigArgs']] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'shouldRoll' in kwargs: + should_roll = kwargs['shouldRoll'] + if 'autoApplyTags' in kwargs: + auto_apply_tags = kwargs['autoApplyTags'] + if 'conditionedRoll' in kwargs: + conditioned_roll = kwargs['conditionedRoll'] + if 'rollConfig' in kwargs: + roll_config = kwargs['rollConfig'] + _setter("should_roll", should_roll) if auto_apply_tags is not None: _setter("auto_apply_tags", auto_apply_tags) @@ -2280,7 +2496,13 @@ def _configure( _setter: Callable[[Any, Any], None], batch_size_percentage: pulumi.Input[int], batch_min_healthy_percentage: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'batchSizePercentage' in kwargs: + batch_size_percentage = kwargs['batchSizePercentage'] + if 'batchMinHealthyPercentage' in kwargs: + batch_min_healthy_percentage = kwargs['batchMinHealthyPercentage'] + _setter("batch_size_percentage", batch_size_percentage) if batch_min_healthy_percentage is not None: _setter("batch_min_healthy_percentage", batch_min_healthy_percentage) diff --git a/sdk/python/pulumi_spotinst/ecs/ocean.py b/sdk/python/pulumi_spotinst/ecs/ocean.py index 8ed7c032..6e78bf3a 100644 --- a/sdk/python/pulumi_spotinst/ecs/ocean.py +++ b/sdk/python/pulumi_spotinst/ecs/ocean.py @@ -152,7 +152,55 @@ def _configure( utilize_commitments: Optional[pulumi.Input[bool]] = None, utilize_reserved_instances: Optional[pulumi.Input[bool]] = None, whitelists: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'clusterName' in kwargs: + cluster_name = kwargs['clusterName'] + if 'securityGroupIds' in kwargs: + security_group_ids = kwargs['securityGroupIds'] + if 'subnetIds' in kwargs: + subnet_ids = kwargs['subnetIds'] + if 'associatePublicIpAddress' in kwargs: + associate_public_ip_address = kwargs['associatePublicIpAddress'] + if 'blockDeviceMappings' in kwargs: + block_device_mappings = kwargs['blockDeviceMappings'] + if 'clusterOrientations' in kwargs: + cluster_orientations = kwargs['clusterOrientations'] + if 'desiredCapacity' in kwargs: + desired_capacity = kwargs['desiredCapacity'] + if 'drainingTimeout' in kwargs: + draining_timeout = kwargs['drainingTimeout'] + if 'ebsOptimized' in kwargs: + ebs_optimized = kwargs['ebsOptimized'] + if 'iamInstanceProfile' in kwargs: + iam_instance_profile = kwargs['iamInstanceProfile'] + if 'imageId' in kwargs: + image_id = kwargs['imageId'] + if 'instanceMetadataOptions' in kwargs: + instance_metadata_options = kwargs['instanceMetadataOptions'] + if 'keyPair' in kwargs: + key_pair = kwargs['keyPair'] + if 'maxSize' in kwargs: + max_size = kwargs['maxSize'] + if 'minSize' in kwargs: + min_size = kwargs['minSize'] + if 'optimizeImages' in kwargs: + optimize_images = kwargs['optimizeImages'] + if 'scheduledTasks' in kwargs: + scheduled_tasks = kwargs['scheduledTasks'] + if 'spotPercentage' in kwargs: + spot_percentage = kwargs['spotPercentage'] + if 'updatePolicy' in kwargs: + update_policy = kwargs['updatePolicy'] + if 'useAsTemplateOnly' in kwargs: + use_as_template_only = kwargs['useAsTemplateOnly'] + if 'userData' in kwargs: + user_data = kwargs['userData'] + if 'utilizeCommitments' in kwargs: + utilize_commitments = kwargs['utilizeCommitments'] + if 'utilizeReservedInstances' in kwargs: + utilize_reserved_instances = kwargs['utilizeReservedInstances'] + _setter("cluster_name", cluster_name) _setter("region", region) _setter("security_group_ids", security_group_ids) @@ -735,7 +783,55 @@ def _configure( utilize_commitments: Optional[pulumi.Input[bool]] = None, utilize_reserved_instances: Optional[pulumi.Input[bool]] = None, whitelists: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'associatePublicIpAddress' in kwargs: + associate_public_ip_address = kwargs['associatePublicIpAddress'] + if 'blockDeviceMappings' in kwargs: + block_device_mappings = kwargs['blockDeviceMappings'] + if 'clusterName' in kwargs: + cluster_name = kwargs['clusterName'] + if 'clusterOrientations' in kwargs: + cluster_orientations = kwargs['clusterOrientations'] + if 'desiredCapacity' in kwargs: + desired_capacity = kwargs['desiredCapacity'] + if 'drainingTimeout' in kwargs: + draining_timeout = kwargs['drainingTimeout'] + if 'ebsOptimized' in kwargs: + ebs_optimized = kwargs['ebsOptimized'] + if 'iamInstanceProfile' in kwargs: + iam_instance_profile = kwargs['iamInstanceProfile'] + if 'imageId' in kwargs: + image_id = kwargs['imageId'] + if 'instanceMetadataOptions' in kwargs: + instance_metadata_options = kwargs['instanceMetadataOptions'] + if 'keyPair' in kwargs: + key_pair = kwargs['keyPair'] + if 'maxSize' in kwargs: + max_size = kwargs['maxSize'] + if 'minSize' in kwargs: + min_size = kwargs['minSize'] + if 'optimizeImages' in kwargs: + optimize_images = kwargs['optimizeImages'] + if 'scheduledTasks' in kwargs: + scheduled_tasks = kwargs['scheduledTasks'] + if 'securityGroupIds' in kwargs: + security_group_ids = kwargs['securityGroupIds'] + if 'spotPercentage' in kwargs: + spot_percentage = kwargs['spotPercentage'] + if 'subnetIds' in kwargs: + subnet_ids = kwargs['subnetIds'] + if 'updatePolicy' in kwargs: + update_policy = kwargs['updatePolicy'] + if 'useAsTemplateOnly' in kwargs: + use_as_template_only = kwargs['useAsTemplateOnly'] + if 'userData' in kwargs: + user_data = kwargs['userData'] + if 'utilizeCommitments' in kwargs: + utilize_commitments = kwargs['utilizeCommitments'] + if 'utilizeReservedInstances' in kwargs: + utilize_reserved_instances = kwargs['utilizeReservedInstances'] + if associate_public_ip_address is not None: _setter("associate_public_ip_address", associate_public_ip_address) if autoscaler is not None: diff --git a/sdk/python/pulumi_spotinst/ecs/ocean_launch_spec.py b/sdk/python/pulumi_spotinst/ecs/ocean_launch_spec.py index 70c2791a..b2e8aa31 100644 --- a/sdk/python/pulumi_spotinst/ecs/ocean_launch_spec.py +++ b/sdk/python/pulumi_spotinst/ecs/ocean_launch_spec.py @@ -92,7 +92,35 @@ def _configure( subnet_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, tags: Optional[pulumi.Input[Sequence[pulumi.Input['OceanLaunchSpecTagArgs']]]] = None, user_data: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'oceanId' in kwargs: + ocean_id = kwargs['oceanId'] + if 'autoscaleHeadrooms' in kwargs: + autoscale_headrooms = kwargs['autoscaleHeadrooms'] + if 'blockDeviceMappings' in kwargs: + block_device_mappings = kwargs['blockDeviceMappings'] + if 'iamInstanceProfile' in kwargs: + iam_instance_profile = kwargs['iamInstanceProfile'] + if 'imageId' in kwargs: + image_id = kwargs['imageId'] + if 'instanceMetadataOptions' in kwargs: + instance_metadata_options = kwargs['instanceMetadataOptions'] + if 'instanceTypes' in kwargs: + instance_types = kwargs['instanceTypes'] + if 'preferredSpotTypes' in kwargs: + preferred_spot_types = kwargs['preferredSpotTypes'] + if 'restrictScaleDown' in kwargs: + restrict_scale_down = kwargs['restrictScaleDown'] + if 'schedulingTasks' in kwargs: + scheduling_tasks = kwargs['schedulingTasks'] + if 'securityGroupIds' in kwargs: + security_group_ids = kwargs['securityGroupIds'] + if 'subnetIds' in kwargs: + subnet_ids = kwargs['subnetIds'] + if 'userData' in kwargs: + user_data = kwargs['userData'] + _setter("ocean_id", ocean_id) if attributes is not None: _setter("attributes", attributes) @@ -408,7 +436,35 @@ def _configure( subnet_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, tags: Optional[pulumi.Input[Sequence[pulumi.Input['OceanLaunchSpecTagArgs']]]] = None, user_data: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'autoscaleHeadrooms' in kwargs: + autoscale_headrooms = kwargs['autoscaleHeadrooms'] + if 'blockDeviceMappings' in kwargs: + block_device_mappings = kwargs['blockDeviceMappings'] + if 'iamInstanceProfile' in kwargs: + iam_instance_profile = kwargs['iamInstanceProfile'] + if 'imageId' in kwargs: + image_id = kwargs['imageId'] + if 'instanceMetadataOptions' in kwargs: + instance_metadata_options = kwargs['instanceMetadataOptions'] + if 'instanceTypes' in kwargs: + instance_types = kwargs['instanceTypes'] + if 'oceanId' in kwargs: + ocean_id = kwargs['oceanId'] + if 'preferredSpotTypes' in kwargs: + preferred_spot_types = kwargs['preferredSpotTypes'] + if 'restrictScaleDown' in kwargs: + restrict_scale_down = kwargs['restrictScaleDown'] + if 'schedulingTasks' in kwargs: + scheduling_tasks = kwargs['schedulingTasks'] + if 'securityGroupIds' in kwargs: + security_group_ids = kwargs['securityGroupIds'] + if 'subnetIds' in kwargs: + subnet_ids = kwargs['subnetIds'] + if 'userData' in kwargs: + user_data = kwargs['userData'] + if attributes is not None: _setter("attributes", attributes) if autoscale_headrooms is not None: diff --git a/sdk/python/pulumi_spotinst/ecs/outputs.py b/sdk/python/pulumi_spotinst/ecs/outputs.py index 66f66d3e..1143da80 100644 --- a/sdk/python/pulumi_spotinst/ecs/outputs.py +++ b/sdk/python/pulumi_spotinst/ecs/outputs.py @@ -121,7 +121,21 @@ def _configure( is_enabled: Optional[bool] = None, resource_limits: Optional['outputs.OceanAutoscalerResourceLimits'] = None, should_scale_down_non_service_tasks: Optional[bool] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'autoHeadroomPercentage' in kwargs: + auto_headroom_percentage = kwargs['autoHeadroomPercentage'] + if 'enableAutomaticAndManualHeadroom' in kwargs: + enable_automatic_and_manual_headroom = kwargs['enableAutomaticAndManualHeadroom'] + if 'isAutoConfig' in kwargs: + is_auto_config = kwargs['isAutoConfig'] + if 'isEnabled' in kwargs: + is_enabled = kwargs['isEnabled'] + if 'resourceLimits' in kwargs: + resource_limits = kwargs['resourceLimits'] + if 'shouldScaleDownNonServiceTasks' in kwargs: + should_scale_down_non_service_tasks = kwargs['shouldScaleDownNonServiceTasks'] + if auto_headroom_percentage is not None: _setter("auto_headroom_percentage", auto_headroom_percentage) if cooldown is not None: @@ -250,7 +264,11 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], max_scale_down_percentage: Optional[float] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'maxScaleDownPercentage' in kwargs: + max_scale_down_percentage = kwargs['maxScaleDownPercentage'] + if max_scale_down_percentage is not None: _setter("max_scale_down_percentage", max_scale_down_percentage) @@ -307,7 +325,15 @@ def _configure( cpu_per_unit: Optional[int] = None, memory_per_unit: Optional[int] = None, num_of_units: Optional[int] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'cpuPerUnit' in kwargs: + cpu_per_unit = kwargs['cpuPerUnit'] + if 'memoryPerUnit' in kwargs: + memory_per_unit = kwargs['memoryPerUnit'] + if 'numOfUnits' in kwargs: + num_of_units = kwargs['numOfUnits'] + if cpu_per_unit is not None: _setter("cpu_per_unit", cpu_per_unit) if memory_per_unit is not None: @@ -378,7 +404,13 @@ def _configure( _setter: Callable[[Any, Any], None], max_memory_gib: Optional[int] = None, max_vcpu: Optional[int] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'maxMemoryGib' in kwargs: + max_memory_gib = kwargs['maxMemoryGib'] + if 'maxVcpu' in kwargs: + max_vcpu = kwargs['maxVcpu'] + if max_memory_gib is not None: _setter("max_memory_gib", max_memory_gib) if max_vcpu is not None: @@ -448,7 +480,15 @@ def _configure( ebs: Optional['outputs.OceanBlockDeviceMappingEbs'] = None, no_device: Optional[str] = None, virtual_name: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'deviceName' in kwargs: + device_name = kwargs['deviceName'] + if 'noDevice' in kwargs: + no_device = kwargs['noDevice'] + if 'virtualName' in kwargs: + virtual_name = kwargs['virtualName'] + _setter("device_name", device_name) if ebs is not None: _setter("ebs", ebs) @@ -561,7 +601,21 @@ def _configure( throughput: Optional[int] = None, volume_size: Optional[int] = None, volume_type: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'deleteOnTermination' in kwargs: + delete_on_termination = kwargs['deleteOnTermination'] + if 'dynamicVolumeSize' in kwargs: + dynamic_volume_size = kwargs['dynamicVolumeSize'] + if 'kmsKeyId' in kwargs: + kms_key_id = kwargs['kmsKeyId'] + if 'snapshotId' in kwargs: + snapshot_id = kwargs['snapshotId'] + if 'volumeSize' in kwargs: + volume_size = kwargs['volumeSize'] + if 'volumeType' in kwargs: + volume_type = kwargs['volumeType'] + if delete_on_termination is not None: _setter("delete_on_termination", delete_on_termination) if dynamic_volume_size is not None: @@ -696,7 +750,13 @@ def _configure( base_size: int, resource: str, size_per_resource_unit: int, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'baseSize' in kwargs: + base_size = kwargs['baseSize'] + if 'sizePerResourceUnit' in kwargs: + size_per_resource_unit = kwargs['sizePerResourceUnit'] + _setter("base_size", base_size) _setter("resource", resource) _setter("size_per_resource_unit", size_per_resource_unit) @@ -758,7 +818,11 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], availability_vs_cost: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'availabilityVsCost' in kwargs: + availability_vs_cost = kwargs['availabilityVsCost'] + if availability_vs_cost is not None: _setter("availability_vs_cost", availability_vs_cost) @@ -905,7 +969,41 @@ def _configure( min_vcpu: Optional[int] = None, root_device_types: Optional[Sequence[str]] = None, virtualization_types: Optional[Sequence[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'diskTypes' in kwargs: + disk_types = kwargs['diskTypes'] + if 'excludeFamilies' in kwargs: + exclude_families = kwargs['excludeFamilies'] + if 'excludeMetal' in kwargs: + exclude_metal = kwargs['excludeMetal'] + if 'includeFamilies' in kwargs: + include_families = kwargs['includeFamilies'] + if 'isEnaSupported' in kwargs: + is_ena_supported = kwargs['isEnaSupported'] + if 'maxGpu' in kwargs: + max_gpu = kwargs['maxGpu'] + if 'maxMemoryGib' in kwargs: + max_memory_gib = kwargs['maxMemoryGib'] + if 'maxNetworkPerformance' in kwargs: + max_network_performance = kwargs['maxNetworkPerformance'] + if 'maxVcpu' in kwargs: + max_vcpu = kwargs['maxVcpu'] + if 'minEnis' in kwargs: + min_enis = kwargs['minEnis'] + if 'minGpu' in kwargs: + min_gpu = kwargs['minGpu'] + if 'minMemoryGib' in kwargs: + min_memory_gib = kwargs['minMemoryGib'] + if 'minNetworkPerformance' in kwargs: + min_network_performance = kwargs['minNetworkPerformance'] + if 'minVcpu' in kwargs: + min_vcpu = kwargs['minVcpu'] + if 'rootDeviceTypes' in kwargs: + root_device_types = kwargs['rootDeviceTypes'] + if 'virtualizationTypes' in kwargs: + virtualization_types = kwargs['virtualizationTypes'] + if architectures is not None: _setter("architectures", architectures) if categories is not None: @@ -1136,7 +1234,13 @@ def _configure( _setter: Callable[[Any, Any], None], http_tokens: str, http_put_response_hop_limit: Optional[int] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'httpTokens' in kwargs: + http_tokens = kwargs['httpTokens'] + if 'httpPutResponseHopLimit' in kwargs: + http_put_response_hop_limit = kwargs['httpPutResponseHopLimit'] + _setter("http_tokens", http_tokens) if http_put_response_hop_limit is not None: _setter("http_put_response_hop_limit", http_put_response_hop_limit) @@ -1177,7 +1281,9 @@ def _configure( _setter: Callable[[Any, Any], None], key: str, value: str, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("key", key) _setter("value", value) @@ -1242,7 +1348,15 @@ def _configure( num_of_units: int, cpu_per_unit: Optional[int] = None, memory_per_unit: Optional[int] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'numOfUnits' in kwargs: + num_of_units = kwargs['numOfUnits'] + if 'cpuPerUnit' in kwargs: + cpu_per_unit = kwargs['cpuPerUnit'] + if 'memoryPerUnit' in kwargs: + memory_per_unit = kwargs['memoryPerUnit'] + _setter("num_of_units", num_of_units) if cpu_per_unit is not None: _setter("cpu_per_unit", cpu_per_unit) @@ -1316,7 +1430,15 @@ def _configure( ebs: Optional['outputs.OceanLaunchSpecBlockDeviceMappingEbs'] = None, no_device: Optional[str] = None, virtual_name: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'deviceName' in kwargs: + device_name = kwargs['deviceName'] + if 'noDevice' in kwargs: + no_device = kwargs['noDevice'] + if 'virtualName' in kwargs: + virtual_name = kwargs['virtualName'] + _setter("device_name", device_name) if ebs is not None: _setter("ebs", ebs) @@ -1409,7 +1531,21 @@ def _configure( throughput: Optional[int] = None, volume_size: Optional[int] = None, volume_type: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'deleteOnTermination' in kwargs: + delete_on_termination = kwargs['deleteOnTermination'] + if 'dynamicVolumeSize' in kwargs: + dynamic_volume_size = kwargs['dynamicVolumeSize'] + if 'kmsKeyId' in kwargs: + kms_key_id = kwargs['kmsKeyId'] + if 'snapshotId' in kwargs: + snapshot_id = kwargs['snapshotId'] + if 'volumeSize' in kwargs: + volume_size = kwargs['volumeSize'] + if 'volumeType' in kwargs: + volume_type = kwargs['volumeType'] + if delete_on_termination is not None: _setter("delete_on_termination", delete_on_termination) if dynamic_volume_size is not None: @@ -1512,7 +1648,13 @@ def _configure( base_size: int, resource: str, size_per_resource_unit: int, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'baseSize' in kwargs: + base_size = kwargs['baseSize'] + if 'sizePerResourceUnit' in kwargs: + size_per_resource_unit = kwargs['sizePerResourceUnit'] + _setter("base_size", base_size) _setter("resource", resource) _setter("size_per_resource_unit", size_per_resource_unit) @@ -1571,7 +1713,13 @@ def _configure( _setter: Callable[[Any, Any], None], http_tokens: str, http_put_response_hop_limit: Optional[int] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'httpTokens' in kwargs: + http_tokens = kwargs['httpTokens'] + if 'httpPutResponseHopLimit' in kwargs: + http_put_response_hop_limit = kwargs['httpPutResponseHopLimit'] + _setter("http_tokens", http_tokens) if http_put_response_hop_limit is not None: _setter("http_put_response_hop_limit", http_put_response_hop_limit) @@ -1643,7 +1791,17 @@ def _configure( is_enabled: bool, task_type: str, task_headrooms: Optional[Sequence['outputs.OceanLaunchSpecSchedulingTaskTaskHeadroom']] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'cronExpression' in kwargs: + cron_expression = kwargs['cronExpression'] + if 'isEnabled' in kwargs: + is_enabled = kwargs['isEnabled'] + if 'taskType' in kwargs: + task_type = kwargs['taskType'] + if 'taskHeadrooms' in kwargs: + task_headrooms = kwargs['taskHeadrooms'] + _setter("cron_expression", cron_expression) _setter("is_enabled", is_enabled) _setter("task_type", task_type) @@ -1727,7 +1885,15 @@ def _configure( num_of_units: int, cpu_per_unit: Optional[int] = None, memory_per_unit: Optional[int] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'numOfUnits' in kwargs: + num_of_units = kwargs['numOfUnits'] + if 'cpuPerUnit' in kwargs: + cpu_per_unit = kwargs['cpuPerUnit'] + if 'memoryPerUnit' in kwargs: + memory_per_unit = kwargs['memoryPerUnit'] + _setter("num_of_units", num_of_units) if cpu_per_unit is not None: _setter("cpu_per_unit", cpu_per_unit) @@ -1793,7 +1959,11 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], spot_percentage: Optional[int] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'spotPercentage' in kwargs: + spot_percentage = kwargs['spotPercentage'] + if spot_percentage is not None: _setter("spot_percentage", spot_percentage) @@ -1827,7 +1997,9 @@ def _configure( _setter: Callable[[Any, Any], None], key: str, value: str, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("key", key) _setter("value", value) @@ -1863,7 +2035,9 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], export: Optional['outputs.OceanLoggingExport'] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if export is not None: _setter("export", export) @@ -1891,7 +2065,9 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], s3s: Optional[Sequence['outputs.OceanLoggingExportS3']] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if s3s is not None: _setter("s3s", s3s) @@ -1919,7 +2095,9 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], id: str, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("id", id) @property @@ -1975,7 +2153,15 @@ def _configure( perform_at: str, should_optimize_ecs_ami: bool, time_windows: Optional[Sequence[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'performAt' in kwargs: + perform_at = kwargs['performAt'] + if 'shouldOptimizeEcsAmi' in kwargs: + should_optimize_ecs_ami = kwargs['shouldOptimizeEcsAmi'] + if 'timeWindows' in kwargs: + time_windows = kwargs['timeWindows'] + _setter("perform_at", perform_at) _setter("should_optimize_ecs_ami", should_optimize_ecs_ami) if time_windows is not None: @@ -2042,7 +2228,11 @@ def _configure( _setter: Callable[[Any, Any], None], shutdown_hours: Optional['outputs.OceanScheduledTaskShutdownHours'] = None, tasks: Optional[Sequence['outputs.OceanScheduledTaskTask']] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'shutdownHours' in kwargs: + shutdown_hours = kwargs['shutdownHours'] + if shutdown_hours is not None: _setter("shutdown_hours", shutdown_hours) if tasks is not None: @@ -2103,7 +2293,13 @@ def _configure( _setter: Callable[[Any, Any], None], time_windows: Sequence[str], is_enabled: Optional[bool] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'timeWindows' in kwargs: + time_windows = kwargs['timeWindows'] + if 'isEnabled' in kwargs: + is_enabled = kwargs['isEnabled'] + _setter("time_windows", time_windows) if is_enabled is not None: _setter("is_enabled", is_enabled) @@ -2176,7 +2372,15 @@ def _configure( cron_expression: str, is_enabled: bool, task_type: str, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'cronExpression' in kwargs: + cron_expression = kwargs['cronExpression'] + if 'isEnabled' in kwargs: + is_enabled = kwargs['isEnabled'] + if 'taskType' in kwargs: + task_type = kwargs['taskType'] + _setter("cron_expression", cron_expression) _setter("is_enabled", is_enabled) _setter("task_type", task_type) @@ -2232,7 +2436,9 @@ def _configure( _setter: Callable[[Any, Any], None], key: str, value: str, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("key", key) _setter("value", value) @@ -2302,7 +2508,17 @@ def _configure( auto_apply_tags: Optional[bool] = None, conditioned_roll: Optional[bool] = None, roll_config: Optional['outputs.OceanUpdatePolicyRollConfig'] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'shouldRoll' in kwargs: + should_roll = kwargs['shouldRoll'] + if 'autoApplyTags' in kwargs: + auto_apply_tags = kwargs['autoApplyTags'] + if 'conditionedRoll' in kwargs: + conditioned_roll = kwargs['conditionedRoll'] + if 'rollConfig' in kwargs: + roll_config = kwargs['rollConfig'] + _setter("should_roll", should_roll) if auto_apply_tags is not None: _setter("auto_apply_tags", auto_apply_tags) @@ -2383,7 +2599,13 @@ def _configure( _setter: Callable[[Any, Any], None], batch_size_percentage: int, batch_min_healthy_percentage: Optional[int] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'batchSizePercentage' in kwargs: + batch_size_percentage = kwargs['batchSizePercentage'] + if 'batchMinHealthyPercentage' in kwargs: + batch_min_healthy_percentage = kwargs['batchMinHealthyPercentage'] + _setter("batch_size_percentage", batch_size_percentage) if batch_min_healthy_percentage is not None: _setter("batch_min_healthy_percentage", batch_min_healthy_percentage) diff --git a/sdk/python/pulumi_spotinst/elastigroup_azure_v3.py b/sdk/python/pulumi_spotinst/elastigroup_azure_v3.py index 01cc50fc..28398cb5 100644 --- a/sdk/python/pulumi_spotinst/elastigroup_azure_v3.py +++ b/sdk/python/pulumi_spotinst/elastigroup_azure_v3.py @@ -82,7 +82,33 @@ def _configure( on_demand_count: Optional[pulumi.Input[int]] = None, spot_percentage: Optional[pulumi.Input[int]] = None, tags: Optional[pulumi.Input[Sequence[pulumi.Input['ElastigroupAzureV3TagArgs']]]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'fallbackToOnDemand' in kwargs: + fallback_to_on_demand = kwargs['fallbackToOnDemand'] + if 'odSizes' in kwargs: + od_sizes = kwargs['odSizes'] + if 'resourceGroupName' in kwargs: + resource_group_name = kwargs['resourceGroupName'] + if 'spotSizes' in kwargs: + spot_sizes = kwargs['spotSizes'] + if 'customData' in kwargs: + custom_data = kwargs['customData'] + if 'desiredCapacity' in kwargs: + desired_capacity = kwargs['desiredCapacity'] + if 'drainingTimeout' in kwargs: + draining_timeout = kwargs['drainingTimeout'] + if 'managedServiceIdentities' in kwargs: + managed_service_identities = kwargs['managedServiceIdentities'] + if 'maxSize' in kwargs: + max_size = kwargs['maxSize'] + if 'minSize' in kwargs: + min_size = kwargs['minSize'] + if 'onDemandCount' in kwargs: + on_demand_count = kwargs['onDemandCount'] + if 'spotPercentage' in kwargs: + spot_percentage = kwargs['spotPercentage'] + _setter("fallback_to_on_demand", fallback_to_on_demand) _setter("network", network) _setter("od_sizes", od_sizes) @@ -356,7 +382,33 @@ def _configure( spot_percentage: Optional[pulumi.Input[int]] = None, spot_sizes: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, tags: Optional[pulumi.Input[Sequence[pulumi.Input['ElastigroupAzureV3TagArgs']]]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'customData' in kwargs: + custom_data = kwargs['customData'] + if 'desiredCapacity' in kwargs: + desired_capacity = kwargs['desiredCapacity'] + if 'drainingTimeout' in kwargs: + draining_timeout = kwargs['drainingTimeout'] + if 'fallbackToOnDemand' in kwargs: + fallback_to_on_demand = kwargs['fallbackToOnDemand'] + if 'managedServiceIdentities' in kwargs: + managed_service_identities = kwargs['managedServiceIdentities'] + if 'maxSize' in kwargs: + max_size = kwargs['maxSize'] + if 'minSize' in kwargs: + min_size = kwargs['minSize'] + if 'odSizes' in kwargs: + od_sizes = kwargs['odSizes'] + if 'onDemandCount' in kwargs: + on_demand_count = kwargs['onDemandCount'] + if 'resourceGroupName' in kwargs: + resource_group_name = kwargs['resourceGroupName'] + if 'spotPercentage' in kwargs: + spot_percentage = kwargs['spotPercentage'] + if 'spotSizes' in kwargs: + spot_sizes = kwargs['spotSizes'] + if custom_data is not None: _setter("custom_data", custom_data) if desired_capacity is not None: diff --git a/sdk/python/pulumi_spotinst/gcp/_inputs.py b/sdk/python/pulumi_spotinst/gcp/_inputs.py index 89456ce2..d9539482 100644 --- a/sdk/python/pulumi_spotinst/gcp/_inputs.py +++ b/sdk/python/pulumi_spotinst/gcp/_inputs.py @@ -61,7 +61,15 @@ def _configure( location_type: Optional[pulumi.Input[str]] = None, named_ports: Optional[pulumi.Input[Sequence[pulumi.Input['ElastigroupBackendServiceNamedPortArgs']]]] = None, scheme: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'serviceName' in kwargs: + service_name = kwargs['serviceName'] + if 'locationType' in kwargs: + location_type = kwargs['locationType'] + if 'namedPorts' in kwargs: + named_ports = kwargs['namedPorts'] + _setter("service_name", service_name) if location_type is not None: _setter("location_type", location_type) @@ -144,7 +152,9 @@ def _configure( _setter: Callable[[Any, Any], None], name: pulumi.Input[str], ports: pulumi.Input[Sequence[pulumi.Input[str]]], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("name", name) _setter("ports", ports) @@ -222,7 +232,15 @@ def _configure( mode: Optional[pulumi.Input[str]] = None, source: Optional[pulumi.Input[str]] = None, type: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'autoDelete' in kwargs: + auto_delete = kwargs['autoDelete'] + if 'deviceName' in kwargs: + device_name = kwargs['deviceName'] + if 'initializeParams' in kwargs: + initialize_params = kwargs['initializeParams'] + if auto_delete is not None: _setter("auto_delete", auto_delete) if boot is not None: @@ -366,7 +384,15 @@ def _configure( source_image: pulumi.Input[str], disk_size_gb: Optional[pulumi.Input[str]] = None, disk_type: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'sourceImage' in kwargs: + source_image = kwargs['sourceImage'] + if 'diskSizeGb' in kwargs: + disk_size_gb = kwargs['diskSizeGb'] + if 'diskType' in kwargs: + disk_type = kwargs['diskType'] + _setter("source_image", source_image) if disk_size_gb is not None: _setter("disk_size_gb", disk_size_gb) @@ -441,7 +467,9 @@ def _configure( _setter: Callable[[Any, Any], None], count: pulumi.Input[int], type: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("count", count) _setter("type", type) @@ -494,7 +522,11 @@ def _configure( _setter: Callable[[Any, Any], None], memory_gib: pulumi.Input[int], vcpu: pulumi.Input[int], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'memoryGib' in kwargs: + memory_gib = kwargs['memoryGib'] + _setter("memory_gib", memory_gib) _setter("vcpu", vcpu) @@ -545,7 +577,13 @@ def _configure( _setter: Callable[[Any, Any], None], master_host: pulumi.Input[str], master_port: pulumi.Input[int], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'masterHost' in kwargs: + master_host = kwargs['masterHost'] + if 'masterPort' in kwargs: + master_port = kwargs['masterPort'] + _setter("master_host", master_host) _setter("master_port", master_port) @@ -616,7 +654,25 @@ def _configure( autoscale_labels: Optional[pulumi.Input[Sequence[pulumi.Input['ElastigroupIntegrationGkeAutoscaleLabelArgs']]]] = None, cluster_id: Optional[pulumi.Input[str]] = None, location: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'autoUpdate' in kwargs: + auto_update = kwargs['autoUpdate'] + if 'autoscaleCooldown' in kwargs: + autoscale_cooldown = kwargs['autoscaleCooldown'] + if 'autoscaleDown' in kwargs: + autoscale_down = kwargs['autoscaleDown'] + if 'autoscaleHeadroom' in kwargs: + autoscale_headroom = kwargs['autoscaleHeadroom'] + if 'autoscaleIsAutoConfig' in kwargs: + autoscale_is_auto_config = kwargs['autoscaleIsAutoConfig'] + if 'autoscaleIsEnabled' in kwargs: + autoscale_is_enabled = kwargs['autoscaleIsEnabled'] + if 'autoscaleLabels' in kwargs: + autoscale_labels = kwargs['autoscaleLabels'] + if 'clusterId' in kwargs: + cluster_id = kwargs['clusterId'] + if auto_update is not None: _setter("auto_update", auto_update) if autoscale_cooldown is not None: @@ -733,7 +789,11 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], evaluation_periods: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'evaluationPeriods' in kwargs: + evaluation_periods = kwargs['evaluationPeriods'] + if evaluation_periods is not None: _setter("evaluation_periods", evaluation_periods) @@ -768,7 +828,15 @@ def _configure( cpu_per_unit: Optional[pulumi.Input[int]] = None, memory_per_unit: Optional[pulumi.Input[int]] = None, num_of_units: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'cpuPerUnit' in kwargs: + cpu_per_unit = kwargs['cpuPerUnit'] + if 'memoryPerUnit' in kwargs: + memory_per_unit = kwargs['memoryPerUnit'] + if 'numOfUnits' in kwargs: + num_of_units = kwargs['numOfUnits'] + if cpu_per_unit is not None: _setter("cpu_per_unit", cpu_per_unit) if memory_per_unit is not None: @@ -823,7 +891,9 @@ def _configure( _setter: Callable[[Any, Any], None], key: pulumi.Input[str], value: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("key", key) _setter("value", value) @@ -871,7 +941,9 @@ def _configure( _setter: Callable[[Any, Any], None], key: pulumi.Input[str], value: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("key", key) _setter("value", value) @@ -919,7 +991,9 @@ def _configure( _setter: Callable[[Any, Any], None], key: pulumi.Input[str], value: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("key", key) _setter("value", value) @@ -970,7 +1044,13 @@ def _configure( network: pulumi.Input[str], access_configs: Optional[pulumi.Input[Sequence[pulumi.Input['ElastigroupNetworkInterfaceAccessConfigArgs']]]] = None, alias_ip_ranges: Optional[pulumi.Input[Sequence[pulumi.Input['ElastigroupNetworkInterfaceAliasIpRangeArgs']]]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'accessConfigs' in kwargs: + access_configs = kwargs['accessConfigs'] + if 'aliasIpRanges' in kwargs: + alias_ip_ranges = kwargs['aliasIpRanges'] + _setter("network", network) if access_configs is not None: _setter("access_configs", access_configs) @@ -1030,7 +1110,9 @@ def _configure( _setter: Callable[[Any, Any], None], name: Optional[pulumi.Input[str]] = None, type: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if name is not None: _setter("name", name) if type is not None: @@ -1076,7 +1158,13 @@ def _configure( _setter: Callable[[Any, Any], None], ip_cidr_range: pulumi.Input[str], subnetwork_range_name: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'ipCidrRange' in kwargs: + ip_cidr_range = kwargs['ipCidrRange'] + if 'subnetworkRangeName' in kwargs: + subnetwork_range_name = kwargs['subnetworkRangeName'] + _setter("ip_cidr_range", ip_cidr_range) _setter("subnetwork_range_name", subnetwork_range_name) @@ -1164,7 +1252,17 @@ def _configure( period: Optional[pulumi.Input[int]] = None, source: Optional[pulumi.Input[str]] = None, statistic: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'metricName' in kwargs: + metric_name = kwargs['metricName'] + if 'policyName' in kwargs: + policy_name = kwargs['policyName'] + if 'actionType' in kwargs: + action_type = kwargs['actionType'] + if 'evaluationPeriods' in kwargs: + evaluation_periods = kwargs['evaluationPeriods'] + _setter("metric_name", metric_name) _setter("namespace", namespace) _setter("policy_name", policy_name) @@ -1371,7 +1469,9 @@ def _configure( _setter: Callable[[Any, Any], None], name: pulumi.Input[str], value: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("name", name) if value is not None: _setter("value", value) @@ -1466,7 +1566,17 @@ def _configure( period: Optional[pulumi.Input[int]] = None, source: Optional[pulumi.Input[str]] = None, statistic: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'metricName' in kwargs: + metric_name = kwargs['metricName'] + if 'policyName' in kwargs: + policy_name = kwargs['policyName'] + if 'actionType' in kwargs: + action_type = kwargs['actionType'] + if 'evaluationPeriods' in kwargs: + evaluation_periods = kwargs['evaluationPeriods'] + _setter("metric_name", metric_name) _setter("namespace", namespace) _setter("policy_name", policy_name) @@ -1673,7 +1783,9 @@ def _configure( _setter: Callable[[Any, Any], None], name: pulumi.Input[str], value: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("name", name) if value is not None: _setter("value", value) @@ -1744,7 +1856,21 @@ def _configure( max_capacity: Optional[pulumi.Input[str]] = None, min_capacity: Optional[pulumi.Input[str]] = None, target_capacity: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'taskType' in kwargs: + task_type = kwargs['taskType'] + if 'cronExpression' in kwargs: + cron_expression = kwargs['cronExpression'] + if 'isEnabled' in kwargs: + is_enabled = kwargs['isEnabled'] + if 'maxCapacity' in kwargs: + max_capacity = kwargs['maxCapacity'] + if 'minCapacity' in kwargs: + min_capacity = kwargs['minCapacity'] + if 'targetCapacity' in kwargs: + target_capacity = kwargs['targetCapacity'] + _setter("task_type", task_type) if cron_expression is not None: _setter("cron_expression", cron_expression) @@ -1855,7 +1981,11 @@ def _configure( _setter: Callable[[Any, Any], None], region: pulumi.Input[str], subnet_names: pulumi.Input[Sequence[pulumi.Input[str]]], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'subnetNames' in kwargs: + subnet_names = kwargs['subnetNames'] + _setter("region", region) _setter("subnet_names", subnet_names) diff --git a/sdk/python/pulumi_spotinst/gcp/elastigroup.py b/sdk/python/pulumi_spotinst/gcp/elastigroup.py index 87173342..c1a79788 100644 --- a/sdk/python/pulumi_spotinst/gcp/elastigroup.py +++ b/sdk/python/pulumi_spotinst/gcp/elastigroup.py @@ -172,7 +172,65 @@ def _configure( subnets: Optional[pulumi.Input[Sequence[pulumi.Input['ElastigroupSubnetArgs']]]] = None, tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, unhealthy_duration: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'desiredCapacity' in kwargs: + desired_capacity = kwargs['desiredCapacity'] + if 'autoHealing' in kwargs: + auto_healing = kwargs['autoHealing'] + if 'availabilityZones' in kwargs: + availability_zones = kwargs['availabilityZones'] + if 'backendServices' in kwargs: + backend_services = kwargs['backendServices'] + if 'drainingTimeout' in kwargs: + draining_timeout = kwargs['drainingTimeout'] + if 'fallbackToOndemand' in kwargs: + fallback_to_ondemand = kwargs['fallbackToOndemand'] + if 'healthCheckGracePeriod' in kwargs: + health_check_grace_period = kwargs['healthCheckGracePeriod'] + if 'healthCheckType' in kwargs: + health_check_type = kwargs['healthCheckType'] + if 'instanceNamePrefix' in kwargs: + instance_name_prefix = kwargs['instanceNamePrefix'] + if 'instanceTypesCustoms' in kwargs: + instance_types_customs = kwargs['instanceTypesCustoms'] + if 'instanceTypesOndemand' in kwargs: + instance_types_ondemand = kwargs['instanceTypesOndemand'] + if 'instanceTypesPreemptibles' in kwargs: + instance_types_preemptibles = kwargs['instanceTypesPreemptibles'] + if 'integrationDockerSwarm' in kwargs: + integration_docker_swarm = kwargs['integrationDockerSwarm'] + if 'integrationGke' in kwargs: + integration_gke = kwargs['integrationGke'] + if 'ipForwarding' in kwargs: + ip_forwarding = kwargs['ipForwarding'] + if 'maxSize' in kwargs: + max_size = kwargs['maxSize'] + if 'minSize' in kwargs: + min_size = kwargs['minSize'] + if 'networkInterfaces' in kwargs: + network_interfaces = kwargs['networkInterfaces'] + if 'ondemandCount' in kwargs: + ondemand_count = kwargs['ondemandCount'] + if 'preemptiblePercentage' in kwargs: + preemptible_percentage = kwargs['preemptiblePercentage'] + if 'provisioningModel' in kwargs: + provisioning_model = kwargs['provisioningModel'] + if 'scalingDownPolicies' in kwargs: + scaling_down_policies = kwargs['scalingDownPolicies'] + if 'scalingUpPolicies' in kwargs: + scaling_up_policies = kwargs['scalingUpPolicies'] + if 'scheduledTasks' in kwargs: + scheduled_tasks = kwargs['scheduledTasks'] + if 'serviceAccount' in kwargs: + service_account = kwargs['serviceAccount'] + if 'shutdownScript' in kwargs: + shutdown_script = kwargs['shutdownScript'] + if 'startupScript' in kwargs: + startup_script = kwargs['startupScript'] + if 'unhealthyDuration' in kwargs: + unhealthy_duration = kwargs['unhealthyDuration'] + _setter("desired_capacity", desired_capacity) if auto_healing is not None: _setter("auto_healing", auto_healing) @@ -836,7 +894,65 @@ def _configure( subnets: Optional[pulumi.Input[Sequence[pulumi.Input['ElastigroupSubnetArgs']]]] = None, tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, unhealthy_duration: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'autoHealing' in kwargs: + auto_healing = kwargs['autoHealing'] + if 'availabilityZones' in kwargs: + availability_zones = kwargs['availabilityZones'] + if 'backendServices' in kwargs: + backend_services = kwargs['backendServices'] + if 'desiredCapacity' in kwargs: + desired_capacity = kwargs['desiredCapacity'] + if 'drainingTimeout' in kwargs: + draining_timeout = kwargs['drainingTimeout'] + if 'fallbackToOndemand' in kwargs: + fallback_to_ondemand = kwargs['fallbackToOndemand'] + if 'healthCheckGracePeriod' in kwargs: + health_check_grace_period = kwargs['healthCheckGracePeriod'] + if 'healthCheckType' in kwargs: + health_check_type = kwargs['healthCheckType'] + if 'instanceNamePrefix' in kwargs: + instance_name_prefix = kwargs['instanceNamePrefix'] + if 'instanceTypesCustoms' in kwargs: + instance_types_customs = kwargs['instanceTypesCustoms'] + if 'instanceTypesOndemand' in kwargs: + instance_types_ondemand = kwargs['instanceTypesOndemand'] + if 'instanceTypesPreemptibles' in kwargs: + instance_types_preemptibles = kwargs['instanceTypesPreemptibles'] + if 'integrationDockerSwarm' in kwargs: + integration_docker_swarm = kwargs['integrationDockerSwarm'] + if 'integrationGke' in kwargs: + integration_gke = kwargs['integrationGke'] + if 'ipForwarding' in kwargs: + ip_forwarding = kwargs['ipForwarding'] + if 'maxSize' in kwargs: + max_size = kwargs['maxSize'] + if 'minSize' in kwargs: + min_size = kwargs['minSize'] + if 'networkInterfaces' in kwargs: + network_interfaces = kwargs['networkInterfaces'] + if 'ondemandCount' in kwargs: + ondemand_count = kwargs['ondemandCount'] + if 'preemptiblePercentage' in kwargs: + preemptible_percentage = kwargs['preemptiblePercentage'] + if 'provisioningModel' in kwargs: + provisioning_model = kwargs['provisioningModel'] + if 'scalingDownPolicies' in kwargs: + scaling_down_policies = kwargs['scalingDownPolicies'] + if 'scalingUpPolicies' in kwargs: + scaling_up_policies = kwargs['scalingUpPolicies'] + if 'scheduledTasks' in kwargs: + scheduled_tasks = kwargs['scheduledTasks'] + if 'serviceAccount' in kwargs: + service_account = kwargs['serviceAccount'] + if 'shutdownScript' in kwargs: + shutdown_script = kwargs['shutdownScript'] + if 'startupScript' in kwargs: + startup_script = kwargs['startupScript'] + if 'unhealthyDuration' in kwargs: + unhealthy_duration = kwargs['unhealthyDuration'] + if auto_healing is not None: _setter("auto_healing", auto_healing) if availability_zones is not None: diff --git a/sdk/python/pulumi_spotinst/gcp/outputs.py b/sdk/python/pulumi_spotinst/gcp/outputs.py index 4a811f7d..0e6f4f91 100644 --- a/sdk/python/pulumi_spotinst/gcp/outputs.py +++ b/sdk/python/pulumi_spotinst/gcp/outputs.py @@ -83,7 +83,15 @@ def _configure( location_type: Optional[str] = None, named_ports: Optional[Sequence['outputs.ElastigroupBackendServiceNamedPort']] = None, scheme: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'serviceName' in kwargs: + service_name = kwargs['serviceName'] + if 'locationType' in kwargs: + location_type = kwargs['locationType'] + if 'namedPorts' in kwargs: + named_ports = kwargs['namedPorts'] + _setter("service_name", service_name) if location_type is not None: _setter("location_type", location_type) @@ -150,7 +158,9 @@ def _configure( _setter: Callable[[Any, Any], None], name: str, ports: Sequence[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("name", name) _setter("ports", ports) @@ -241,7 +251,15 @@ def _configure( mode: Optional[str] = None, source: Optional[str] = None, type: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'autoDelete' in kwargs: + auto_delete = kwargs['autoDelete'] + if 'deviceName' in kwargs: + device_name = kwargs['deviceName'] + if 'initializeParams' in kwargs: + initialize_params = kwargs['initializeParams'] + if auto_delete is not None: _setter("auto_delete", auto_delete) if boot is not None: @@ -374,7 +392,15 @@ def _configure( source_image: str, disk_size_gb: Optional[str] = None, disk_type: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'sourceImage' in kwargs: + source_image = kwargs['sourceImage'] + if 'diskSizeGb' in kwargs: + disk_size_gb = kwargs['diskSizeGb'] + if 'diskType' in kwargs: + disk_type = kwargs['diskType'] + _setter("source_image", source_image) if disk_size_gb is not None: _setter("disk_size_gb", disk_size_gb) @@ -437,7 +463,9 @@ def _configure( _setter: Callable[[Any, Any], None], count: int, type: str, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("count", count) _setter("type", type) @@ -499,7 +527,11 @@ def _configure( _setter: Callable[[Any, Any], None], memory_gib: int, vcpu: int, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'memoryGib' in kwargs: + memory_gib = kwargs['memoryGib'] + _setter("memory_gib", memory_gib) _setter("vcpu", vcpu) @@ -561,7 +593,13 @@ def _configure( _setter: Callable[[Any, Any], None], master_host: str, master_port: int, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'masterHost' in kwargs: + master_host = kwargs['masterHost'] + if 'masterPort' in kwargs: + master_port = kwargs['masterPort'] + _setter("master_host", master_host) _setter("master_port", master_port) @@ -655,7 +693,25 @@ def _configure( autoscale_labels: Optional[Sequence['outputs.ElastigroupIntegrationGkeAutoscaleLabel']] = None, cluster_id: Optional[str] = None, location: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'autoUpdate' in kwargs: + auto_update = kwargs['autoUpdate'] + if 'autoscaleCooldown' in kwargs: + autoscale_cooldown = kwargs['autoscaleCooldown'] + if 'autoscaleDown' in kwargs: + autoscale_down = kwargs['autoscaleDown'] + if 'autoscaleHeadroom' in kwargs: + autoscale_headroom = kwargs['autoscaleHeadroom'] + if 'autoscaleIsAutoConfig' in kwargs: + autoscale_is_auto_config = kwargs['autoscaleIsAutoConfig'] + if 'autoscaleIsEnabled' in kwargs: + autoscale_is_enabled = kwargs['autoscaleIsEnabled'] + if 'autoscaleLabels' in kwargs: + autoscale_labels = kwargs['autoscaleLabels'] + if 'clusterId' in kwargs: + cluster_id = kwargs['clusterId'] + if auto_update is not None: _setter("auto_update", auto_update) if autoscale_cooldown is not None: @@ -753,7 +809,11 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], evaluation_periods: Optional[int] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'evaluationPeriods' in kwargs: + evaluation_periods = kwargs['evaluationPeriods'] + if evaluation_periods is not None: _setter("evaluation_periods", evaluation_periods) @@ -805,7 +865,15 @@ def _configure( cpu_per_unit: Optional[int] = None, memory_per_unit: Optional[int] = None, num_of_units: Optional[int] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'cpuPerUnit' in kwargs: + cpu_per_unit = kwargs['cpuPerUnit'] + if 'memoryPerUnit' in kwargs: + memory_per_unit = kwargs['memoryPerUnit'] + if 'numOfUnits' in kwargs: + num_of_units = kwargs['numOfUnits'] + if cpu_per_unit is not None: _setter("cpu_per_unit", cpu_per_unit) if memory_per_unit is not None: @@ -848,7 +916,9 @@ def _configure( _setter: Callable[[Any, Any], None], key: str, value: str, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("key", key) _setter("value", value) @@ -888,7 +958,9 @@ def _configure( _setter: Callable[[Any, Any], None], key: str, value: str, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("key", key) _setter("value", value) @@ -928,7 +1000,9 @@ def _configure( _setter: Callable[[Any, Any], None], key: str, value: str, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("key", key) _setter("value", value) @@ -990,7 +1064,13 @@ def _configure( network: str, access_configs: Optional[Sequence['outputs.ElastigroupNetworkInterfaceAccessConfig']] = None, alias_ip_ranges: Optional[Sequence['outputs.ElastigroupNetworkInterfaceAliasIpRange']] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'accessConfigs' in kwargs: + access_configs = kwargs['accessConfigs'] + if 'aliasIpRanges' in kwargs: + alias_ip_ranges = kwargs['aliasIpRanges'] + _setter("network", network) if access_configs is not None: _setter("access_configs", access_configs) @@ -1038,7 +1118,9 @@ def _configure( _setter: Callable[[Any, Any], None], name: Optional[str] = None, type: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if name is not None: _setter("name", name) if type is not None: @@ -1095,7 +1177,13 @@ def _configure( _setter: Callable[[Any, Any], None], ip_cidr_range: str, subnetwork_range_name: str, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'ipCidrRange' in kwargs: + ip_cidr_range = kwargs['ipCidrRange'] + if 'subnetworkRangeName' in kwargs: + subnetwork_range_name = kwargs['subnetworkRangeName'] + _setter("ip_cidr_range", ip_cidr_range) _setter("subnetwork_range_name", subnetwork_range_name) @@ -1198,7 +1286,17 @@ def _configure( period: Optional[int] = None, source: Optional[str] = None, statistic: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'metricName' in kwargs: + metric_name = kwargs['metricName'] + if 'policyName' in kwargs: + policy_name = kwargs['policyName'] + if 'actionType' in kwargs: + action_type = kwargs['actionType'] + if 'evaluationPeriods' in kwargs: + evaluation_periods = kwargs['evaluationPeriods'] + _setter("metric_name", metric_name) _setter("namespace", namespace) _setter("policy_name", policy_name) @@ -1349,7 +1447,9 @@ def _configure( _setter: Callable[[Any, Any], None], name: str, value: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("name", name) if value is not None: _setter("value", value) @@ -1459,7 +1559,17 @@ def _configure( period: Optional[int] = None, source: Optional[str] = None, statistic: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'metricName' in kwargs: + metric_name = kwargs['metricName'] + if 'policyName' in kwargs: + policy_name = kwargs['policyName'] + if 'actionType' in kwargs: + action_type = kwargs['actionType'] + if 'evaluationPeriods' in kwargs: + evaluation_periods = kwargs['evaluationPeriods'] + _setter("metric_name", metric_name) _setter("namespace", namespace) _setter("policy_name", policy_name) @@ -1610,7 +1720,9 @@ def _configure( _setter: Callable[[Any, Any], None], name: str, value: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("name", name) if value is not None: _setter("value", value) @@ -1700,7 +1812,21 @@ def _configure( max_capacity: Optional[str] = None, min_capacity: Optional[str] = None, target_capacity: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'taskType' in kwargs: + task_type = kwargs['taskType'] + if 'cronExpression' in kwargs: + cron_expression = kwargs['cronExpression'] + if 'isEnabled' in kwargs: + is_enabled = kwargs['isEnabled'] + if 'maxCapacity' in kwargs: + max_capacity = kwargs['maxCapacity'] + if 'minCapacity' in kwargs: + min_capacity = kwargs['minCapacity'] + if 'targetCapacity' in kwargs: + target_capacity = kwargs['targetCapacity'] + _setter("task_type", task_type) if cron_expression is not None: _setter("cron_expression", cron_expression) @@ -1804,7 +1930,11 @@ def _configure( _setter: Callable[[Any, Any], None], region: str, subnet_names: Sequence[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'subnetNames' in kwargs: + subnet_names = kwargs['subnetNames'] + _setter("region", region) _setter("subnet_names", subnet_names) diff --git a/sdk/python/pulumi_spotinst/gke/_inputs.py b/sdk/python/pulumi_spotinst/gke/_inputs.py index ad3e8d7b..8cbb965c 100644 --- a/sdk/python/pulumi_spotinst/gke/_inputs.py +++ b/sdk/python/pulumi_spotinst/gke/_inputs.py @@ -84,7 +84,15 @@ def _configure( location_type: Optional[pulumi.Input[str]] = None, named_ports: Optional[pulumi.Input[Sequence[pulumi.Input['ElastigroupBackendServiceNamedPortArgs']]]] = None, scheme: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'serviceName' in kwargs: + service_name = kwargs['serviceName'] + if 'locationType' in kwargs: + location_type = kwargs['locationType'] + if 'namedPorts' in kwargs: + named_ports = kwargs['namedPorts'] + _setter("service_name", service_name) if location_type is not None: _setter("location_type", location_type) @@ -145,7 +153,9 @@ def _configure( _setter: Callable[[Any, Any], None], name: pulumi.Input[str], ports: pulumi.Input[Sequence[pulumi.Input[str]]], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("name", name) _setter("ports", ports) @@ -201,7 +211,15 @@ def _configure( mode: Optional[pulumi.Input[str]] = None, source: Optional[pulumi.Input[str]] = None, type: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'autoDelete' in kwargs: + auto_delete = kwargs['autoDelete'] + if 'deviceName' in kwargs: + device_name = kwargs['deviceName'] + if 'initializeParams' in kwargs: + initialize_params = kwargs['initializeParams'] + if auto_delete is not None: _setter("auto_delete", auto_delete) if boot is not None: @@ -310,7 +328,15 @@ def _configure( source_image: pulumi.Input[str], disk_size_gb: Optional[pulumi.Input[str]] = None, disk_type: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'sourceImage' in kwargs: + source_image = kwargs['sourceImage'] + if 'diskSizeGb' in kwargs: + disk_size_gb = kwargs['diskSizeGb'] + if 'diskType' in kwargs: + disk_type = kwargs['diskType'] + _setter("source_image", source_image) if disk_size_gb is not None: _setter("disk_size_gb", disk_size_gb) @@ -360,7 +386,9 @@ def _configure( _setter: Callable[[Any, Any], None], count: pulumi.Input[int], type: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("count", count) _setter("type", type) @@ -398,7 +426,11 @@ def _configure( _setter: Callable[[Any, Any], None], memory_gib: pulumi.Input[int], vcpu: pulumi.Input[int], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'memoryGib' in kwargs: + memory_gib = kwargs['memoryGib'] + _setter("memory_gib", memory_gib) _setter("vcpu", vcpu) @@ -436,7 +468,13 @@ def _configure( _setter: Callable[[Any, Any], None], master_host: pulumi.Input[str], master_port: pulumi.Input[int], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'masterHost' in kwargs: + master_host = kwargs['masterHost'] + if 'masterPort' in kwargs: + master_port = kwargs['masterPort'] + _setter("master_host", master_host) _setter("master_port", master_port) @@ -504,7 +542,25 @@ def _configure( autoscale_labels: Optional[pulumi.Input[Sequence[pulumi.Input['ElastigroupIntegrationGkeAutoscaleLabelArgs']]]] = None, cluster_id: Optional[pulumi.Input[str]] = None, location: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'autoUpdate' in kwargs: + auto_update = kwargs['autoUpdate'] + if 'autoscaleCooldown' in kwargs: + autoscale_cooldown = kwargs['autoscaleCooldown'] + if 'autoscaleDown' in kwargs: + autoscale_down = kwargs['autoscaleDown'] + if 'autoscaleHeadroom' in kwargs: + autoscale_headroom = kwargs['autoscaleHeadroom'] + if 'autoscaleIsAutoConfig' in kwargs: + autoscale_is_auto_config = kwargs['autoscaleIsAutoConfig'] + if 'autoscaleIsEnabled' in kwargs: + autoscale_is_enabled = kwargs['autoscaleIsEnabled'] + if 'autoscaleLabels' in kwargs: + autoscale_labels = kwargs['autoscaleLabels'] + if 'clusterId' in kwargs: + cluster_id = kwargs['clusterId'] + if auto_update is not None: _setter("auto_update", auto_update) if autoscale_cooldown is not None: @@ -642,7 +698,11 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], evaluation_periods: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'evaluationPeriods' in kwargs: + evaluation_periods = kwargs['evaluationPeriods'] + if evaluation_periods is not None: _setter("evaluation_periods", evaluation_periods) @@ -682,7 +742,15 @@ def _configure( cpu_per_unit: Optional[pulumi.Input[int]] = None, memory_per_unit: Optional[pulumi.Input[int]] = None, num_of_units: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'cpuPerUnit' in kwargs: + cpu_per_unit = kwargs['cpuPerUnit'] + if 'memoryPerUnit' in kwargs: + memory_per_unit = kwargs['memoryPerUnit'] + if 'numOfUnits' in kwargs: + num_of_units = kwargs['numOfUnits'] + if cpu_per_unit is not None: _setter("cpu_per_unit", cpu_per_unit) if memory_per_unit is not None: @@ -742,7 +810,9 @@ def _configure( _setter: Callable[[Any, Any], None], key: pulumi.Input[str], value: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("key", key) _setter("value", value) @@ -780,7 +850,9 @@ def _configure( _setter: Callable[[Any, Any], None], key: pulumi.Input[str], value: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("key", key) _setter("value", value) @@ -818,7 +890,9 @@ def _configure( _setter: Callable[[Any, Any], None], key: pulumi.Input[str], value: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("key", key) _setter("value", value) @@ -859,7 +933,13 @@ def _configure( network: pulumi.Input[str], access_configs: Optional[pulumi.Input[Sequence[pulumi.Input['ElastigroupNetworkInterfaceAccessConfigArgs']]]] = None, alias_ip_ranges: Optional[pulumi.Input[Sequence[pulumi.Input['ElastigroupNetworkInterfaceAliasIpRangeArgs']]]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'accessConfigs' in kwargs: + access_configs = kwargs['accessConfigs'] + if 'aliasIpRanges' in kwargs: + alias_ip_ranges = kwargs['aliasIpRanges'] + _setter("network", network) if access_configs is not None: _setter("access_configs", access_configs) @@ -909,7 +989,9 @@ def _configure( _setter: Callable[[Any, Any], None], name: Optional[pulumi.Input[str]] = None, type: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if name is not None: _setter("name", name) if type is not None: @@ -949,7 +1031,13 @@ def _configure( _setter: Callable[[Any, Any], None], ip_cidr_range: pulumi.Input[str], subnetwork_range_name: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'ipCidrRange' in kwargs: + ip_cidr_range = kwargs['ipCidrRange'] + if 'subnetworkRangeName' in kwargs: + subnetwork_range_name = kwargs['subnetworkRangeName'] + _setter("ip_cidr_range", ip_cidr_range) _setter("subnetwork_range_name", subnetwork_range_name) @@ -1026,7 +1114,17 @@ def _configure( period: Optional[pulumi.Input[int]] = None, source: Optional[pulumi.Input[str]] = None, statistic: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'metricName' in kwargs: + metric_name = kwargs['metricName'] + if 'policyName' in kwargs: + policy_name = kwargs['policyName'] + if 'actionType' in kwargs: + action_type = kwargs['actionType'] + if 'evaluationPeriods' in kwargs: + evaluation_periods = kwargs['evaluationPeriods'] + _setter("metric_name", metric_name) _setter("namespace", namespace) _setter("policy_name", policy_name) @@ -1196,7 +1294,9 @@ def _configure( _setter: Callable[[Any, Any], None], name: pulumi.Input[str], value: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("name", name) if value is not None: _setter("value", value) @@ -1274,7 +1374,17 @@ def _configure( period: Optional[pulumi.Input[int]] = None, source: Optional[pulumi.Input[str]] = None, statistic: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'metricName' in kwargs: + metric_name = kwargs['metricName'] + if 'policyName' in kwargs: + policy_name = kwargs['policyName'] + if 'actionType' in kwargs: + action_type = kwargs['actionType'] + if 'evaluationPeriods' in kwargs: + evaluation_periods = kwargs['evaluationPeriods'] + _setter("metric_name", metric_name) _setter("namespace", namespace) _setter("policy_name", policy_name) @@ -1444,7 +1554,9 @@ def _configure( _setter: Callable[[Any, Any], None], name: pulumi.Input[str], value: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("name", name) if value is not None: _setter("value", value) @@ -1511,7 +1623,19 @@ def _configure( is_auto_config: Optional[pulumi.Input[bool]] = None, is_enabled: Optional[pulumi.Input[bool]] = None, resource_limits: Optional[pulumi.Input['OceanImportAutoscalerResourceLimitsArgs']] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'autoHeadroomPercentage' in kwargs: + auto_headroom_percentage = kwargs['autoHeadroomPercentage'] + if 'enableAutomaticAndManualHeadroom' in kwargs: + enable_automatic_and_manual_headroom = kwargs['enableAutomaticAndManualHeadroom'] + if 'isAutoConfig' in kwargs: + is_auto_config = kwargs['isAutoConfig'] + if 'isEnabled' in kwargs: + is_enabled = kwargs['isEnabled'] + if 'resourceLimits' in kwargs: + resource_limits = kwargs['resourceLimits'] + if auto_headroom_percentage is not None: _setter("auto_headroom_percentage", auto_headroom_percentage) if cooldown is not None: @@ -1645,7 +1769,13 @@ def _configure( _setter: Callable[[Any, Any], None], evaluation_periods: Optional[pulumi.Input[int]] = None, max_scale_down_percentage: Optional[pulumi.Input[float]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'evaluationPeriods' in kwargs: + evaluation_periods = kwargs['evaluationPeriods'] + if 'maxScaleDownPercentage' in kwargs: + max_scale_down_percentage = kwargs['maxScaleDownPercentage'] + if evaluation_periods is not None: _setter("evaluation_periods", evaluation_periods) if max_scale_down_percentage is not None: @@ -1703,7 +1833,17 @@ def _configure( gpu_per_unit: Optional[pulumi.Input[int]] = None, memory_per_unit: Optional[pulumi.Input[int]] = None, num_of_units: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'cpuPerUnit' in kwargs: + cpu_per_unit = kwargs['cpuPerUnit'] + if 'gpuPerUnit' in kwargs: + gpu_per_unit = kwargs['gpuPerUnit'] + if 'memoryPerUnit' in kwargs: + memory_per_unit = kwargs['memoryPerUnit'] + if 'numOfUnits' in kwargs: + num_of_units = kwargs['numOfUnits'] + if cpu_per_unit is not None: _setter("cpu_per_unit", cpu_per_unit) if gpu_per_unit is not None: @@ -1787,7 +1927,13 @@ def _configure( _setter: Callable[[Any, Any], None], max_memory_gib: Optional[pulumi.Input[int]] = None, max_vcpu: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'maxMemoryGib' in kwargs: + max_memory_gib = kwargs['maxMemoryGib'] + if 'maxVcpu' in kwargs: + max_vcpu = kwargs['maxVcpu'] + if max_memory_gib is not None: _setter("max_memory_gib", max_memory_gib) if max_vcpu is not None: @@ -1850,7 +1996,15 @@ def _configure( location_type: Optional[pulumi.Input[str]] = None, named_ports: Optional[pulumi.Input[Sequence[pulumi.Input['OceanImportBackendServiceNamedPortArgs']]]] = None, scheme: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'serviceName' in kwargs: + service_name = kwargs['serviceName'] + if 'locationType' in kwargs: + location_type = kwargs['locationType'] + if 'namedPorts' in kwargs: + named_ports = kwargs['namedPorts'] + _setter("service_name", service_name) if location_type is not None: _setter("location_type", location_type) @@ -1923,7 +2077,9 @@ def _configure( _setter: Callable[[Any, Any], None], name: pulumi.Input[str], ports: pulumi.Input[Sequence[pulumi.Input[str]]], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("name", name) _setter("ports", ports) @@ -1968,7 +2124,11 @@ def _configure( _setter: Callable[[Any, Any], None], shutdown_hours: Optional[pulumi.Input['OceanImportScheduledTaskShutdownHoursArgs']] = None, tasks: Optional[pulumi.Input[Sequence[pulumi.Input['OceanImportScheduledTaskTaskArgs']]]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'shutdownHours' in kwargs: + shutdown_hours = kwargs['shutdownHours'] + if shutdown_hours is not None: _setter("shutdown_hours", shutdown_hours) if tasks is not None: @@ -2019,7 +2179,13 @@ def _configure( _setter: Callable[[Any, Any], None], time_windows: pulumi.Input[Sequence[pulumi.Input[str]]], is_enabled: Optional[pulumi.Input[bool]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'timeWindows' in kwargs: + time_windows = kwargs['timeWindows'] + if 'isEnabled' in kwargs: + is_enabled = kwargs['isEnabled'] + _setter("time_windows", time_windows) if is_enabled is not None: _setter("is_enabled", is_enabled) @@ -2077,7 +2243,17 @@ def _configure( is_enabled: pulumi.Input[bool], task_type: pulumi.Input[str], task_parameters: Optional[pulumi.Input['OceanImportScheduledTaskTaskTaskParametersArgs']] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'cronExpression' in kwargs: + cron_expression = kwargs['cronExpression'] + if 'isEnabled' in kwargs: + is_enabled = kwargs['isEnabled'] + if 'taskType' in kwargs: + task_type = kwargs['taskType'] + if 'taskParameters' in kwargs: + task_parameters = kwargs['taskParameters'] + _setter("cron_expression", cron_expression) _setter("is_enabled", is_enabled) _setter("task_type", task_type) @@ -2143,7 +2319,11 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], cluster_roll: Optional[pulumi.Input['OceanImportScheduledTaskTaskTaskParametersClusterRollArgs']] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'clusterRoll' in kwargs: + cluster_roll = kwargs['clusterRoll'] + if cluster_roll is not None: _setter("cluster_roll", cluster_roll) @@ -2186,7 +2366,15 @@ def _configure( batch_size_percentage: Optional[pulumi.Input[int]] = None, comment: Optional[pulumi.Input[str]] = None, respect_pdb: Optional[pulumi.Input[bool]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'batchMinHealthyPercentage' in kwargs: + batch_min_healthy_percentage = kwargs['batchMinHealthyPercentage'] + if 'batchSizePercentage' in kwargs: + batch_size_percentage = kwargs['batchSizePercentage'] + if 'respectPdb' in kwargs: + respect_pdb = kwargs['respectPdb'] + if batch_min_healthy_percentage is not None: _setter("batch_min_healthy_percentage", batch_min_healthy_percentage) if batch_size_percentage is not None: @@ -2260,7 +2448,13 @@ def _configure( _setter: Callable[[Any, Any], None], enable_integrity_monitoring: Optional[pulumi.Input[bool]] = None, enable_secure_boot: Optional[pulumi.Input[bool]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'enableIntegrityMonitoring' in kwargs: + enable_integrity_monitoring = kwargs['enableIntegrityMonitoring'] + if 'enableSecureBoot' in kwargs: + enable_secure_boot = kwargs['enableSecureBoot'] + if enable_integrity_monitoring is not None: _setter("enable_integrity_monitoring", enable_integrity_monitoring) if enable_secure_boot is not None: @@ -2312,7 +2506,15 @@ def _configure( draining_timeout: Optional[pulumi.Input[int]] = None, preemptible_percentage: Optional[pulumi.Input[int]] = None, provisioning_model: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'drainingTimeout' in kwargs: + draining_timeout = kwargs['drainingTimeout'] + if 'preemptiblePercentage' in kwargs: + preemptible_percentage = kwargs['preemptiblePercentage'] + if 'provisioningModel' in kwargs: + provisioning_model = kwargs['provisioningModel'] + if draining_timeout is not None: _setter("draining_timeout", draining_timeout) if preemptible_percentage is not None: @@ -2369,7 +2571,15 @@ def _configure( should_roll: pulumi.Input[bool], conditioned_roll: Optional[pulumi.Input[bool]] = None, roll_config: Optional[pulumi.Input['OceanImportUpdatePolicyRollConfigArgs']] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'shouldRoll' in kwargs: + should_roll = kwargs['shouldRoll'] + if 'conditionedRoll' in kwargs: + conditioned_roll = kwargs['conditionedRoll'] + if 'rollConfig' in kwargs: + roll_config = kwargs['rollConfig'] + _setter("should_roll", should_roll) if conditioned_roll is not None: _setter("conditioned_roll", conditioned_roll) @@ -2433,7 +2643,17 @@ def _configure( batch_min_healthy_percentage: Optional[pulumi.Input[int]] = None, launch_spec_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, respect_pdb: Optional[pulumi.Input[bool]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'batchSizePercentage' in kwargs: + batch_size_percentage = kwargs['batchSizePercentage'] + if 'batchMinHealthyPercentage' in kwargs: + batch_min_healthy_percentage = kwargs['batchMinHealthyPercentage'] + if 'launchSpecIds' in kwargs: + launch_spec_ids = kwargs['launchSpecIds'] + if 'respectPdb' in kwargs: + respect_pdb = kwargs['respectPdb'] + _setter("batch_size_percentage", batch_size_percentage) if batch_min_healthy_percentage is not None: _setter("batch_min_healthy_percentage", batch_min_healthy_percentage) @@ -2514,7 +2734,17 @@ def _configure( cpu_per_unit: Optional[pulumi.Input[int]] = None, gpu_per_unit: Optional[pulumi.Input[int]] = None, memory_per_unit: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'numOfUnits' in kwargs: + num_of_units = kwargs['numOfUnits'] + if 'cpuPerUnit' in kwargs: + cpu_per_unit = kwargs['cpuPerUnit'] + if 'gpuPerUnit' in kwargs: + gpu_per_unit = kwargs['gpuPerUnit'] + if 'memoryPerUnit' in kwargs: + memory_per_unit = kwargs['memoryPerUnit'] + _setter("num_of_units", num_of_units) if cpu_per_unit is not None: _setter("cpu_per_unit", cpu_per_unit) @@ -2587,7 +2817,11 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], auto_headroom_percentage: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'autoHeadroomPercentage' in kwargs: + auto_headroom_percentage = kwargs['autoHeadroomPercentage'] + if auto_headroom_percentage is not None: _setter("auto_headroom_percentage", auto_headroom_percentage) @@ -2623,7 +2857,9 @@ def _configure( _setter: Callable[[Any, Any], None], key: Optional[pulumi.Input[str]] = None, value: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if key is not None: _setter("key", key) if value is not None: @@ -2673,7 +2909,9 @@ def _configure( _setter: Callable[[Any, Any], None], key: Optional[pulumi.Input[str]] = None, value: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if key is not None: _setter("key", key) if value is not None: @@ -2731,7 +2969,15 @@ def _configure( access_configs: Optional[pulumi.Input[Sequence[pulumi.Input['OceanLaunchSpecNetworkInterfaceAccessConfigArgs']]]] = None, alias_ip_ranges: Optional[pulumi.Input[Sequence[pulumi.Input['OceanLaunchSpecNetworkInterfaceAliasIpRangeArgs']]]] = None, project_id: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'accessConfigs' in kwargs: + access_configs = kwargs['accessConfigs'] + if 'aliasIpRanges' in kwargs: + alias_ip_ranges = kwargs['aliasIpRanges'] + if 'projectId' in kwargs: + project_id = kwargs['projectId'] + _setter("network", network) if access_configs is not None: _setter("access_configs", access_configs) @@ -2808,7 +3054,9 @@ def _configure( _setter: Callable[[Any, Any], None], name: Optional[pulumi.Input[str]] = None, type: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if name is not None: _setter("name", name) if type is not None: @@ -2860,7 +3108,13 @@ def _configure( _setter: Callable[[Any, Any], None], ip_cidr_range: pulumi.Input[str], subnetwork_range_name: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'ipCidrRange' in kwargs: + ip_cidr_range = kwargs['ipCidrRange'] + if 'subnetworkRangeName' in kwargs: + subnetwork_range_name = kwargs['subnetworkRangeName'] + _setter("ip_cidr_range", ip_cidr_range) _setter("subnetwork_range_name", subnetwork_range_name) @@ -2910,7 +3164,13 @@ def _configure( _setter: Callable[[Any, Any], None], max_instance_count: Optional[pulumi.Input[int]] = None, min_instance_count: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'maxInstanceCount' in kwargs: + max_instance_count = kwargs['maxInstanceCount'] + if 'minInstanceCount' in kwargs: + min_instance_count = kwargs['minInstanceCount'] + if max_instance_count is not None: _setter("max_instance_count", max_instance_count) if min_instance_count is not None: @@ -2968,7 +3228,17 @@ def _configure( is_enabled: pulumi.Input[bool], task_type: pulumi.Input[str], task_headrooms: Optional[pulumi.Input[Sequence[pulumi.Input['OceanLaunchSpecSchedulingTaskTaskHeadroomArgs']]]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'cronExpression' in kwargs: + cron_expression = kwargs['cronExpression'] + if 'isEnabled' in kwargs: + is_enabled = kwargs['isEnabled'] + if 'taskType' in kwargs: + task_type = kwargs['taskType'] + if 'taskHeadrooms' in kwargs: + task_headrooms = kwargs['taskHeadrooms'] + _setter("cron_expression", cron_expression) _setter("is_enabled", is_enabled) _setter("task_type", task_type) @@ -3051,7 +3321,17 @@ def _configure( cpu_per_unit: Optional[pulumi.Input[int]] = None, gpu_per_unit: Optional[pulumi.Input[int]] = None, memory_per_unit: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'numOfUnits' in kwargs: + num_of_units = kwargs['numOfUnits'] + if 'cpuPerUnit' in kwargs: + cpu_per_unit = kwargs['cpuPerUnit'] + if 'gpuPerUnit' in kwargs: + gpu_per_unit = kwargs['gpuPerUnit'] + if 'memoryPerUnit' in kwargs: + memory_per_unit = kwargs['memoryPerUnit'] + _setter("num_of_units", num_of_units) if cpu_per_unit is not None: _setter("cpu_per_unit", cpu_per_unit) @@ -3128,7 +3408,13 @@ def _configure( _setter: Callable[[Any, Any], None], enable_integrity_monitoring: Optional[pulumi.Input[bool]] = None, enable_secure_boot: Optional[pulumi.Input[bool]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'enableIntegrityMonitoring' in kwargs: + enable_integrity_monitoring = kwargs['enableIntegrityMonitoring'] + if 'enableSecureBoot' in kwargs: + enable_secure_boot = kwargs['enableSecureBoot'] + if enable_integrity_monitoring is not None: _setter("enable_integrity_monitoring", enable_integrity_monitoring) if enable_secure_boot is not None: @@ -3174,7 +3460,11 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], local_ssd_count: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'localSsdCount' in kwargs: + local_ssd_count = kwargs['localSsdCount'] + if local_ssd_count is not None: _setter("local_ssd_count", local_ssd_count) @@ -3206,7 +3496,11 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], preemptible_percentage: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'preemptiblePercentage' in kwargs: + preemptible_percentage = kwargs['preemptiblePercentage'] + if preemptible_percentage is not None: _setter("preemptible_percentage", preemptible_percentage) @@ -3246,7 +3540,9 @@ def _configure( effect: Optional[pulumi.Input[str]] = None, key: Optional[pulumi.Input[str]] = None, value: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if effect is not None: _setter("effect", effect) if key is not None: @@ -3306,7 +3602,13 @@ def _configure( _setter: Callable[[Any, Any], None], should_roll: pulumi.Input[bool], roll_config: Optional[pulumi.Input['OceanLaunchSpecUpdatePolicyRollConfigArgs']] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'shouldRoll' in kwargs: + should_roll = kwargs['shouldRoll'] + if 'rollConfig' in kwargs: + roll_config = kwargs['rollConfig'] + _setter("should_roll", should_roll) if roll_config is not None: _setter("roll_config", roll_config) @@ -3342,7 +3644,11 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], batch_size_percentage: pulumi.Input[int], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'batchSizePercentage' in kwargs: + batch_size_percentage = kwargs['batchSizePercentage'] + _setter("batch_size_percentage", batch_size_percentage) @property diff --git a/sdk/python/pulumi_spotinst/gke/elastigroup.py b/sdk/python/pulumi_spotinst/gke/elastigroup.py index fe78a159..4b3a1a20 100644 --- a/sdk/python/pulumi_spotinst/gke/elastigroup.py +++ b/sdk/python/pulumi_spotinst/gke/elastigroup.py @@ -122,7 +122,59 @@ def _configure( shutdown_script: Optional[pulumi.Input[str]] = None, startup_script: Optional[pulumi.Input[str]] = None, tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'clusterZoneName' in kwargs: + cluster_zone_name = kwargs['clusterZoneName'] + if 'desiredCapacity' in kwargs: + desired_capacity = kwargs['desiredCapacity'] + if 'backendServices' in kwargs: + backend_services = kwargs['backendServices'] + if 'clusterId' in kwargs: + cluster_id = kwargs['clusterId'] + if 'drainingTimeout' in kwargs: + draining_timeout = kwargs['drainingTimeout'] + if 'fallbackToOndemand' in kwargs: + fallback_to_ondemand = kwargs['fallbackToOndemand'] + if 'instanceNamePrefix' in kwargs: + instance_name_prefix = kwargs['instanceNamePrefix'] + if 'instanceTypesCustoms' in kwargs: + instance_types_customs = kwargs['instanceTypesCustoms'] + if 'instanceTypesOndemand' in kwargs: + instance_types_ondemand = kwargs['instanceTypesOndemand'] + if 'instanceTypesPreemptibles' in kwargs: + instance_types_preemptibles = kwargs['instanceTypesPreemptibles'] + if 'integrationDockerSwarm' in kwargs: + integration_docker_swarm = kwargs['integrationDockerSwarm'] + if 'integrationGke' in kwargs: + integration_gke = kwargs['integrationGke'] + if 'ipForwarding' in kwargs: + ip_forwarding = kwargs['ipForwarding'] + if 'maxSize' in kwargs: + max_size = kwargs['maxSize'] + if 'minSize' in kwargs: + min_size = kwargs['minSize'] + if 'networkInterfaces' in kwargs: + network_interfaces = kwargs['networkInterfaces'] + if 'nodeImage' in kwargs: + node_image = kwargs['nodeImage'] + if 'ondemandCount' in kwargs: + ondemand_count = kwargs['ondemandCount'] + if 'preemptiblePercentage' in kwargs: + preemptible_percentage = kwargs['preemptiblePercentage'] + if 'provisioningModel' in kwargs: + provisioning_model = kwargs['provisioningModel'] + if 'scalingDownPolicies' in kwargs: + scaling_down_policies = kwargs['scalingDownPolicies'] + if 'scalingUpPolicies' in kwargs: + scaling_up_policies = kwargs['scalingUpPolicies'] + if 'serviceAccount' in kwargs: + service_account = kwargs['serviceAccount'] + if 'shutdownScript' in kwargs: + shutdown_script = kwargs['shutdownScript'] + if 'startupScript' in kwargs: + startup_script = kwargs['startupScript'] + _setter("cluster_zone_name", cluster_zone_name) _setter("desired_capacity", desired_capacity) if backend_services is not None: @@ -591,7 +643,59 @@ def _configure( shutdown_script: Optional[pulumi.Input[str]] = None, startup_script: Optional[pulumi.Input[str]] = None, tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'backendServices' in kwargs: + backend_services = kwargs['backendServices'] + if 'clusterId' in kwargs: + cluster_id = kwargs['clusterId'] + if 'clusterZoneName' in kwargs: + cluster_zone_name = kwargs['clusterZoneName'] + if 'desiredCapacity' in kwargs: + desired_capacity = kwargs['desiredCapacity'] + if 'drainingTimeout' in kwargs: + draining_timeout = kwargs['drainingTimeout'] + if 'fallbackToOndemand' in kwargs: + fallback_to_ondemand = kwargs['fallbackToOndemand'] + if 'instanceNamePrefix' in kwargs: + instance_name_prefix = kwargs['instanceNamePrefix'] + if 'instanceTypesCustoms' in kwargs: + instance_types_customs = kwargs['instanceTypesCustoms'] + if 'instanceTypesOndemand' in kwargs: + instance_types_ondemand = kwargs['instanceTypesOndemand'] + if 'instanceTypesPreemptibles' in kwargs: + instance_types_preemptibles = kwargs['instanceTypesPreemptibles'] + if 'integrationDockerSwarm' in kwargs: + integration_docker_swarm = kwargs['integrationDockerSwarm'] + if 'integrationGke' in kwargs: + integration_gke = kwargs['integrationGke'] + if 'ipForwarding' in kwargs: + ip_forwarding = kwargs['ipForwarding'] + if 'maxSize' in kwargs: + max_size = kwargs['maxSize'] + if 'minSize' in kwargs: + min_size = kwargs['minSize'] + if 'networkInterfaces' in kwargs: + network_interfaces = kwargs['networkInterfaces'] + if 'nodeImage' in kwargs: + node_image = kwargs['nodeImage'] + if 'ondemandCount' in kwargs: + ondemand_count = kwargs['ondemandCount'] + if 'preemptiblePercentage' in kwargs: + preemptible_percentage = kwargs['preemptiblePercentage'] + if 'provisioningModel' in kwargs: + provisioning_model = kwargs['provisioningModel'] + if 'scalingDownPolicies' in kwargs: + scaling_down_policies = kwargs['scalingDownPolicies'] + if 'scalingUpPolicies' in kwargs: + scaling_up_policies = kwargs['scalingUpPolicies'] + if 'serviceAccount' in kwargs: + service_account = kwargs['serviceAccount'] + if 'shutdownScript' in kwargs: + shutdown_script = kwargs['shutdownScript'] + if 'startupScript' in kwargs: + startup_script = kwargs['startupScript'] + if backend_services is not None: _setter("backend_services", backend_services) if cluster_id is not None: diff --git a/sdk/python/pulumi_spotinst/gke/ocean_import.py b/sdk/python/pulumi_spotinst/gke/ocean_import.py index 486374a0..0795271b 100644 --- a/sdk/python/pulumi_spotinst/gke/ocean_import.py +++ b/sdk/python/pulumi_spotinst/gke/ocean_import.py @@ -87,7 +87,31 @@ def _configure( update_policy: Optional[pulumi.Input['OceanImportUpdatePolicyArgs']] = None, use_as_template_only: Optional[pulumi.Input[bool]] = None, whitelists: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'clusterName' in kwargs: + cluster_name = kwargs['clusterName'] + if 'backendServices' in kwargs: + backend_services = kwargs['backendServices'] + if 'controllerClusterId' in kwargs: + controller_cluster_id = kwargs['controllerClusterId'] + if 'desiredCapacity' in kwargs: + desired_capacity = kwargs['desiredCapacity'] + if 'maxSize' in kwargs: + max_size = kwargs['maxSize'] + if 'minSize' in kwargs: + min_size = kwargs['minSize'] + if 'rootVolumeType' in kwargs: + root_volume_type = kwargs['rootVolumeType'] + if 'scheduledTasks' in kwargs: + scheduled_tasks = kwargs['scheduledTasks'] + if 'shieldedInstanceConfig' in kwargs: + shielded_instance_config = kwargs['shieldedInstanceConfig'] + if 'updatePolicy' in kwargs: + update_policy = kwargs['updatePolicy'] + if 'useAsTemplateOnly' in kwargs: + use_as_template_only = kwargs['useAsTemplateOnly'] + _setter("cluster_name", cluster_name) _setter("location", location) if autoscaler is not None: @@ -383,7 +407,33 @@ def _configure( update_policy: Optional[pulumi.Input['OceanImportUpdatePolicyArgs']] = None, use_as_template_only: Optional[pulumi.Input[bool]] = None, whitelists: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'backendServices' in kwargs: + backend_services = kwargs['backendServices'] + if 'clusterControllerId' in kwargs: + cluster_controller_id = kwargs['clusterControllerId'] + if 'clusterName' in kwargs: + cluster_name = kwargs['clusterName'] + if 'controllerClusterId' in kwargs: + controller_cluster_id = kwargs['controllerClusterId'] + if 'desiredCapacity' in kwargs: + desired_capacity = kwargs['desiredCapacity'] + if 'maxSize' in kwargs: + max_size = kwargs['maxSize'] + if 'minSize' in kwargs: + min_size = kwargs['minSize'] + if 'rootVolumeType' in kwargs: + root_volume_type = kwargs['rootVolumeType'] + if 'scheduledTasks' in kwargs: + scheduled_tasks = kwargs['scheduledTasks'] + if 'shieldedInstanceConfig' in kwargs: + shielded_instance_config = kwargs['shieldedInstanceConfig'] + if 'updatePolicy' in kwargs: + update_policy = kwargs['updatePolicy'] + if 'useAsTemplateOnly' in kwargs: + use_as_template_only = kwargs['useAsTemplateOnly'] + if autoscaler is not None: _setter("autoscaler", autoscaler) if backend_services is not None: diff --git a/sdk/python/pulumi_spotinst/gke/ocean_launch_spec.py b/sdk/python/pulumi_spotinst/gke/ocean_launch_spec.py index a18d70a8..28411361 100644 --- a/sdk/python/pulumi_spotinst/gke/ocean_launch_spec.py +++ b/sdk/python/pulumi_spotinst/gke/ocean_launch_spec.py @@ -112,7 +112,39 @@ def _configure( tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, taints: Optional[pulumi.Input[Sequence[pulumi.Input['OceanLaunchSpecTaintArgs']]]] = None, update_policy: Optional[pulumi.Input['OceanLaunchSpecUpdatePolicyArgs']] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'oceanId' in kwargs: + ocean_id = kwargs['oceanId'] + if 'autoscaleHeadrooms' in kwargs: + autoscale_headrooms = kwargs['autoscaleHeadrooms'] + if 'autoscaleHeadroomsAutomatics' in kwargs: + autoscale_headrooms_automatics = kwargs['autoscaleHeadroomsAutomatics'] + if 'instanceTypes' in kwargs: + instance_types = kwargs['instanceTypes'] + if 'networkInterfaces' in kwargs: + network_interfaces = kwargs['networkInterfaces'] + if 'nodePoolName' in kwargs: + node_pool_name = kwargs['nodePoolName'] + if 'resourceLimits' in kwargs: + resource_limits = kwargs['resourceLimits'] + if 'restrictScaleDown' in kwargs: + restrict_scale_down = kwargs['restrictScaleDown'] + if 'rootVolumeSize' in kwargs: + root_volume_size = kwargs['rootVolumeSize'] + if 'rootVolumeType' in kwargs: + root_volume_type = kwargs['rootVolumeType'] + if 'schedulingTasks' in kwargs: + scheduling_tasks = kwargs['schedulingTasks'] + if 'serviceAccount' in kwargs: + service_account = kwargs['serviceAccount'] + if 'shieldedInstanceConfig' in kwargs: + shielded_instance_config = kwargs['shieldedInstanceConfig'] + if 'sourceImage' in kwargs: + source_image = kwargs['sourceImage'] + if 'updatePolicy' in kwargs: + update_policy = kwargs['updatePolicy'] + _setter("ocean_id", ocean_id) if autoscale_headrooms is not None: _setter("autoscale_headrooms", autoscale_headrooms) @@ -518,7 +550,39 @@ def _configure( tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, taints: Optional[pulumi.Input[Sequence[pulumi.Input['OceanLaunchSpecTaintArgs']]]] = None, update_policy: Optional[pulumi.Input['OceanLaunchSpecUpdatePolicyArgs']] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'autoscaleHeadrooms' in kwargs: + autoscale_headrooms = kwargs['autoscaleHeadrooms'] + if 'autoscaleHeadroomsAutomatics' in kwargs: + autoscale_headrooms_automatics = kwargs['autoscaleHeadroomsAutomatics'] + if 'instanceTypes' in kwargs: + instance_types = kwargs['instanceTypes'] + if 'networkInterfaces' in kwargs: + network_interfaces = kwargs['networkInterfaces'] + if 'nodePoolName' in kwargs: + node_pool_name = kwargs['nodePoolName'] + if 'oceanId' in kwargs: + ocean_id = kwargs['oceanId'] + if 'resourceLimits' in kwargs: + resource_limits = kwargs['resourceLimits'] + if 'restrictScaleDown' in kwargs: + restrict_scale_down = kwargs['restrictScaleDown'] + if 'rootVolumeSize' in kwargs: + root_volume_size = kwargs['rootVolumeSize'] + if 'rootVolumeType' in kwargs: + root_volume_type = kwargs['rootVolumeType'] + if 'schedulingTasks' in kwargs: + scheduling_tasks = kwargs['schedulingTasks'] + if 'serviceAccount' in kwargs: + service_account = kwargs['serviceAccount'] + if 'shieldedInstanceConfig' in kwargs: + shielded_instance_config = kwargs['shieldedInstanceConfig'] + if 'sourceImage' in kwargs: + source_image = kwargs['sourceImage'] + if 'updatePolicy' in kwargs: + update_policy = kwargs['updatePolicy'] + if autoscale_headrooms is not None: _setter("autoscale_headrooms", autoscale_headrooms) if autoscale_headrooms_automatics is not None: diff --git a/sdk/python/pulumi_spotinst/gke/ocean_launch_spec_import.py b/sdk/python/pulumi_spotinst/gke/ocean_launch_spec_import.py index 27716ab8..3dc7d7f5 100644 --- a/sdk/python/pulumi_spotinst/gke/ocean_launch_spec_import.py +++ b/sdk/python/pulumi_spotinst/gke/ocean_launch_spec_import.py @@ -31,7 +31,13 @@ def _configure( _setter: Callable[[Any, Any], None], node_pool_name: pulumi.Input[str], ocean_id: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'nodePoolName' in kwargs: + node_pool_name = kwargs['nodePoolName'] + if 'oceanId' in kwargs: + ocean_id = kwargs['oceanId'] + _setter("node_pool_name", node_pool_name) _setter("ocean_id", ocean_id) @@ -80,7 +86,13 @@ def _configure( _setter: Callable[[Any, Any], None], node_pool_name: Optional[pulumi.Input[str]] = None, ocean_id: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'nodePoolName' in kwargs: + node_pool_name = kwargs['nodePoolName'] + if 'oceanId' in kwargs: + ocean_id = kwargs['oceanId'] + if node_pool_name is not None: _setter("node_pool_name", node_pool_name) if ocean_id is not None: diff --git a/sdk/python/pulumi_spotinst/gke/outputs.py b/sdk/python/pulumi_spotinst/gke/outputs.py index 38b8d261..c341951d 100644 --- a/sdk/python/pulumi_spotinst/gke/outputs.py +++ b/sdk/python/pulumi_spotinst/gke/outputs.py @@ -106,7 +106,15 @@ def _configure( location_type: Optional[str] = None, named_ports: Optional[Sequence['outputs.ElastigroupBackendServiceNamedPort']] = None, scheme: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'serviceName' in kwargs: + service_name = kwargs['serviceName'] + if 'locationType' in kwargs: + location_type = kwargs['locationType'] + if 'namedPorts' in kwargs: + named_ports = kwargs['namedPorts'] + _setter("service_name", service_name) if location_type is not None: _setter("location_type", location_type) @@ -151,7 +159,9 @@ def _configure( _setter: Callable[[Any, Any], None], name: str, ports: Sequence[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("name", name) _setter("ports", ports) @@ -220,7 +230,15 @@ def _configure( mode: Optional[str] = None, source: Optional[str] = None, type: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'autoDelete' in kwargs: + auto_delete = kwargs['autoDelete'] + if 'deviceName' in kwargs: + device_name = kwargs['deviceName'] + if 'initializeParams' in kwargs: + initialize_params = kwargs['initializeParams'] + if auto_delete is not None: _setter("auto_delete", auto_delete) if boot is not None: @@ -318,7 +336,15 @@ def _configure( source_image: str, disk_size_gb: Optional[str] = None, disk_type: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'sourceImage' in kwargs: + source_image = kwargs['sourceImage'] + if 'diskSizeGb' in kwargs: + disk_size_gb = kwargs['diskSizeGb'] + if 'diskType' in kwargs: + disk_type = kwargs['diskType'] + _setter("source_image", source_image) if disk_size_gb is not None: _setter("disk_size_gb", disk_size_gb) @@ -356,7 +382,9 @@ def _configure( _setter: Callable[[Any, Any], None], count: int, type: str, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("count", count) _setter("type", type) @@ -403,7 +431,11 @@ def _configure( _setter: Callable[[Any, Any], None], memory_gib: int, vcpu: int, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'memoryGib' in kwargs: + memory_gib = kwargs['memoryGib'] + _setter("memory_gib", memory_gib) _setter("vcpu", vcpu) @@ -452,7 +484,13 @@ def _configure( _setter: Callable[[Any, Any], None], master_host: str, master_port: int, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'masterHost' in kwargs: + master_host = kwargs['masterHost'] + if 'masterPort' in kwargs: + master_port = kwargs['masterPort'] + _setter("master_host", master_host) _setter("master_port", master_port) @@ -543,7 +581,25 @@ def _configure( autoscale_labels: Optional[Sequence['outputs.ElastigroupIntegrationGkeAutoscaleLabel']] = None, cluster_id: Optional[str] = None, location: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'autoUpdate' in kwargs: + auto_update = kwargs['autoUpdate'] + if 'autoscaleCooldown' in kwargs: + autoscale_cooldown = kwargs['autoscaleCooldown'] + if 'autoscaleDown' in kwargs: + autoscale_down = kwargs['autoscaleDown'] + if 'autoscaleHeadroom' in kwargs: + autoscale_headroom = kwargs['autoscaleHeadroom'] + if 'autoscaleIsAutoConfig' in kwargs: + autoscale_is_auto_config = kwargs['autoscaleIsAutoConfig'] + if 'autoscaleIsEnabled' in kwargs: + autoscale_is_enabled = kwargs['autoscaleIsEnabled'] + if 'autoscaleLabels' in kwargs: + autoscale_labels = kwargs['autoscaleLabels'] + if 'clusterId' in kwargs: + cluster_id = kwargs['clusterId'] + if auto_update is not None: _setter("auto_update", auto_update) if autoscale_cooldown is not None: @@ -662,7 +718,11 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], evaluation_periods: Optional[int] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'evaluationPeriods' in kwargs: + evaluation_periods = kwargs['evaluationPeriods'] + if evaluation_periods is not None: _setter("evaluation_periods", evaluation_periods) @@ -719,7 +779,15 @@ def _configure( cpu_per_unit: Optional[int] = None, memory_per_unit: Optional[int] = None, num_of_units: Optional[int] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'cpuPerUnit' in kwargs: + cpu_per_unit = kwargs['cpuPerUnit'] + if 'memoryPerUnit' in kwargs: + memory_per_unit = kwargs['memoryPerUnit'] + if 'numOfUnits' in kwargs: + num_of_units = kwargs['numOfUnits'] + if cpu_per_unit is not None: _setter("cpu_per_unit", cpu_per_unit) if memory_per_unit is not None: @@ -767,7 +835,9 @@ def _configure( _setter: Callable[[Any, Any], None], key: str, value: str, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("key", key) _setter("value", value) @@ -797,7 +867,9 @@ def _configure( _setter: Callable[[Any, Any], None], key: str, value: str, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("key", key) _setter("value", value) @@ -827,7 +899,9 @@ def _configure( _setter: Callable[[Any, Any], None], key: str, value: str, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("key", key) _setter("value", value) @@ -879,7 +953,13 @@ def _configure( network: str, access_configs: Optional[Sequence['outputs.ElastigroupNetworkInterfaceAccessConfig']] = None, alias_ip_ranges: Optional[Sequence['outputs.ElastigroupNetworkInterfaceAliasIpRange']] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'accessConfigs' in kwargs: + access_configs = kwargs['accessConfigs'] + if 'aliasIpRanges' in kwargs: + alias_ip_ranges = kwargs['aliasIpRanges'] + _setter("network", network) if access_configs is not None: _setter("access_configs", access_configs) @@ -917,7 +997,9 @@ def _configure( _setter: Callable[[Any, Any], None], name: Optional[str] = None, type: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if name is not None: _setter("name", name) if type is not None: @@ -968,7 +1050,13 @@ def _configure( _setter: Callable[[Any, Any], None], ip_cidr_range: str, subnetwork_range_name: str, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'ipCidrRange' in kwargs: + ip_cidr_range = kwargs['ipCidrRange'] + if 'subnetworkRangeName' in kwargs: + subnetwork_range_name = kwargs['subnetworkRangeName'] + _setter("ip_cidr_range", ip_cidr_range) _setter("subnetwork_range_name", subnetwork_range_name) @@ -1060,7 +1148,17 @@ def _configure( period: Optional[int] = None, source: Optional[str] = None, statistic: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'metricName' in kwargs: + metric_name = kwargs['metricName'] + if 'policyName' in kwargs: + policy_name = kwargs['policyName'] + if 'actionType' in kwargs: + action_type = kwargs['actionType'] + if 'evaluationPeriods' in kwargs: + evaluation_periods = kwargs['evaluationPeriods'] + _setter("metric_name", metric_name) _setter("namespace", namespace) _setter("policy_name", policy_name) @@ -1174,7 +1272,9 @@ def _configure( _setter: Callable[[Any, Any], None], name: str, value: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("name", name) if value is not None: _setter("value", value) @@ -1267,7 +1367,17 @@ def _configure( period: Optional[int] = None, source: Optional[str] = None, statistic: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'metricName' in kwargs: + metric_name = kwargs['metricName'] + if 'policyName' in kwargs: + policy_name = kwargs['policyName'] + if 'actionType' in kwargs: + action_type = kwargs['actionType'] + if 'evaluationPeriods' in kwargs: + evaluation_periods = kwargs['evaluationPeriods'] + _setter("metric_name", metric_name) _setter("namespace", namespace) _setter("policy_name", policy_name) @@ -1381,7 +1491,9 @@ def _configure( _setter: Callable[[Any, Any], None], name: str, value: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("name", name) if value is not None: _setter("value", value) @@ -1465,7 +1577,19 @@ def _configure( is_auto_config: Optional[bool] = None, is_enabled: Optional[bool] = None, resource_limits: Optional['outputs.OceanImportAutoscalerResourceLimits'] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'autoHeadroomPercentage' in kwargs: + auto_headroom_percentage = kwargs['autoHeadroomPercentage'] + if 'enableAutomaticAndManualHeadroom' in kwargs: + enable_automatic_and_manual_headroom = kwargs['enableAutomaticAndManualHeadroom'] + if 'isAutoConfig' in kwargs: + is_auto_config = kwargs['isAutoConfig'] + if 'isEnabled' in kwargs: + is_enabled = kwargs['isEnabled'] + if 'resourceLimits' in kwargs: + resource_limits = kwargs['resourceLimits'] + if auto_headroom_percentage is not None: _setter("auto_headroom_percentage", auto_headroom_percentage) if cooldown is not None: @@ -1586,7 +1710,13 @@ def _configure( _setter: Callable[[Any, Any], None], evaluation_periods: Optional[int] = None, max_scale_down_percentage: Optional[float] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'evaluationPeriods' in kwargs: + evaluation_periods = kwargs['evaluationPeriods'] + if 'maxScaleDownPercentage' in kwargs: + max_scale_down_percentage = kwargs['maxScaleDownPercentage'] + if evaluation_periods is not None: _setter("evaluation_periods", evaluation_periods) if max_scale_down_percentage is not None: @@ -1659,7 +1789,17 @@ def _configure( gpu_per_unit: Optional[int] = None, memory_per_unit: Optional[int] = None, num_of_units: Optional[int] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'cpuPerUnit' in kwargs: + cpu_per_unit = kwargs['cpuPerUnit'] + if 'gpuPerUnit' in kwargs: + gpu_per_unit = kwargs['gpuPerUnit'] + if 'memoryPerUnit' in kwargs: + memory_per_unit = kwargs['memoryPerUnit'] + if 'numOfUnits' in kwargs: + num_of_units = kwargs['numOfUnits'] + if cpu_per_unit is not None: _setter("cpu_per_unit", cpu_per_unit) if gpu_per_unit is not None: @@ -1746,7 +1886,13 @@ def _configure( _setter: Callable[[Any, Any], None], max_memory_gib: Optional[int] = None, max_vcpu: Optional[int] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'maxMemoryGib' in kwargs: + max_memory_gib = kwargs['maxMemoryGib'] + if 'maxVcpu' in kwargs: + max_vcpu = kwargs['maxVcpu'] + if max_memory_gib is not None: _setter("max_memory_gib", max_memory_gib) if max_vcpu is not None: @@ -1822,7 +1968,15 @@ def _configure( location_type: Optional[str] = None, named_ports: Optional[Sequence['outputs.OceanImportBackendServiceNamedPort']] = None, scheme: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'serviceName' in kwargs: + service_name = kwargs['serviceName'] + if 'locationType' in kwargs: + location_type = kwargs['locationType'] + if 'namedPorts' in kwargs: + named_ports = kwargs['namedPorts'] + _setter("service_name", service_name) if location_type is not None: _setter("location_type", location_type) @@ -1879,7 +2033,9 @@ def _configure( _setter: Callable[[Any, Any], None], name: str, ports: Sequence[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("name", name) _setter("ports", ports) @@ -1933,7 +2089,11 @@ def _configure( _setter: Callable[[Any, Any], None], shutdown_hours: Optional['outputs.OceanImportScheduledTaskShutdownHours'] = None, tasks: Optional[Sequence['outputs.OceanImportScheduledTaskTask']] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'shutdownHours' in kwargs: + shutdown_hours = kwargs['shutdownHours'] + if shutdown_hours is not None: _setter("shutdown_hours", shutdown_hours) if tasks is not None: @@ -1995,7 +2155,13 @@ def _configure( _setter: Callable[[Any, Any], None], time_windows: Sequence[str], is_enabled: Optional[bool] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'timeWindows' in kwargs: + time_windows = kwargs['timeWindows'] + if 'isEnabled' in kwargs: + is_enabled = kwargs['isEnabled'] + _setter("time_windows", time_windows) if is_enabled is not None: _setter("is_enabled", is_enabled) @@ -2068,7 +2234,17 @@ def _configure( is_enabled: bool, task_type: str, task_parameters: Optional['outputs.OceanImportScheduledTaskTaskTaskParameters'] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'cronExpression' in kwargs: + cron_expression = kwargs['cronExpression'] + if 'isEnabled' in kwargs: + is_enabled = kwargs['isEnabled'] + if 'taskType' in kwargs: + task_type = kwargs['taskType'] + if 'taskParameters' in kwargs: + task_parameters = kwargs['taskParameters'] + _setter("cron_expression", cron_expression) _setter("is_enabled", is_enabled) _setter("task_type", task_type) @@ -2135,7 +2311,11 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], cluster_roll: Optional['outputs.OceanImportScheduledTaskTaskTaskParametersClusterRoll'] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'clusterRoll' in kwargs: + cluster_roll = kwargs['clusterRoll'] + if cluster_roll is not None: _setter("cluster_roll", cluster_roll) @@ -2195,7 +2375,15 @@ def _configure( batch_size_percentage: Optional[int] = None, comment: Optional[str] = None, respect_pdb: Optional[bool] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'batchMinHealthyPercentage' in kwargs: + batch_min_healthy_percentage = kwargs['batchMinHealthyPercentage'] + if 'batchSizePercentage' in kwargs: + batch_size_percentage = kwargs['batchSizePercentage'] + if 'respectPdb' in kwargs: + respect_pdb = kwargs['respectPdb'] + if batch_min_healthy_percentage is not None: _setter("batch_min_healthy_percentage", batch_min_healthy_percentage) if batch_size_percentage is not None: @@ -2272,7 +2460,13 @@ def _configure( _setter: Callable[[Any, Any], None], enable_integrity_monitoring: Optional[bool] = None, enable_secure_boot: Optional[bool] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'enableIntegrityMonitoring' in kwargs: + enable_integrity_monitoring = kwargs['enableIntegrityMonitoring'] + if 'enableSecureBoot' in kwargs: + enable_secure_boot = kwargs['enableSecureBoot'] + if enable_integrity_monitoring is not None: _setter("enable_integrity_monitoring", enable_integrity_monitoring) if enable_secure_boot is not None: @@ -2337,7 +2531,15 @@ def _configure( draining_timeout: Optional[int] = None, preemptible_percentage: Optional[int] = None, provisioning_model: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'drainingTimeout' in kwargs: + draining_timeout = kwargs['drainingTimeout'] + if 'preemptiblePercentage' in kwargs: + preemptible_percentage = kwargs['preemptiblePercentage'] + if 'provisioningModel' in kwargs: + provisioning_model = kwargs['provisioningModel'] + if draining_timeout is not None: _setter("draining_timeout", draining_timeout) if preemptible_percentage is not None: @@ -2403,7 +2605,15 @@ def _configure( should_roll: bool, conditioned_roll: Optional[bool] = None, roll_config: Optional['outputs.OceanImportUpdatePolicyRollConfig'] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'shouldRoll' in kwargs: + should_roll = kwargs['shouldRoll'] + if 'conditionedRoll' in kwargs: + conditioned_roll = kwargs['conditionedRoll'] + if 'rollConfig' in kwargs: + roll_config = kwargs['rollConfig'] + _setter("should_roll", should_roll) if conditioned_roll is not None: _setter("conditioned_roll", conditioned_roll) @@ -2478,7 +2688,17 @@ def _configure( batch_min_healthy_percentage: Optional[int] = None, launch_spec_ids: Optional[Sequence[str]] = None, respect_pdb: Optional[bool] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'batchSizePercentage' in kwargs: + batch_size_percentage = kwargs['batchSizePercentage'] + if 'batchMinHealthyPercentage' in kwargs: + batch_min_healthy_percentage = kwargs['batchMinHealthyPercentage'] + if 'launchSpecIds' in kwargs: + launch_spec_ids = kwargs['launchSpecIds'] + if 'respectPdb' in kwargs: + respect_pdb = kwargs['respectPdb'] + _setter("batch_size_percentage", batch_size_percentage) if batch_min_healthy_percentage is not None: _setter("batch_min_healthy_percentage", batch_min_healthy_percentage) @@ -2566,7 +2786,17 @@ def _configure( cpu_per_unit: Optional[int] = None, gpu_per_unit: Optional[int] = None, memory_per_unit: Optional[int] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'numOfUnits' in kwargs: + num_of_units = kwargs['numOfUnits'] + if 'cpuPerUnit' in kwargs: + cpu_per_unit = kwargs['cpuPerUnit'] + if 'gpuPerUnit' in kwargs: + gpu_per_unit = kwargs['gpuPerUnit'] + if 'memoryPerUnit' in kwargs: + memory_per_unit = kwargs['memoryPerUnit'] + _setter("num_of_units", num_of_units) if cpu_per_unit is not None: _setter("cpu_per_unit", cpu_per_unit) @@ -2640,7 +2870,11 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], auto_headroom_percentage: Optional[int] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'autoHeadroomPercentage' in kwargs: + auto_headroom_percentage = kwargs['autoHeadroomPercentage'] + if auto_headroom_percentage is not None: _setter("auto_headroom_percentage", auto_headroom_percentage) @@ -2672,7 +2906,9 @@ def _configure( _setter: Callable[[Any, Any], None], key: Optional[str] = None, value: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if key is not None: _setter("key", key) if value is not None: @@ -2714,7 +2950,9 @@ def _configure( _setter: Callable[[Any, Any], None], key: Optional[str] = None, value: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if key is not None: _setter("key", key) if value is not None: @@ -2785,7 +3023,15 @@ def _configure( access_configs: Optional[Sequence['outputs.OceanLaunchSpecNetworkInterfaceAccessConfig']] = None, alias_ip_ranges: Optional[Sequence['outputs.OceanLaunchSpecNetworkInterfaceAliasIpRange']] = None, project_id: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'accessConfigs' in kwargs: + access_configs = kwargs['accessConfigs'] + if 'aliasIpRanges' in kwargs: + alias_ip_ranges = kwargs['aliasIpRanges'] + if 'projectId' in kwargs: + project_id = kwargs['projectId'] + _setter("network", network) if access_configs is not None: _setter("access_configs", access_configs) @@ -2846,7 +3092,9 @@ def _configure( _setter: Callable[[Any, Any], None], name: Optional[str] = None, type: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if name is not None: _setter("name", name) if type is not None: @@ -2909,7 +3157,13 @@ def _configure( _setter: Callable[[Any, Any], None], ip_cidr_range: str, subnetwork_range_name: str, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'ipCidrRange' in kwargs: + ip_cidr_range = kwargs['ipCidrRange'] + if 'subnetworkRangeName' in kwargs: + subnetwork_range_name = kwargs['subnetworkRangeName'] + _setter("ip_cidr_range", ip_cidr_range) _setter("subnetwork_range_name", subnetwork_range_name) @@ -2970,7 +3224,13 @@ def _configure( _setter: Callable[[Any, Any], None], max_instance_count: Optional[int] = None, min_instance_count: Optional[int] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'maxInstanceCount' in kwargs: + max_instance_count = kwargs['maxInstanceCount'] + if 'minInstanceCount' in kwargs: + min_instance_count = kwargs['minInstanceCount'] + if max_instance_count is not None: _setter("max_instance_count", max_instance_count) if min_instance_count is not None: @@ -3043,7 +3303,17 @@ def _configure( is_enabled: bool, task_type: str, task_headrooms: Optional[Sequence['outputs.OceanLaunchSpecSchedulingTaskTaskHeadroom']] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'cronExpression' in kwargs: + cron_expression = kwargs['cronExpression'] + if 'isEnabled' in kwargs: + is_enabled = kwargs['isEnabled'] + if 'taskType' in kwargs: + task_type = kwargs['taskType'] + if 'taskHeadrooms' in kwargs: + task_headrooms = kwargs['taskHeadrooms'] + _setter("cron_expression", cron_expression) _setter("is_enabled", is_enabled) _setter("task_type", task_type) @@ -3133,7 +3403,17 @@ def _configure( cpu_per_unit: Optional[int] = None, gpu_per_unit: Optional[int] = None, memory_per_unit: Optional[int] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'numOfUnits' in kwargs: + num_of_units = kwargs['numOfUnits'] + if 'cpuPerUnit' in kwargs: + cpu_per_unit = kwargs['cpuPerUnit'] + if 'gpuPerUnit' in kwargs: + gpu_per_unit = kwargs['gpuPerUnit'] + if 'memoryPerUnit' in kwargs: + memory_per_unit = kwargs['memoryPerUnit'] + _setter("num_of_units", num_of_units) if cpu_per_unit is not None: _setter("cpu_per_unit", cpu_per_unit) @@ -3213,7 +3493,13 @@ def _configure( _setter: Callable[[Any, Any], None], enable_integrity_monitoring: Optional[bool] = None, enable_secure_boot: Optional[bool] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'enableIntegrityMonitoring' in kwargs: + enable_integrity_monitoring = kwargs['enableIntegrityMonitoring'] + if 'enableSecureBoot' in kwargs: + enable_secure_boot = kwargs['enableSecureBoot'] + if enable_integrity_monitoring is not None: _setter("enable_integrity_monitoring", enable_integrity_monitoring) if enable_secure_boot is not None: @@ -3268,7 +3554,11 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], local_ssd_count: Optional[int] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'localSsdCount' in kwargs: + local_ssd_count = kwargs['localSsdCount'] + if local_ssd_count is not None: _setter("local_ssd_count", local_ssd_count) @@ -3313,7 +3603,11 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], preemptible_percentage: Optional[int] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'preemptiblePercentage' in kwargs: + preemptible_percentage = kwargs['preemptiblePercentage'] + if preemptible_percentage is not None: _setter("preemptible_percentage", preemptible_percentage) @@ -3349,7 +3643,9 @@ def _configure( effect: Optional[str] = None, key: Optional[str] = None, value: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if effect is not None: _setter("effect", effect) if key is not None: @@ -3416,7 +3712,13 @@ def _configure( _setter: Callable[[Any, Any], None], should_roll: bool, roll_config: Optional['outputs.OceanLaunchSpecUpdatePolicyRollConfig'] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'shouldRoll' in kwargs: + should_roll = kwargs['shouldRoll'] + if 'rollConfig' in kwargs: + roll_config = kwargs['rollConfig'] + _setter("should_roll", should_roll) if roll_config is not None: _setter("roll_config", roll_config) @@ -3461,7 +3763,11 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], batch_size_percentage: int, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'batchSizePercentage' in kwargs: + batch_size_percentage = kwargs['batchSizePercentage'] + _setter("batch_size_percentage", batch_size_percentage) @property diff --git a/sdk/python/pulumi_spotinst/health_check.py b/sdk/python/pulumi_spotinst/health_check.py index df909470..7c6539eb 100644 --- a/sdk/python/pulumi_spotinst/health_check.py +++ b/sdk/python/pulumi_spotinst/health_check.py @@ -43,7 +43,15 @@ def _configure( check: Optional[pulumi.Input['HealthCheckCheckArgs']] = None, name: Optional[pulumi.Input[str]] = None, proxy_port: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'proxyAddress' in kwargs: + proxy_address = kwargs['proxyAddress'] + if 'resourceId' in kwargs: + resource_id = kwargs['resourceId'] + if 'proxyPort' in kwargs: + proxy_port = kwargs['proxyPort'] + _setter("proxy_address", proxy_address) _setter("resource_id", resource_id) if check is not None: @@ -138,7 +146,15 @@ def _configure( proxy_address: Optional[pulumi.Input[str]] = None, proxy_port: Optional[pulumi.Input[int]] = None, resource_id: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'proxyAddress' in kwargs: + proxy_address = kwargs['proxyAddress'] + if 'proxyPort' in kwargs: + proxy_port = kwargs['proxyPort'] + if 'resourceId' in kwargs: + resource_id = kwargs['resourceId'] + if check is not None: _setter("check", check) if name is not None: diff --git a/sdk/python/pulumi_spotinst/multai/_inputs.py b/sdk/python/pulumi_spotinst/multai/_inputs.py index 000344a7..a549018c 100644 --- a/sdk/python/pulumi_spotinst/multai/_inputs.py +++ b/sdk/python/pulumi_spotinst/multai/_inputs.py @@ -35,7 +35,9 @@ def _configure( _setter: Callable[[Any, Any], None], draining: Optional[pulumi.Input[int]] = None, idle: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if draining is not None: _setter("draining", draining) if idle is not None: @@ -75,7 +77,9 @@ def _configure( _setter: Callable[[Any, Any], None], key: pulumi.Input[str], value: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("key", key) _setter("value", value) @@ -113,7 +117,9 @@ def _configure( _setter: Callable[[Any, Any], None], key: pulumi.Input[str], value: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("key", key) _setter("value", value) @@ -163,7 +169,21 @@ def _configure( min_version: pulumi.Input[str], prefer_server_cipher_suites: pulumi.Input[bool], session_tickets_disabled: pulumi.Input[bool], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'certificateIds' in kwargs: + certificate_ids = kwargs['certificateIds'] + if 'cipherSuites' in kwargs: + cipher_suites = kwargs['cipherSuites'] + if 'maxVersion' in kwargs: + max_version = kwargs['maxVersion'] + if 'minVersion' in kwargs: + min_version = kwargs['minVersion'] + if 'preferServerCipherSuites' in kwargs: + prefer_server_cipher_suites = kwargs['preferServerCipherSuites'] + if 'sessionTicketsDisabled' in kwargs: + session_tickets_disabled = kwargs['sessionTicketsDisabled'] + _setter("certificate_ids", certificate_ids) _setter("cipher_suites", cipher_suites) _setter("max_version", max_version) @@ -241,7 +261,9 @@ def _configure( _setter: Callable[[Any, Any], None], key: pulumi.Input[str], value: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("key", key) _setter("value", value) @@ -294,7 +316,13 @@ def _configure( timeout: pulumi.Input[int], unhealthy_threshold: pulumi.Input[int], port: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'healthyThreshold' in kwargs: + healthy_threshold = kwargs['healthyThreshold'] + if 'unhealthyThreshold' in kwargs: + unhealthy_threshold = kwargs['unhealthyThreshold'] + _setter("healthy_threshold", healthy_threshold) _setter("interval", interval) _setter("path", path) @@ -383,7 +411,9 @@ def _configure( _setter: Callable[[Any, Any], None], key: pulumi.Input[str], value: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("key", key) _setter("value", value) @@ -421,7 +451,9 @@ def _configure( _setter: Callable[[Any, Any], None], key: pulumi.Input[str], value: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("key", key) _setter("value", value) diff --git a/sdk/python/pulumi_spotinst/multai/balancer.py b/sdk/python/pulumi_spotinst/multai/balancer.py index 1043d9e2..ce8b88d8 100644 --- a/sdk/python/pulumi_spotinst/multai/balancer.py +++ b/sdk/python/pulumi_spotinst/multai/balancer.py @@ -40,7 +40,13 @@ def _configure( name: Optional[pulumi.Input[str]] = None, scheme: Optional[pulumi.Input[str]] = None, tags: Optional[pulumi.Input[Sequence[pulumi.Input['BalancerTagArgs']]]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'connectionTimeouts' in kwargs: + connection_timeouts = kwargs['connectionTimeouts'] + if 'dnsCnameAliases' in kwargs: + dns_cname_aliases = kwargs['dnsCnameAliases'] + if connection_timeouts is not None: _setter("connection_timeouts", connection_timeouts) if dns_cname_aliases is not None: @@ -125,7 +131,13 @@ def _configure( name: Optional[pulumi.Input[str]] = None, scheme: Optional[pulumi.Input[str]] = None, tags: Optional[pulumi.Input[Sequence[pulumi.Input['BalancerTagArgs']]]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'connectionTimeouts' in kwargs: + connection_timeouts = kwargs['connectionTimeouts'] + if 'dnsCnameAliases' in kwargs: + dns_cname_aliases = kwargs['dnsCnameAliases'] + if connection_timeouts is not None: _setter("connection_timeouts", connection_timeouts) if dns_cname_aliases is not None: diff --git a/sdk/python/pulumi_spotinst/multai/deployment.py b/sdk/python/pulumi_spotinst/multai/deployment.py index 72cfd9ab..e5025017 100644 --- a/sdk/python/pulumi_spotinst/multai/deployment.py +++ b/sdk/python/pulumi_spotinst/multai/deployment.py @@ -26,7 +26,9 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], name: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if name is not None: _setter("name", name) @@ -55,7 +57,9 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], name: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if name is not None: _setter("name", name) diff --git a/sdk/python/pulumi_spotinst/multai/listener.py b/sdk/python/pulumi_spotinst/multai/listener.py index aafc5e99..6e69e82f 100644 --- a/sdk/python/pulumi_spotinst/multai/listener.py +++ b/sdk/python/pulumi_spotinst/multai/listener.py @@ -40,7 +40,13 @@ def _configure( protocol: pulumi.Input[str], tags: Optional[pulumi.Input[Sequence[pulumi.Input['ListenerTagArgs']]]] = None, tls_config: Optional[pulumi.Input['ListenerTlsConfigArgs']] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'balancerId' in kwargs: + balancer_id = kwargs['balancerId'] + if 'tlsConfig' in kwargs: + tls_config = kwargs['tlsConfig'] + _setter("balancer_id", balancer_id) _setter("port", port) _setter("protocol", protocol) @@ -122,7 +128,13 @@ def _configure( protocol: Optional[pulumi.Input[str]] = None, tags: Optional[pulumi.Input[Sequence[pulumi.Input['ListenerTagArgs']]]] = None, tls_config: Optional[pulumi.Input['ListenerTlsConfigArgs']] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'balancerId' in kwargs: + balancer_id = kwargs['balancerId'] + if 'tlsConfig' in kwargs: + tls_config = kwargs['tlsConfig'] + if balancer_id is not None: _setter("balancer_id", balancer_id) if port is not None: diff --git a/sdk/python/pulumi_spotinst/multai/outputs.py b/sdk/python/pulumi_spotinst/multai/outputs.py index 12996ced..220e78fb 100644 --- a/sdk/python/pulumi_spotinst/multai/outputs.py +++ b/sdk/python/pulumi_spotinst/multai/outputs.py @@ -35,7 +35,9 @@ def _configure( _setter: Callable[[Any, Any], None], draining: Optional[int] = None, idle: Optional[int] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if draining is not None: _setter("draining", draining) if idle is not None: @@ -67,7 +69,9 @@ def _configure( _setter: Callable[[Any, Any], None], key: str, value: str, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("key", key) _setter("value", value) @@ -97,7 +101,9 @@ def _configure( _setter: Callable[[Any, Any], None], key: str, value: str, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("key", key) _setter("value", value) @@ -166,7 +172,21 @@ def _configure( min_version: str, prefer_server_cipher_suites: bool, session_tickets_disabled: bool, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'certificateIds' in kwargs: + certificate_ids = kwargs['certificateIds'] + if 'cipherSuites' in kwargs: + cipher_suites = kwargs['cipherSuites'] + if 'maxVersion' in kwargs: + max_version = kwargs['maxVersion'] + if 'minVersion' in kwargs: + min_version = kwargs['minVersion'] + if 'preferServerCipherSuites' in kwargs: + prefer_server_cipher_suites = kwargs['preferServerCipherSuites'] + if 'sessionTicketsDisabled' in kwargs: + session_tickets_disabled = kwargs['sessionTicketsDisabled'] + _setter("certificate_ids", certificate_ids) _setter("cipher_suites", cipher_suites) _setter("max_version", max_version) @@ -220,7 +240,9 @@ def _configure( _setter: Callable[[Any, Any], None], key: str, value: str, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("key", key) _setter("value", value) @@ -284,7 +306,13 @@ def _configure( timeout: int, unhealthy_threshold: int, port: Optional[int] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'healthyThreshold' in kwargs: + healthy_threshold = kwargs['healthyThreshold'] + if 'unhealthyThreshold' in kwargs: + unhealthy_threshold = kwargs['unhealthyThreshold'] + _setter("healthy_threshold", healthy_threshold) _setter("interval", interval) _setter("path", path) @@ -345,7 +373,9 @@ def _configure( _setter: Callable[[Any, Any], None], key: str, value: str, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("key", key) _setter("value", value) @@ -375,7 +405,9 @@ def _configure( _setter: Callable[[Any, Any], None], key: str, value: str, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("key", key) _setter("value", value) diff --git a/sdk/python/pulumi_spotinst/multai/routing_rule.py b/sdk/python/pulumi_spotinst/multai/routing_rule.py index c081376d..db45dca2 100644 --- a/sdk/python/pulumi_spotinst/multai/routing_rule.py +++ b/sdk/python/pulumi_spotinst/multai/routing_rule.py @@ -49,7 +49,17 @@ def _configure( priority: Optional[pulumi.Input[int]] = None, strategy: Optional[pulumi.Input[str]] = None, tags: Optional[pulumi.Input[Sequence[pulumi.Input['RoutingRuleTagArgs']]]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'balancerId' in kwargs: + balancer_id = kwargs['balancerId'] + if 'listenerId' in kwargs: + listener_id = kwargs['listenerId'] + if 'targetSetIds' in kwargs: + target_set_ids = kwargs['targetSetIds'] + if 'middlewareIds' in kwargs: + middleware_ids = kwargs['middlewareIds'] + _setter("balancer_id", balancer_id) _setter("listener_id", listener_id) _setter("route", route) @@ -172,7 +182,17 @@ def _configure( strategy: Optional[pulumi.Input[str]] = None, tags: Optional[pulumi.Input[Sequence[pulumi.Input['RoutingRuleTagArgs']]]] = None, target_set_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'balancerId' in kwargs: + balancer_id = kwargs['balancerId'] + if 'listenerId' in kwargs: + listener_id = kwargs['listenerId'] + if 'middlewareIds' in kwargs: + middleware_ids = kwargs['middlewareIds'] + if 'targetSetIds' in kwargs: + target_set_ids = kwargs['targetSetIds'] + if balancer_id is not None: _setter("balancer_id", balancer_id) if listener_id is not None: diff --git a/sdk/python/pulumi_spotinst/multai/target.py b/sdk/python/pulumi_spotinst/multai/target.py index f3e9760e..3b64dc0b 100644 --- a/sdk/python/pulumi_spotinst/multai/target.py +++ b/sdk/python/pulumi_spotinst/multai/target.py @@ -46,7 +46,13 @@ def _configure( name: Optional[pulumi.Input[str]] = None, port: Optional[pulumi.Input[int]] = None, tags: Optional[pulumi.Input[Sequence[pulumi.Input['TargetTagArgs']]]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'balancerId' in kwargs: + balancer_id = kwargs['balancerId'] + if 'targetSetId' in kwargs: + target_set_id = kwargs['targetSetId'] + _setter("balancer_id", balancer_id) _setter("host", host) _setter("target_set_id", target_set_id) @@ -155,7 +161,13 @@ def _configure( tags: Optional[pulumi.Input[Sequence[pulumi.Input['TargetTagArgs']]]] = None, target_set_id: Optional[pulumi.Input[str]] = None, weight: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'balancerId' in kwargs: + balancer_id = kwargs['balancerId'] + if 'targetSetId' in kwargs: + target_set_id = kwargs['targetSetId'] + if balancer_id is not None: _setter("balancer_id", balancer_id) if host is not None: diff --git a/sdk/python/pulumi_spotinst/multai/target_set.py b/sdk/python/pulumi_spotinst/multai/target_set.py index fbf31c1d..e792417d 100644 --- a/sdk/python/pulumi_spotinst/multai/target_set.py +++ b/sdk/python/pulumi_spotinst/multai/target_set.py @@ -49,7 +49,15 @@ def _configure( name: Optional[pulumi.Input[str]] = None, port: Optional[pulumi.Input[int]] = None, tags: Optional[pulumi.Input[Sequence[pulumi.Input['TargetSetTagArgs']]]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'balancerId' in kwargs: + balancer_id = kwargs['balancerId'] + if 'deploymentId' in kwargs: + deployment_id = kwargs['deploymentId'] + if 'healthCheck' in kwargs: + health_check = kwargs['healthCheck'] + _setter("balancer_id", balancer_id) _setter("deployment_id", deployment_id) _setter("health_check", health_check) @@ -171,7 +179,15 @@ def _configure( protocol: Optional[pulumi.Input[str]] = None, tags: Optional[pulumi.Input[Sequence[pulumi.Input['TargetSetTagArgs']]]] = None, weight: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'balancerId' in kwargs: + balancer_id = kwargs['balancerId'] + if 'deploymentId' in kwargs: + deployment_id = kwargs['deploymentId'] + if 'healthCheck' in kwargs: + health_check = kwargs['healthCheck'] + if balancer_id is not None: _setter("balancer_id", balancer_id) if deployment_id is not None: diff --git a/sdk/python/pulumi_spotinst/organization/_inputs.py b/sdk/python/pulumi_spotinst/organization/_inputs.py index 40f226a1..613dc20f 100644 --- a/sdk/python/pulumi_spotinst/organization/_inputs.py +++ b/sdk/python/pulumi_spotinst/organization/_inputs.py @@ -33,7 +33,9 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], statements: pulumi.Input[Sequence[pulumi.Input['PolicyPolicyContentStatementArgs']]], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("statements", statements) @property @@ -73,7 +75,9 @@ def _configure( actions: pulumi.Input[Sequence[pulumi.Input[str]]], effect: pulumi.Input[str], resources: pulumi.Input[Sequence[pulumi.Input[str]]], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("actions", actions) _setter("effect", effect) _setter("resources", resources) @@ -136,7 +140,13 @@ def _configure( _setter: Callable[[Any, Any], None], account_id: pulumi.Input[str], account_role: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'accountId' in kwargs: + account_id = kwargs['accountId'] + if 'accountRole' in kwargs: + account_role = kwargs['accountRole'] + _setter("account_id", account_id) _setter("account_role", account_role) @@ -186,7 +196,13 @@ def _configure( _setter: Callable[[Any, Any], None], policy_account_ids: pulumi.Input[Sequence[pulumi.Input[str]]], policy_id: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'policyAccountIds' in kwargs: + policy_account_ids = kwargs['policyAccountIds'] + if 'policyId' in kwargs: + policy_id = kwargs['policyId'] + _setter("policy_account_ids", policy_account_ids) _setter("policy_id", policy_id) @@ -237,7 +253,13 @@ def _configure( _setter: Callable[[Any, Any], None], account_ids: pulumi.Input[Sequence[pulumi.Input[str]]], policy_id: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'accountIds' in kwargs: + account_ids = kwargs['accountIds'] + if 'policyId' in kwargs: + policy_id = kwargs['policyId'] + _setter("account_ids", account_ids) _setter("policy_id", policy_id) @@ -287,7 +309,13 @@ def _configure( _setter: Callable[[Any, Any], None], policy_account_ids: pulumi.Input[Sequence[pulumi.Input[str]]], policy_id: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'policyAccountIds' in kwargs: + policy_account_ids = kwargs['policyAccountIds'] + if 'policyId' in kwargs: + policy_id = kwargs['policyId'] + _setter("policy_account_ids", policy_account_ids) _setter("policy_id", policy_id) diff --git a/sdk/python/pulumi_spotinst/organization/outputs.py b/sdk/python/pulumi_spotinst/organization/outputs.py index 9c26e382..ec03638e 100644 --- a/sdk/python/pulumi_spotinst/organization/outputs.py +++ b/sdk/python/pulumi_spotinst/organization/outputs.py @@ -34,7 +34,9 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], statements: Sequence['outputs.PolicyPolicyContentStatement'], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("statements", statements) @property @@ -70,7 +72,9 @@ def _configure( actions: Sequence[str], effect: str, resources: Sequence[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("actions", actions) _setter("effect", effect) _setter("resources", resources) @@ -140,7 +144,13 @@ def _configure( _setter: Callable[[Any, Any], None], account_id: str, account_role: str, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'accountId' in kwargs: + account_id = kwargs['accountId'] + if 'accountRole' in kwargs: + account_role = kwargs['accountRole'] + _setter("account_id", account_id) _setter("account_role", account_role) @@ -201,7 +211,13 @@ def _configure( _setter: Callable[[Any, Any], None], policy_account_ids: Sequence[str], policy_id: str, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'policyAccountIds' in kwargs: + policy_account_ids = kwargs['policyAccountIds'] + if 'policyId' in kwargs: + policy_id = kwargs['policyId'] + _setter("policy_account_ids", policy_account_ids) _setter("policy_id", policy_id) @@ -263,7 +279,13 @@ def _configure( _setter: Callable[[Any, Any], None], account_ids: Sequence[str], policy_id: str, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'accountIds' in kwargs: + account_ids = kwargs['accountIds'] + if 'policyId' in kwargs: + policy_id = kwargs['policyId'] + _setter("account_ids", account_ids) _setter("policy_id", policy_id) @@ -324,7 +346,13 @@ def _configure( _setter: Callable[[Any, Any], None], policy_account_ids: Sequence[str], policy_id: str, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'policyAccountIds' in kwargs: + policy_account_ids = kwargs['policyAccountIds'] + if 'policyId' in kwargs: + policy_id = kwargs['policyId'] + _setter("policy_account_ids", policy_account_ids) _setter("policy_id", policy_id) diff --git a/sdk/python/pulumi_spotinst/organization/policy.py b/sdk/python/pulumi_spotinst/organization/policy.py index cf0496e2..94e8f030 100644 --- a/sdk/python/pulumi_spotinst/organization/policy.py +++ b/sdk/python/pulumi_spotinst/organization/policy.py @@ -37,7 +37,11 @@ def _configure( policy_contents: pulumi.Input[Sequence[pulumi.Input['PolicyPolicyContentArgs']]], description: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'policyContents' in kwargs: + policy_contents = kwargs['policyContents'] + _setter("policy_contents", policy_contents) if description is not None: _setter("description", description) @@ -105,7 +109,11 @@ def _configure( description: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, policy_contents: Optional[pulumi.Input[Sequence[pulumi.Input['PolicyPolicyContentArgs']]]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'policyContents' in kwargs: + policy_contents = kwargs['policyContents'] + if description is not None: _setter("description", description) if name is not None: diff --git a/sdk/python/pulumi_spotinst/organization/programmatic_user.py b/sdk/python/pulumi_spotinst/organization/programmatic_user.py index bcb50935..c5b327fe 100644 --- a/sdk/python/pulumi_spotinst/organization/programmatic_user.py +++ b/sdk/python/pulumi_spotinst/organization/programmatic_user.py @@ -47,7 +47,11 @@ def _configure( name: Optional[pulumi.Input[str]] = None, policies: Optional[pulumi.Input[Sequence[pulumi.Input['ProgrammaticUserPolicyArgs']]]] = None, user_group_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'userGroupIds' in kwargs: + user_group_ids = kwargs['userGroupIds'] + if accounts is not None: _setter("accounts", accounts) if description is not None: @@ -156,7 +160,11 @@ def _configure( name: Optional[pulumi.Input[str]] = None, policies: Optional[pulumi.Input[Sequence[pulumi.Input['ProgrammaticUserPolicyArgs']]]] = None, user_group_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'userGroupIds' in kwargs: + user_group_ids = kwargs['userGroupIds'] + if accounts is not None: _setter("accounts", accounts) if description is not None: diff --git a/sdk/python/pulumi_spotinst/organization/user.py b/sdk/python/pulumi_spotinst/organization/user.py index 2008f3f0..c66476d4 100644 --- a/sdk/python/pulumi_spotinst/organization/user.py +++ b/sdk/python/pulumi_spotinst/organization/user.py @@ -54,7 +54,15 @@ def _configure( policies: Optional[pulumi.Input[Sequence[pulumi.Input['UserPolicyArgs']]]] = None, role: Optional[pulumi.Input[str]] = None, user_group_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'firstName' in kwargs: + first_name = kwargs['firstName'] + if 'lastName' in kwargs: + last_name = kwargs['lastName'] + if 'userGroupIds' in kwargs: + user_group_ids = kwargs['userGroupIds'] + _setter("email", email) _setter("first_name", first_name) _setter("last_name", last_name) @@ -194,7 +202,15 @@ def _configure( policies: Optional[pulumi.Input[Sequence[pulumi.Input['UserPolicyArgs']]]] = None, role: Optional[pulumi.Input[str]] = None, user_group_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'firstName' in kwargs: + first_name = kwargs['firstName'] + if 'lastName' in kwargs: + last_name = kwargs['lastName'] + if 'userGroupIds' in kwargs: + user_group_ids = kwargs['userGroupIds'] + if email is not None: _setter("email", email) if first_name is not None: diff --git a/sdk/python/pulumi_spotinst/organization/user_group.py b/sdk/python/pulumi_spotinst/organization/user_group.py index 0a9ca4f8..2d198117 100644 --- a/sdk/python/pulumi_spotinst/organization/user_group.py +++ b/sdk/python/pulumi_spotinst/organization/user_group.py @@ -43,7 +43,11 @@ def _configure( name: Optional[pulumi.Input[str]] = None, policies: Optional[pulumi.Input[Sequence[pulumi.Input['UserGroupPolicyArgs']]]] = None, user_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'userIds' in kwargs: + user_ids = kwargs['userIds'] + if description is not None: _setter("description", description) if name is not None: @@ -134,7 +138,11 @@ def _configure( name: Optional[pulumi.Input[str]] = None, policies: Optional[pulumi.Input[Sequence[pulumi.Input['UserGroupPolicyArgs']]]] = None, user_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'userIds' in kwargs: + user_ids = kwargs['userIds'] + if description is not None: _setter("description", description) if name is not None: diff --git a/sdk/python/pulumi_spotinst/outputs.py b/sdk/python/pulumi_spotinst/outputs.py index 6ccb5fe0..1760f564 100644 --- a/sdk/python/pulumi_spotinst/outputs.py +++ b/sdk/python/pulumi_spotinst/outputs.py @@ -94,7 +94,11 @@ def _configure( _setter: Callable[[Any, Any], None], bucket_name: str, subdir: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'bucketName' in kwargs: + bucket_name = kwargs['bucketName'] + _setter("bucket_name", bucket_name) if subdir is not None: _setter("subdir", subdir) @@ -128,7 +132,9 @@ def _configure( _setter: Callable[[Any, Any], None], customs: Optional[Sequence['outputs.ElastigroupAzureV3ImageCustom']] = None, marketplaces: Optional[Sequence['outputs.ElastigroupAzureV3ImageMarketplace']] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if customs is not None: _setter("customs", customs) if marketplaces is not None: @@ -179,7 +185,13 @@ def _configure( _setter: Callable[[Any, Any], None], image_name: str, resource_group_name: str, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'imageName' in kwargs: + image_name = kwargs['imageName'] + if 'resourceGroupName' in kwargs: + resource_group_name = kwargs['resourceGroupName'] + _setter("image_name", image_name) _setter("resource_group_name", resource_group_name) @@ -215,7 +227,9 @@ def _configure( publisher: str, sku: str, version: str, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("offer", offer) _setter("publisher", publisher) _setter("sku", sku) @@ -279,7 +293,13 @@ def _configure( user_name: str, password: Optional[str] = None, ssh_public_key: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'userName' in kwargs: + user_name = kwargs['userName'] + if 'sshPublicKey' in kwargs: + ssh_public_key = kwargs['sshPublicKey'] + _setter("user_name", user_name) if password is not None: _setter("password", password) @@ -334,7 +354,11 @@ def _configure( _setter: Callable[[Any, Any], None], name: str, resource_group_name: str, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'resourceGroupName' in kwargs: + resource_group_name = kwargs['resourceGroupName'] + _setter("name", name) _setter("resource_group_name", resource_group_name) @@ -388,7 +412,15 @@ def _configure( network_interfaces: Sequence['outputs.ElastigroupAzureV3NetworkNetworkInterface'], resource_group_name: str, virtual_network_name: str, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'networkInterfaces' in kwargs: + network_interfaces = kwargs['networkInterfaces'] + if 'resourceGroupName' in kwargs: + resource_group_name = kwargs['resourceGroupName'] + if 'virtualNetworkName' in kwargs: + virtual_network_name = kwargs['virtualNetworkName'] + _setter("network_interfaces", network_interfaces) _setter("resource_group_name", resource_group_name) _setter("virtual_network_name", virtual_network_name) @@ -458,7 +490,19 @@ def _configure( subnet_name: str, additional_ip_configs: Optional[Sequence['outputs.ElastigroupAzureV3NetworkNetworkInterfaceAdditionalIpConfig']] = None, application_security_groups: Optional[Sequence['outputs.ElastigroupAzureV3NetworkNetworkInterfaceApplicationSecurityGroup']] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'assignPublicIp' in kwargs: + assign_public_ip = kwargs['assignPublicIp'] + if 'isPrimary' in kwargs: + is_primary = kwargs['isPrimary'] + if 'subnetName' in kwargs: + subnet_name = kwargs['subnetName'] + if 'additionalIpConfigs' in kwargs: + additional_ip_configs = kwargs['additionalIpConfigs'] + if 'applicationSecurityGroups' in kwargs: + application_security_groups = kwargs['applicationSecurityGroups'] + _setter("assign_public_ip", assign_public_ip) _setter("is_primary", is_primary) _setter("subnet_name", subnet_name) @@ -525,7 +569,11 @@ def _configure( _setter: Callable[[Any, Any], None], name: str, private_ip_version: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'privateIpVersion' in kwargs: + private_ip_version = kwargs['privateIpVersion'] + _setter("name", name) if private_ip_version is not None: _setter("private_ip_version", private_ip_version) @@ -573,7 +621,11 @@ def _configure( _setter: Callable[[Any, Any], None], name: str, resource_group_name: str, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'resourceGroupName' in kwargs: + resource_group_name = kwargs['resourceGroupName'] + _setter("name", name) _setter("resource_group_name", resource_group_name) @@ -603,7 +655,9 @@ def _configure( _setter: Callable[[Any, Any], None], key: str, value: str, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("key", key) _setter("value", value) @@ -682,7 +736,13 @@ def _configure( endpoint: Optional[str] = None, time_out: Optional[int] = None, timeout: Optional[int] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'endPoint' in kwargs: + end_point = kwargs['endPoint'] + if 'timeOut' in kwargs: + time_out = kwargs['timeOut'] + _setter("healthy", healthy) _setter("interval", interval) _setter("port", port) @@ -814,7 +874,17 @@ def _configure( storage_account_type: str, lun: Optional[int] = None, zone: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'dataDiskName' in kwargs: + data_disk_name = kwargs['dataDiskName'] + if 'dataDiskResourceGroupName' in kwargs: + data_disk_resource_group_name = kwargs['dataDiskResourceGroupName'] + if 'sizeGb' in kwargs: + size_gb = kwargs['sizeGb'] + if 'storageAccountType' in kwargs: + storage_account_type = kwargs['storageAccountType'] + _setter("data_disk_name", data_disk_name) _setter("data_disk_resource_group_name", data_disk_resource_group_name) _setter("size_gb", size_gb) @@ -892,7 +962,13 @@ def _configure( is_enabled: Optional[bool] = None, storage_url: Optional[str] = None, type: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'isEnabled' in kwargs: + is_enabled = kwargs['isEnabled'] + if 'storageUrl' in kwargs: + storage_url = kwargs['storageUrl'] + if is_enabled is not None: _setter("is_enabled", is_enabled) if storage_url is not None: @@ -951,7 +1027,11 @@ def _configure( lun: int, size_gb: int, type: str, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'sizeGb' in kwargs: + size_gb = kwargs['sizeGb'] + _setter("lun", lun) _setter("size_gb", size_gb) _setter("type", type) @@ -1041,7 +1121,27 @@ def _configure( network_ttl_in_hours: Optional[int] = None, public_ip_ttl_in_hours: Optional[int] = None, snapshot_ttl_in_hours: Optional[int] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'diskShouldDeallocate' in kwargs: + disk_should_deallocate = kwargs['diskShouldDeallocate'] + if 'networkShouldDeallocate' in kwargs: + network_should_deallocate = kwargs['networkShouldDeallocate'] + if 'publicIpShouldDeallocate' in kwargs: + public_ip_should_deallocate = kwargs['publicIpShouldDeallocate'] + if 'shouldTerminateVm' in kwargs: + should_terminate_vm = kwargs['shouldTerminateVm'] + if 'snapshotShouldDeallocate' in kwargs: + snapshot_should_deallocate = kwargs['snapshotShouldDeallocate'] + if 'diskTtlInHours' in kwargs: + disk_ttl_in_hours = kwargs['diskTtlInHours'] + if 'networkTtlInHours' in kwargs: + network_ttl_in_hours = kwargs['networkTtlInHours'] + if 'publicIpTtlInHours' in kwargs: + public_ip_ttl_in_hours = kwargs['publicIpTtlInHours'] + if 'snapshotTtlInHours' in kwargs: + snapshot_ttl_in_hours = kwargs['snapshotTtlInHours'] + _setter("disk_should_deallocate", disk_should_deallocate) _setter("network_should_deallocate", network_should_deallocate) _setter("public_ip_should_deallocate", public_ip_should_deallocate) @@ -1146,7 +1246,17 @@ def _configure( data_disk_resource_group_name: str, should_deallocate: bool, ttl_in_hours: Optional[int] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'dataDiskName' in kwargs: + data_disk_name = kwargs['dataDiskName'] + if 'dataDiskResourceGroupName' in kwargs: + data_disk_resource_group_name = kwargs['dataDiskResourceGroupName'] + if 'shouldDeallocate' in kwargs: + should_deallocate = kwargs['shouldDeallocate'] + if 'ttlInHours' in kwargs: + ttl_in_hours = kwargs['ttlInHours'] + _setter("data_disk_name", data_disk_name) _setter("data_disk_resource_group_name", data_disk_resource_group_name) _setter("should_deallocate", should_deallocate) @@ -1227,7 +1337,17 @@ def _configure( type: str, protected_settings: Optional[Mapping[str, Any]] = None, public_settings: Optional[Mapping[str, Any]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'apiVersion' in kwargs: + api_version = kwargs['apiVersion'] + if 'minorVersionAutoUpgrade' in kwargs: + minor_version_auto_upgrade = kwargs['minorVersionAutoUpgrade'] + if 'protectedSettings' in kwargs: + protected_settings = kwargs['protectedSettings'] + if 'publicSettings' in kwargs: + public_settings = kwargs['publicSettings'] + _setter("api_version", api_version) _setter("minor_version_auto_upgrade", minor_version_auto_upgrade) _setter("name", name) @@ -1318,7 +1438,17 @@ def _configure( health_check_types: Sequence[str], grace_period: Optional[int] = None, unhealthy_duration: Optional[int] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'autoHealing' in kwargs: + auto_healing = kwargs['autoHealing'] + if 'healthCheckTypes' in kwargs: + health_check_types = kwargs['healthCheckTypes'] + if 'gracePeriod' in kwargs: + grace_period = kwargs['gracePeriod'] + if 'unhealthyDuration' in kwargs: + unhealthy_duration = kwargs['unhealthyDuration'] + _setter("auto_healing", auto_healing) _setter("health_check_types", health_check_types) if grace_period is not None: @@ -1384,7 +1514,13 @@ def _configure( custom_images: Optional[Sequence['outputs.StatefulNodeAzureImageCustomImage']] = None, galleries: Optional[Sequence['outputs.StatefulNodeAzureImageGallery']] = None, marketplace_images: Optional[Sequence['outputs.StatefulNodeAzureImageMarketplaceImage']] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'customImages' in kwargs: + custom_images = kwargs['customImages'] + if 'marketplaceImages' in kwargs: + marketplace_images = kwargs['marketplaceImages'] + if custom_images is not None: _setter("custom_images", custom_images) if galleries is not None: @@ -1440,7 +1576,11 @@ def _configure( _setter: Callable[[Any, Any], None], custom_image_resource_group_name: str, name: str, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'customImageResourceGroupName' in kwargs: + custom_image_resource_group_name = kwargs['customImageResourceGroupName'] + _setter("custom_image_resource_group_name", custom_image_resource_group_name) _setter("name", name) @@ -1499,7 +1639,17 @@ def _configure( gallery_resource_group_name: str, image_name: str, version_name: str, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'galleryName' in kwargs: + gallery_name = kwargs['galleryName'] + if 'galleryResourceGroupName' in kwargs: + gallery_resource_group_name = kwargs['galleryResourceGroupName'] + if 'imageName' in kwargs: + image_name = kwargs['imageName'] + if 'versionName' in kwargs: + version_name = kwargs['versionName'] + _setter("gallery_name", gallery_name) _setter("gallery_resource_group_name", gallery_resource_group_name) _setter("image_name", image_name) @@ -1547,7 +1697,9 @@ def _configure( publisher: str, sku: str, version: str, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("offer", offer) _setter("publisher", publisher) _setter("sku", sku) @@ -1618,7 +1770,17 @@ def _configure( resource_group_name: str, draining_timeout: Optional[int] = None, resources_retention_time: Optional[int] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'originalVmName' in kwargs: + original_vm_name = kwargs['originalVmName'] + if 'resourceGroupName' in kwargs: + resource_group_name = kwargs['resourceGroupName'] + if 'drainingTimeout' in kwargs: + draining_timeout = kwargs['drainingTimeout'] + if 'resourcesRetentionTime' in kwargs: + resources_retention_time = kwargs['resourcesRetentionTime'] + _setter("original_vm_name", original_vm_name) _setter("resource_group_name", resource_group_name) if draining_timeout is not None: @@ -1690,7 +1852,13 @@ def _configure( resource_group_name: str, type: str, sku: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'backendPoolNames' in kwargs: + backend_pool_names = kwargs['backendPoolNames'] + if 'resourceGroupName' in kwargs: + resource_group_name = kwargs['resourceGroupName'] + _setter("backend_pool_names", backend_pool_names) _setter("name", name) _setter("resource_group_name", resource_group_name) @@ -1761,7 +1929,13 @@ def _configure( user_name: str, password: Optional[str] = None, ssh_public_key: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'userName' in kwargs: + user_name = kwargs['userName'] + if 'sshPublicKey' in kwargs: + ssh_public_key = kwargs['sshPublicKey'] + _setter("user_name", user_name) if password is not None: _setter("password", password) @@ -1816,7 +1990,11 @@ def _configure( _setter: Callable[[Any, Any], None], name: str, resource_group_name: str, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'resourceGroupName' in kwargs: + resource_group_name = kwargs['resourceGroupName'] + _setter("name", name) _setter("resource_group_name", resource_group_name) @@ -1870,7 +2048,15 @@ def _configure( network_interfaces: Sequence['outputs.StatefulNodeAzureNetworkNetworkInterface'], network_resource_group_name: str, virtual_network_name: str, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'networkInterfaces' in kwargs: + network_interfaces = kwargs['networkInterfaces'] + if 'networkResourceGroupName' in kwargs: + network_resource_group_name = kwargs['networkResourceGroupName'] + if 'virtualNetworkName' in kwargs: + virtual_network_name = kwargs['virtualNetworkName'] + _setter("network_interfaces", network_interfaces) _setter("network_resource_group_name", network_resource_group_name) _setter("virtual_network_name", virtual_network_name) @@ -1965,7 +2151,29 @@ def _configure( private_ip_addresses: Optional[Sequence[str]] = None, public_ip_sku: Optional[str] = None, public_ips: Optional[Sequence['outputs.StatefulNodeAzureNetworkNetworkInterfacePublicIp']] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'isPrimary' in kwargs: + is_primary = kwargs['isPrimary'] + if 'subnetName' in kwargs: + subnet_name = kwargs['subnetName'] + if 'additionalIpConfigurations' in kwargs: + additional_ip_configurations = kwargs['additionalIpConfigurations'] + if 'applicationSecurityGroups' in kwargs: + application_security_groups = kwargs['applicationSecurityGroups'] + if 'assignPublicIp' in kwargs: + assign_public_ip = kwargs['assignPublicIp'] + if 'enableIpForwarding' in kwargs: + enable_ip_forwarding = kwargs['enableIpForwarding'] + if 'networkSecurityGroups' in kwargs: + network_security_groups = kwargs['networkSecurityGroups'] + if 'privateIpAddresses' in kwargs: + private_ip_addresses = kwargs['privateIpAddresses'] + if 'publicIpSku' in kwargs: + public_ip_sku = kwargs['publicIpSku'] + if 'publicIps' in kwargs: + public_ips = kwargs['publicIps'] + _setter("is_primary", is_primary) _setter("subnet_name", subnet_name) if additional_ip_configurations is not None: @@ -2068,7 +2276,11 @@ def _configure( _setter: Callable[[Any, Any], None], name: str, private_ip_address_version: str, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'privateIpAddressVersion' in kwargs: + private_ip_address_version = kwargs['privateIpAddressVersion'] + _setter("name", name) _setter("private_ip_address_version", private_ip_address_version) @@ -2115,7 +2327,11 @@ def _configure( _setter: Callable[[Any, Any], None], name: str, network_resource_group_name: str, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'networkResourceGroupName' in kwargs: + network_resource_group_name = kwargs['networkResourceGroupName'] + _setter("name", name) _setter("network_resource_group_name", network_resource_group_name) @@ -2162,7 +2378,11 @@ def _configure( _setter: Callable[[Any, Any], None], name: Optional[str] = None, network_resource_group_name: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'networkResourceGroupName' in kwargs: + network_resource_group_name = kwargs['networkResourceGroupName'] + if name is not None: _setter("name", name) if network_resource_group_name is not None: @@ -2211,7 +2431,11 @@ def _configure( _setter: Callable[[Any, Any], None], name: str, network_resource_group_name: str, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'networkResourceGroupName' in kwargs: + network_resource_group_name = kwargs['networkResourceGroupName'] + _setter("name", name) _setter("network_resource_group_name", network_resource_group_name) @@ -2258,7 +2482,11 @@ def _configure( _setter: Callable[[Any, Any], None], type: str, size_gb: Optional[int] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'sizeGb' in kwargs: + size_gb = kwargs['sizeGb'] + _setter("type", type) if size_gb is not None: _setter("size_gb", size_gb) @@ -2311,7 +2539,13 @@ def _configure( cron_expression: str, is_enabled: bool, type: str, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'cronExpression' in kwargs: + cron_expression = kwargs['cronExpression'] + if 'isEnabled' in kwargs: + is_enabled = kwargs['isEnabled'] + _setter("cron_expression", cron_expression) _setter("is_enabled", is_enabled) _setter("type", type) @@ -2366,7 +2600,13 @@ def _configure( _setter: Callable[[Any, Any], None], source_vaults: Sequence['outputs.StatefulNodeAzureSecretSourceVault'], vault_certificates: Sequence['outputs.StatefulNodeAzureSecretVaultCertificate'], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'sourceVaults' in kwargs: + source_vaults = kwargs['sourceVaults'] + if 'vaultCertificates' in kwargs: + vault_certificates = kwargs['vaultCertificates'] + _setter("source_vaults", source_vaults) _setter("vault_certificates", vault_certificates) @@ -2413,7 +2653,11 @@ def _configure( _setter: Callable[[Any, Any], None], name: str, resource_group_name: str, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'resourceGroupName' in kwargs: + resource_group_name = kwargs['resourceGroupName'] + _setter("name", name) _setter("resource_group_name", resource_group_name) @@ -2462,7 +2706,13 @@ def _configure( _setter: Callable[[Any, Any], None], certificate_store: Optional[str] = None, certificate_url: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'certificateStore' in kwargs: + certificate_store = kwargs['certificateStore'] + if 'certificateUrl' in kwargs: + certificate_url = kwargs['certificateUrl'] + if certificate_store is not None: _setter("certificate_store", certificate_store) if certificate_url is not None: @@ -2518,7 +2768,15 @@ def _configure( secure_boot_enabled: Optional[bool] = None, security_type: Optional[str] = None, vtpm_enabled: Optional[bool] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'secureBootEnabled' in kwargs: + secure_boot_enabled = kwargs['secureBootEnabled'] + if 'securityType' in kwargs: + security_type = kwargs['securityType'] + if 'vtpmEnabled' in kwargs: + vtpm_enabled = kwargs['vtpmEnabled'] + if secure_boot_enabled is not None: _setter("secure_boot_enabled", secure_boot_enabled) if security_type is not None: @@ -2557,7 +2815,9 @@ def _configure( _setter: Callable[[Any, Any], None], timeout: int, type: str, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("timeout", timeout) _setter("type", type) @@ -2626,7 +2886,21 @@ def _configure( optimization_windows: Optional[Sequence[str]] = None, preferred_life_cycle: Optional[str] = None, revert_to_spot: Optional['outputs.StatefulNodeAzureStrategyRevertToSpot'] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'fallbackToOnDemand' in kwargs: + fallback_to_on_demand = kwargs['fallbackToOnDemand'] + if 'capacityReservations' in kwargs: + capacity_reservations = kwargs['capacityReservations'] + if 'drainingTimeout' in kwargs: + draining_timeout = kwargs['drainingTimeout'] + if 'optimizationWindows' in kwargs: + optimization_windows = kwargs['optimizationWindows'] + if 'preferredLifeCycle' in kwargs: + preferred_life_cycle = kwargs['preferredLifeCycle'] + if 'revertToSpot' in kwargs: + revert_to_spot = kwargs['revertToSpot'] + _setter("fallback_to_on_demand", fallback_to_on_demand) if capacity_reservations is not None: _setter("capacity_reservations", capacity_reservations) @@ -2709,7 +2983,15 @@ def _configure( should_utilize: bool, utilization_strategy: str, capacity_reservation_groups: Optional[Sequence['outputs.StatefulNodeAzureStrategyCapacityReservationCapacityReservationGroup']] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'shouldUtilize' in kwargs: + should_utilize = kwargs['shouldUtilize'] + if 'utilizationStrategy' in kwargs: + utilization_strategy = kwargs['utilizationStrategy'] + if 'capacityReservationGroups' in kwargs: + capacity_reservation_groups = kwargs['capacityReservationGroups'] + _setter("should_utilize", should_utilize) _setter("utilization_strategy", utilization_strategy) if capacity_reservation_groups is not None: @@ -2770,7 +3052,15 @@ def _configure( crg_name: str, crg_resource_group_name: str, crg_should_prioritize: Optional[bool] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'crgName' in kwargs: + crg_name = kwargs['crgName'] + if 'crgResourceGroupName' in kwargs: + crg_resource_group_name = kwargs['crgResourceGroupName'] + if 'crgShouldPrioritize' in kwargs: + crg_should_prioritize = kwargs['crgShouldPrioritize'] + _setter("crg_name", crg_name) _setter("crg_resource_group_name", crg_resource_group_name) if crg_should_prioritize is not None: @@ -2821,7 +3111,11 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], perform_at: str, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'performAt' in kwargs: + perform_at = kwargs['performAt'] + _setter("perform_at", perform_at) @property @@ -2864,7 +3158,13 @@ def _configure( _setter: Callable[[Any, Any], None], tag_key: str, tag_value: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'tagKey' in kwargs: + tag_key = kwargs['tagKey'] + if 'tagValue' in kwargs: + tag_value = kwargs['tagValue'] + _setter("tag_key", tag_key) if tag_value is not None: _setter("tag_value", tag_value) @@ -2892,7 +3192,9 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], state: str, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + _setter("state", state) @property diff --git a/sdk/python/pulumi_spotinst/provider.py b/sdk/python/pulumi_spotinst/provider.py index 03bc9b58..f7a4c32a 100644 --- a/sdk/python/pulumi_spotinst/provider.py +++ b/sdk/python/pulumi_spotinst/provider.py @@ -35,7 +35,11 @@ def _configure( account: Optional[pulumi.Input[str]] = None, feature_flags: Optional[pulumi.Input[str]] = None, token: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'featureFlags' in kwargs: + feature_flags = kwargs['featureFlags'] + if account is not None: _setter("account", account) if feature_flags is not None: diff --git a/sdk/python/pulumi_spotinst/spark/_inputs.py b/sdk/python/pulumi_spotinst/spark/_inputs.py index e23e6ab4..ef3e9600 100644 --- a/sdk/python/pulumi_spotinst/spark/_inputs.py +++ b/sdk/python/pulumi_spotinst/spark/_inputs.py @@ -40,7 +40,13 @@ def _configure( _setter: Callable[[Any, Any], None], create_vngs: Optional[pulumi.Input[bool]] = None, use_taints: Optional[pulumi.Input[bool]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'createVngs' in kwargs: + create_vngs = kwargs['createVngs'] + if 'useTaints' in kwargs: + use_taints = kwargs['useTaints'] + if create_vngs is not None: _setter("create_vngs", create_vngs) if use_taints is not None: @@ -98,7 +104,17 @@ def _configure( load_balancer: Optional[pulumi.Input['OceanIngressLoadBalancerArgs']] = None, private_link: Optional[pulumi.Input['OceanIngressPrivateLinkArgs']] = None, service_annotations: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'customEndpoint' in kwargs: + custom_endpoint = kwargs['customEndpoint'] + if 'loadBalancer' in kwargs: + load_balancer = kwargs['loadBalancer'] + if 'privateLink' in kwargs: + private_link = kwargs['privateLink'] + if 'serviceAnnotations' in kwargs: + service_annotations = kwargs['serviceAnnotations'] + if controller is not None: _setter("controller", controller) if custom_endpoint is not None: @@ -174,7 +190,9 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], managed: Optional[pulumi.Input[bool]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if managed is not None: _setter("managed", managed) @@ -210,7 +228,9 @@ def _configure( _setter: Callable[[Any, Any], None], address: Optional[pulumi.Input[str]] = None, enabled: Optional[pulumi.Input[bool]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if address is not None: _setter("address", address) if enabled is not None: @@ -264,7 +284,13 @@ def _configure( managed: Optional[pulumi.Input[bool]] = None, service_annotations: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, target_group_arn: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'serviceAnnotations' in kwargs: + service_annotations = kwargs['serviceAnnotations'] + if 'targetGroupArn' in kwargs: + target_group_arn = kwargs['targetGroupArn'] + if managed is not None: _setter("managed", managed) if service_annotations is not None: @@ -328,7 +354,11 @@ def _configure( _setter: Callable[[Any, Any], None], enabled: Optional[pulumi.Input[bool]] = None, vpc_endpoint_service: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'vpcEndpointService' in kwargs: + vpc_endpoint_service = kwargs['vpcEndpointService'] + if enabled is not None: _setter("enabled", enabled) if vpc_endpoint_service is not None: @@ -374,7 +404,11 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], collect_app_logs: Optional[pulumi.Input[bool]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'collectAppLogs' in kwargs: + collect_app_logs = kwargs['collectAppLogs'] + if collect_app_logs is not None: _setter("collect_app_logs", collect_app_logs) @@ -406,7 +440,11 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], additional_app_namespaces: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'additionalAppNamespaces' in kwargs: + additional_app_namespaces = kwargs['additionalAppNamespaces'] + if additional_app_namespaces is not None: _setter("additional_app_namespaces", additional_app_namespaces) @@ -442,7 +480,13 @@ def _configure( _setter: Callable[[Any, Any], None], host_network_ports: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None, use_host_network: Optional[pulumi.Input[bool]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'hostNetworkPorts' in kwargs: + host_network_ports = kwargs['hostNetworkPorts'] + if 'useHostNetwork' in kwargs: + use_host_network = kwargs['useHostNetwork'] + if host_network_ports is not None: _setter("host_network_ports", host_network_ports) if use_host_network is not None: diff --git a/sdk/python/pulumi_spotinst/spark/ocean.py b/sdk/python/pulumi_spotinst/spark/ocean.py index 42ec6a6e..86b6fa1c 100644 --- a/sdk/python/pulumi_spotinst/spark/ocean.py +++ b/sdk/python/pulumi_spotinst/spark/ocean.py @@ -44,7 +44,13 @@ def _configure( log_collection: Optional[pulumi.Input['OceanLogCollectionArgs']] = None, spark: Optional[pulumi.Input['OceanSparkArgs']] = None, webhook: Optional[pulumi.Input['OceanWebhookArgs']] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'oceanClusterId' in kwargs: + ocean_cluster_id = kwargs['oceanClusterId'] + if 'logCollection' in kwargs: + log_collection = kwargs['logCollection'] + _setter("ocean_cluster_id", ocean_cluster_id) if compute is not None: _setter("compute", compute) @@ -146,7 +152,13 @@ def _configure( ocean_cluster_id: Optional[pulumi.Input[str]] = None, spark: Optional[pulumi.Input['OceanSparkArgs']] = None, webhook: Optional[pulumi.Input['OceanWebhookArgs']] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'logCollection' in kwargs: + log_collection = kwargs['logCollection'] + if 'oceanClusterId' in kwargs: + ocean_cluster_id = kwargs['oceanClusterId'] + if compute is not None: _setter("compute", compute) if ingress is not None: diff --git a/sdk/python/pulumi_spotinst/spark/ocean_virtual_node_group.py b/sdk/python/pulumi_spotinst/spark/ocean_virtual_node_group.py index 3268e277..f2dac54b 100644 --- a/sdk/python/pulumi_spotinst/spark/ocean_virtual_node_group.py +++ b/sdk/python/pulumi_spotinst/spark/ocean_virtual_node_group.py @@ -29,7 +29,13 @@ def _configure( _setter: Callable[[Any, Any], None], ocean_spark_cluster_id: pulumi.Input[str], virtual_node_group_id: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'oceanSparkClusterId' in kwargs: + ocean_spark_cluster_id = kwargs['oceanSparkClusterId'] + if 'virtualNodeGroupId' in kwargs: + virtual_node_group_id = kwargs['virtualNodeGroupId'] + _setter("ocean_spark_cluster_id", ocean_spark_cluster_id) _setter("virtual_node_group_id", virtual_node_group_id) @@ -70,7 +76,13 @@ def _configure( _setter: Callable[[Any, Any], None], ocean_spark_cluster_id: Optional[pulumi.Input[str]] = None, virtual_node_group_id: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'oceanSparkClusterId' in kwargs: + ocean_spark_cluster_id = kwargs['oceanSparkClusterId'] + if 'virtualNodeGroupId' in kwargs: + virtual_node_group_id = kwargs['virtualNodeGroupId'] + if ocean_spark_cluster_id is not None: _setter("ocean_spark_cluster_id", ocean_spark_cluster_id) if virtual_node_group_id is not None: diff --git a/sdk/python/pulumi_spotinst/spark/outputs.py b/sdk/python/pulumi_spotinst/spark/outputs.py index 58a45b76..8ee92c97 100644 --- a/sdk/python/pulumi_spotinst/spark/outputs.py +++ b/sdk/python/pulumi_spotinst/spark/outputs.py @@ -60,7 +60,13 @@ def _configure( _setter: Callable[[Any, Any], None], create_vngs: Optional[bool] = None, use_taints: Optional[bool] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'createVngs' in kwargs: + create_vngs = kwargs['createVngs'] + if 'useTaints' in kwargs: + use_taints = kwargs['useTaints'] + if create_vngs is not None: _setter("create_vngs", create_vngs) if use_taints is not None: @@ -133,7 +139,17 @@ def _configure( load_balancer: Optional['outputs.OceanIngressLoadBalancer'] = None, private_link: Optional['outputs.OceanIngressPrivateLink'] = None, service_annotations: Optional[Mapping[str, str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'customEndpoint' in kwargs: + custom_endpoint = kwargs['customEndpoint'] + if 'loadBalancer' in kwargs: + load_balancer = kwargs['loadBalancer'] + if 'privateLink' in kwargs: + private_link = kwargs['privateLink'] + if 'serviceAnnotations' in kwargs: + service_annotations = kwargs['serviceAnnotations'] + if controller is not None: _setter("controller", controller) if custom_endpoint is not None: @@ -189,7 +205,9 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], managed: Optional[bool] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if managed is not None: _setter("managed", managed) @@ -221,7 +239,9 @@ def _configure( _setter: Callable[[Any, Any], None], address: Optional[str] = None, enabled: Optional[bool] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if address is not None: _setter("address", address) if enabled is not None: @@ -286,7 +306,13 @@ def _configure( managed: Optional[bool] = None, service_annotations: Optional[Mapping[str, str]] = None, target_group_arn: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'serviceAnnotations' in kwargs: + service_annotations = kwargs['serviceAnnotations'] + if 'targetGroupArn' in kwargs: + target_group_arn = kwargs['targetGroupArn'] + if managed is not None: _setter("managed", managed) if service_annotations is not None: @@ -355,7 +381,11 @@ def _configure( _setter: Callable[[Any, Any], None], enabled: Optional[bool] = None, vpc_endpoint_service: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'vpcEndpointService' in kwargs: + vpc_endpoint_service = kwargs['vpcEndpointService'] + if enabled is not None: _setter("enabled", enabled) if vpc_endpoint_service is not None: @@ -410,7 +440,11 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], collect_app_logs: Optional[bool] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'collectAppLogs' in kwargs: + collect_app_logs = kwargs['collectAppLogs'] + if collect_app_logs is not None: _setter("collect_app_logs", collect_app_logs) @@ -455,7 +489,11 @@ def __init__(__self__, *, def _configure( _setter: Callable[[Any, Any], None], additional_app_namespaces: Optional[Sequence[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'additionalAppNamespaces' in kwargs: + additional_app_namespaces = kwargs['additionalAppNamespaces'] + if additional_app_namespaces is not None: _setter("additional_app_namespaces", additional_app_namespaces) @@ -506,7 +544,13 @@ def _configure( _setter: Callable[[Any, Any], None], host_network_ports: Optional[Sequence[int]] = None, use_host_network: Optional[bool] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'hostNetworkPorts' in kwargs: + host_network_ports = kwargs['hostNetworkPorts'] + if 'useHostNetwork' in kwargs: + use_host_network = kwargs['useHostNetwork'] + if host_network_ports is not None: _setter("host_network_ports", host_network_ports) if use_host_network is not None: diff --git a/sdk/python/pulumi_spotinst/stateful_node_azure.py b/sdk/python/pulumi_spotinst/stateful_node_azure.py index 588e7385..6fbeac60 100644 --- a/sdk/python/pulumi_spotinst/stateful_node_azure.py +++ b/sdk/python/pulumi_spotinst/stateful_node_azure.py @@ -148,7 +148,59 @@ def _configure( user_data: Optional[pulumi.Input[str]] = None, vm_name: Optional[pulumi.Input[str]] = None, zones: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'odSizes' in kwargs: + od_sizes = kwargs['odSizes'] + if 'resourceGroupName' in kwargs: + resource_group_name = kwargs['resourceGroupName'] + if 'shouldPersistDataDisks' in kwargs: + should_persist_data_disks = kwargs['shouldPersistDataDisks'] + if 'shouldPersistNetwork' in kwargs: + should_persist_network = kwargs['shouldPersistNetwork'] + if 'shouldPersistOsDisk' in kwargs: + should_persist_os_disk = kwargs['shouldPersistOsDisk'] + if 'spotSizes' in kwargs: + spot_sizes = kwargs['spotSizes'] + if 'attachDataDisks' in kwargs: + attach_data_disks = kwargs['attachDataDisks'] + if 'bootDiagnostics' in kwargs: + boot_diagnostics = kwargs['bootDiagnostics'] + if 'customData' in kwargs: + custom_data = kwargs['customData'] + if 'dataDisks' in kwargs: + data_disks = kwargs['dataDisks'] + if 'dataDisksPersistenceMode' in kwargs: + data_disks_persistence_mode = kwargs['dataDisksPersistenceMode'] + if 'detachDataDisks' in kwargs: + detach_data_disks = kwargs['detachDataDisks'] + if 'importVms' in kwargs: + import_vms = kwargs['importVms'] + if 'loadBalancers' in kwargs: + load_balancers = kwargs['loadBalancers'] + if 'managedServiceIdentities' in kwargs: + managed_service_identities = kwargs['managedServiceIdentities'] + if 'osDisk' in kwargs: + os_disk = kwargs['osDisk'] + if 'osDiskPersistenceMode' in kwargs: + os_disk_persistence_mode = kwargs['osDiskPersistenceMode'] + if 'preferredSpotSizes' in kwargs: + preferred_spot_sizes = kwargs['preferredSpotSizes'] + if 'preferredZone' in kwargs: + preferred_zone = kwargs['preferredZone'] + if 'schedulingTasks' in kwargs: + scheduling_tasks = kwargs['schedulingTasks'] + if 'shouldPersistVm' in kwargs: + should_persist_vm = kwargs['shouldPersistVm'] + if 'shutdownScript' in kwargs: + shutdown_script = kwargs['shutdownScript'] + if 'updateStates' in kwargs: + update_states = kwargs['updateStates'] + if 'userData' in kwargs: + user_data = kwargs['userData'] + if 'vmName' in kwargs: + vm_name = kwargs['vmName'] + _setter("od_sizes", od_sizes) _setter("os", os) _setter("region", region) @@ -728,7 +780,59 @@ def _configure( user_data: Optional[pulumi.Input[str]] = None, vm_name: Optional[pulumi.Input[str]] = None, zones: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'attachDataDisks' in kwargs: + attach_data_disks = kwargs['attachDataDisks'] + if 'bootDiagnostics' in kwargs: + boot_diagnostics = kwargs['bootDiagnostics'] + if 'customData' in kwargs: + custom_data = kwargs['customData'] + if 'dataDisks' in kwargs: + data_disks = kwargs['dataDisks'] + if 'dataDisksPersistenceMode' in kwargs: + data_disks_persistence_mode = kwargs['dataDisksPersistenceMode'] + if 'detachDataDisks' in kwargs: + detach_data_disks = kwargs['detachDataDisks'] + if 'importVms' in kwargs: + import_vms = kwargs['importVms'] + if 'loadBalancers' in kwargs: + load_balancers = kwargs['loadBalancers'] + if 'managedServiceIdentities' in kwargs: + managed_service_identities = kwargs['managedServiceIdentities'] + if 'odSizes' in kwargs: + od_sizes = kwargs['odSizes'] + if 'osDisk' in kwargs: + os_disk = kwargs['osDisk'] + if 'osDiskPersistenceMode' in kwargs: + os_disk_persistence_mode = kwargs['osDiskPersistenceMode'] + if 'preferredSpotSizes' in kwargs: + preferred_spot_sizes = kwargs['preferredSpotSizes'] + if 'preferredZone' in kwargs: + preferred_zone = kwargs['preferredZone'] + if 'resourceGroupName' in kwargs: + resource_group_name = kwargs['resourceGroupName'] + if 'schedulingTasks' in kwargs: + scheduling_tasks = kwargs['schedulingTasks'] + if 'shouldPersistDataDisks' in kwargs: + should_persist_data_disks = kwargs['shouldPersistDataDisks'] + if 'shouldPersistNetwork' in kwargs: + should_persist_network = kwargs['shouldPersistNetwork'] + if 'shouldPersistOsDisk' in kwargs: + should_persist_os_disk = kwargs['shouldPersistOsDisk'] + if 'shouldPersistVm' in kwargs: + should_persist_vm = kwargs['shouldPersistVm'] + if 'shutdownScript' in kwargs: + shutdown_script = kwargs['shutdownScript'] + if 'spotSizes' in kwargs: + spot_sizes = kwargs['spotSizes'] + if 'updateStates' in kwargs: + update_states = kwargs['updateStates'] + if 'userData' in kwargs: + user_data = kwargs['userData'] + if 'vmName' in kwargs: + vm_name = kwargs['vmName'] + if attach_data_disks is not None: _setter("attach_data_disks", attach_data_disks) if boot_diagnostics is not None: diff --git a/sdk/python/pulumi_spotinst/subscription.py b/sdk/python/pulumi_spotinst/subscription.py index 2f7ff513..74c4c0ba 100644 --- a/sdk/python/pulumi_spotinst/subscription.py +++ b/sdk/python/pulumi_spotinst/subscription.py @@ -58,7 +58,13 @@ def _configure( protocol: pulumi.Input[str], resource_id: pulumi.Input[str], format: Optional[pulumi.Input[Mapping[str, Any]]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'eventType' in kwargs: + event_type = kwargs['eventType'] + if 'resourceId' in kwargs: + resource_id = kwargs['resourceId'] + _setter("endpoint", endpoint) _setter("event_type", event_type) _setter("protocol", protocol) @@ -189,7 +195,13 @@ def _configure( format: Optional[pulumi.Input[Mapping[str, Any]]] = None, protocol: Optional[pulumi.Input[str]] = None, resource_id: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions]=None): + opts: Optional[pulumi.ResourceOptions]=None, + **kwargs): + if 'eventType' in kwargs: + event_type = kwargs['eventType'] + if 'resourceId' in kwargs: + resource_id = kwargs['resourceId'] + if endpoint is not None: _setter("endpoint", endpoint) if event_type is not None: diff --git a/upstream b/upstream index 47aa7ecd..3038f2ea 160000 --- a/upstream +++ b/upstream @@ -1 +1 @@ -Subproject commit 47aa7ecd295985d077da974d4de4fbc3b5437af2 +Subproject commit 3038f2ea2e5a70f1164a4632434dc4957689dd51